Installation
loopmount -i DSCLI-7.9.41.59.iso -o "-V cdrfs -o ro" -m /mnt umask 022 /mnt/IMAGES/HMC/Disk1/InstData/AIX/NoVM/dsclisetup.bin -i console Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Congratulations. IBM System Storage DS Command Line Interface has been ....... successfully installed to: /opt/ibm/dscli
mount DSCLI-7.9.41.59.iso /mnt -o loop,ro umask 022 /mnt/IMAGES/HMC/Disk1/InstData/Linux/NoVM/dsclisetup.bin -i console Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Congratulations. IBM System Storage DS Command Line Interface has been ....... successfully installed to: /opt/ibm/dscli
export JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true"
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 1750 Connection to "192.168.1.1" on port "1750" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 1751 Connection to "192.168.1.1" on port "1751" is ok
$ /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -user admin CMUN00018E Unable to connect to the management console server
$ /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -user admin dscli> mkuser -pw PASSWORD -group monitor stor2rrd
$ /opt/ibm/dscli/dscli managepwfile -action add -mc1 192.168.1.1 -name stor2rrd -pw PASSWORD
$ /opt/ibm/dscli/dscli -hmc1 <HMC1 ip addr> -user stor2rrd ver -l Date/Time: December 10, 2013 3:01:43 PM CET IBM DSCLI Version: 7.7.10.317 DS: - DSCLI 7.7.10.317 StorageManager 7.7.5.0.20121203.1 ================Version================= Storage Image LMC =========================== IBM.2107-75CXXXX 7.7.10.294
$ /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -user stor2rrd Date/Time: April 18, 2013 2:55:36 PM CEST IBM DSCLI Version: 7.6.31.165 DS: - dscli> lssi -s ID ================ IBM.2107-75VG681When you get this error:
dscli> lssi -s Date/Time: April 18, 2013 3:04:25 PM CEST IBM DSCLI Version: 7.6.31.165 DS: - CMUC00201E lssi:: You are logged in with an expired password and limited authorization. Use the chuser command to changer password and restore normal authorization.Then change the password for stor2rrd user
dscli>chuser -pw PASSWORD1 stor2rrdand refresh stored password as well
$ /opt/ibm/dscli/dscli managepwfile -action remove -mc1 192.168.1.1 -name stor2rrd $ /opt/ibm/dscli/dscli managepwfile -action add -mc1 192.168.1.1 -name stor2rrd -pw PASSWORD1
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ========================= STORAGE: DS8100: DS8K ========================= /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -hmc2 192.168.1.2 -user stor2rrd whoami connection ok
$ crontab -l | grep load_ds8perf.sh $
$ crontab -e # IBM DS8000 storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_ds8perf.sh > /home/stor2rrd/stor2rrd/load_ds8perf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 22 Connection to "192.168.1.1" on port "22" is ok
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name stor2rrd -usergrp "Monitor"Using this user role requires setting statistics_frequency on attached storage to 5 minutes under superuser
ssh superuser@<storage control enclosure IP address> "svctask startstats -interval 5" # make sure it has been done by: ssh superuser@<storage control enclosure IP address> "lssystem" | grep statistics statistics_status on statistics_frequency 5
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name stor2rrd -usergrp RestrictedAdmin"
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name stor2rrd -usergrp Administrator"
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ ls -l ~/.ssh/id_rsa.pub $ ssh-keygen -t rsa -N "" Generating public/private rsa key pair. Enter file in which to save the key (/home/stor2rrd/.ssh/id_rsa): ... $ ls -l ~/.ssh/id_rsa.pub -rw-r--r-- 1 stor2rrd stor2rrd 382 Jun 1 12:47 /home/stor2rrd/.ssh/id_rsa.pub
$ scp ~/.ssh/id_rsa.pub superuser@<storage control enclosure IP address>:/tmp/123tmp
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name stor2rrd -usergrp Monitor -keyfile /tmp/123tmp"Using this user role requires setting statistics_frequency on attached storage to 5 minutes under superuser
ssh superuser@<storage control enclosure IP address> "svctask startstats -interval 5" # make sure it has been done by: ssh superuser@<storage control enclosure IP address> "lssystem" | grep statistics statistics_status on statistics_frequency 5
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name stor2rrd -usergrp RestrictedAdmin -keyfile /tmp/123tmp"
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name stor2rrd -usergrp Administrator -keyfile /tmp/123tmp"
$ ssh superuser@<storage control enclosure IP address> "svctask chuser -keyfile /tmp/123tmp stor2rrd"
$ ssh -i ~/.ssh/id_rsa stor2rrd@<storage control enclosure IP address> "svcinfo lssystem" id 00000100C0906BAA name SVC location local partnership bandwidth ...
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ========================= STORAGE: storwize01: SWIZ ========================= ssh -o ConnectTimeout=15 -i /home/stor2rrd/.ssh/id_rsa stor2rrd@192.168.1.1 "lscurrentuser" connection ok
$ crontab -l | grep load_svcperf.sh $
$ crontab -e # IBM Storwize/SVC storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_svcperf.sh > /home/stor2rrd/stor2rrd/load_svcperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ tail error.log-<storage name> "_state" is not defined in %Net::OpenSSH::Constants::EXPORT_TAGS at /home/lpar2rrd/stor2rrd/lib/Xorux/Net/OpenSSH.pm line 20. Can't continue after import errors at /home/lpar2rrd/stor2rrd/lib/Xorux/Net/OpenSSH.pm line 20. BEGIN failed--compilation aborted at /home/lpar2rrd/stor2rrd/lib/Xorux/Net/OpenSSH.pm line 20. Compilation failed in require at /home/lpar2rrd/stor2rrd/bin/ssh_test_svc.pl line 26.This will resolve the issue:
rpm -e perl-Net-OpenSSH-0.62-1.el7.noarchMore information: forum.xorux.com/discussion/comment/5679#Comment_5679
$ tail error.log-<storage name> Max. recursion depth with nested structures exceeded at /usr/lib64/perl5/vendor_perl/Storable.pm line 278, at ...Follow this forum thread: forum.xorux.com/discussion/comment/5214#Comment_5214
$ tail -1 error.log-<storage name> OpenSSL version mismatch. Built against 1000105f, you have 100000cfSolution is remove OpenSSL package which was installed as RRDTool prerequisite.
rpm -e --nodeps openssl-1.0.1g-1
$ cd /home/stor2rrd/stor2rrd/logs $ tail -1 error.log-<storage name> Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/opt/perl5/lib/site_perl/5.10.1/XML/SAX/ParserFactory.pm line 43.
cim_show cim_enable
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 5989 Connection to "192.168.1.1" on port "5989" is ok
# export XIV_XCLIUSER=admin # export XIV_XCLIPASSWORD=<admin password> # /opt/ibm/XIVUI/xcli -m <xiv ip> user_define user=stor2rrd password=<password> password_verify=<password> category=readonly
# yum list |grep sblim-wbemcli sblim-wbemcli.x86_64 1.6.2-9.el7 base # yum install sblim-wbemcli # RedHat # apt-get install sblim-wbemcli # Debian based (Ubuntu etc) # /usr/bin/wbemcli -noverify -nl ei https://<XIV_hostname>:5988/root/ibm:IBMTSDS_StorageSystem * * ./wbemcli: Http Exception: Username/password required. *
# rpm -q sblim-wbemcli sblim-wbemcli-1.6.3-31.1.x86_64 # /usr/bin/wbemcli -v * wbemcli Version 1.6.3 # /usr/bin/wbemcli -noverify -nl ei http://<XIV_hostname>:5988/root/ibm:IBMTSDS_StorageSystem * * ./wbemcli: Http Exception: Username/password required. *
# rpm -Uvh libffi-3.1-1.aix5.1.ppc.rpm --nodeps # rpm -Uvh libiconv-1.14-2.aix5.1.ppc.rpm --nodeps # rpm -Uvh libidn-1.29-1.aix5.1.ppc.rpm --nodeps # rpm -Uvh libssh2-1.4.3-2.aix5.1.ppc.rpm --nodeps # rpm -Uvh openssl-1.0.1j-1.aix5.1.ppc.rpm # rpm -Uvh openldap-2.4.23-0.3.aix5.1.ppc.rpm # rpm -Uvh curl-7.27.0-1.aix5.1.ppc.rpm # rpm -Uvh wbemcli-1.6.3-1.aix5.1.ppc.rpm # LIBPATH=/opt/freeware/lib; export LIBPATH # /opt/freeware/bin/wbemcli -noverify -nl ei http://<XIV_hostname>:5988/root/ibm:IBMTSDS_StorageSystem * * ./wbemcli: Http Exception: Username/password required. *
$ LIBPATH=/opt/freeware/lib; export LIBPATH $ /opt/freeware/bin/wbemcli -noverify -nl ei https://stor2rrd:<stor2rrd_password>@<XIV_hostname>:5989/root/ibm:IBMTSDS_StorageSystem
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh XIV01 ========================= STORAGE: XIV01: XIV ========================= /opt/freeware/bin/wbemcli -noverify -nl ei https://stor2rrd:passw0rd@192.168.1.1:5989/root/ibm:IBMTSDS_StorageSystem connection ok
$ crontab -l | grep load_xivperf.sh $
$ crontab -e # IBM XIV (use 10minutes run time, definitely not less) 0,10,20,30,40,50 * * * * /home/stor2rrd/stor2rrd/load_xivperf.sh > /home/stor2rrd/stor2rrd/load_xivperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
# lslpp -L |egrep "X11.adt|X11.base|X11.motif" X11.adt.bitmaps 6.1.0.0 C F AIXwindows Application X11.adt.ext 6.1.6.0 C F AIXwindows Application X11.adt.imake 6.1.6.0 C F AIXwindows Application X11.adt.include 6.1.4.0 C F AIXwindows Application X11.adt.lib 6.1.2.0 C F AIXwindows Application X11.adt.motif 6.1.6.0 C F AIXwindows Application X11.base.common 6.1.0.0 C F AIXwindows Runtime Common X11.base.lib 6.1.6.0 C F AIXwindows Runtime Libraries X11.base.rte 6.1.6.0 C F AIXwindows Runtime Environment X11.base.smt 6.1.6.0 C F AIXwindows Runtime Shared X11.base.xpconfig 6.1.0.0 C F Xprint Configuration Files X11.motif.lib 6.1.6.0 C F AIXwindows Motif Libraries X11.motif.mwm 6.1.6.0 C F AIXwindows Motif Window
# umask 022 # gunzip SM10.86_AIX_SMIA-10.86.x5.43.tgz # tar xvf SM10.86_AIX_SMIA-10.86.x5.43.tar # cd AIX10p86/AIX # sh SMIA-AIX-10.86.0605.0043.bin -i console (accept the license agreement, type "enter" many times ) Please choose the Install Set to be installed by this installer. 1- Typical (Full Installation) --> 2- Management Station 3- Host 4- Customize... ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT : 2 ...... Congratulations. IBM System Storage DS Storage Manager 10 has been successfully installed to: /opt/IBM_DS # lslpp -L|grep SMclient SMclient.aix.rte 10.86.6543.0 C F IBM DS Storage Manager Client # ls -l /usr/SMclient/SMcli -r-x------ 1 root system 1008 Oct 10 2013 /usr/SMclient/SMcli
# ln -s /opt/IBM_DS/ia/jre/ /opt/IBM_DS/jre
# cd /opt/IBM_DS # alien SMclient.rpm # alien SMesm.rpm # alien SMruntime.rpm # dpkg -i smclient_10.86.0G05.0043-2_all.deb # dpkg -i smesm_10.86.0G05.0007-2_all.deb # dpkg -i smruntime_10.86.0A05.0001-2_amd64.deb # ls -l /usr/SMclient/SMcli -r-x------ 1 root system 1008 Oct 10 2013 /usr/SMclient/SMcli
# SMmonitor stop # rmitab smmonitor
# /opt/SMgr/client/SMmonitor stop # chkconfig --list SMmonitor # chkconfig --level 2345 SMmonitor off alternatively: # rm -f /etc/rc2.d/S99SMmonitor /etc/rc.d/init.d/SMmonitor
# systemctl stop smmonitor.service # systemctl disable smmonitor.service
# rm -f /var/opt/SM/emwdata_v04_bin.lock /var/opt/SM/pref_01_bin.lock # chown stor2rrd /opt/IBM_DS/client/SMcli /var/opt/SM/prefbackup_01.bin # chown stor2rrd /var/opt/SM/emwback_v04.bin /var/opt/SM /var/opt/SM/emwdata_v04.bin # chown stor2rrd /var/opt/SM /var/opt/SM/pref_01.bin # chmod -f 644 /usr/SMruntime/jre/lib/security/java.security # chmod -f 755 /opt/IBM_DS/client/lib/*
# su - stor2rrd # (lpar2rrd user on the Virtual Appliance) $ SMcli -d An internal error, error code 12, has occurred. This is possibly due to initialization problems when loading the necessary internal files. Please check your installation of the storage management client. If problems continue to persist, re-install the storage management client.
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 2463 Connection to "192.168.1.1" on port "2463" is ok
$ SMcli -d There are currently no storage subsystems listed in the configuration file. Add storage subsystems using the Add Storage Subsystem option in the storage management software or by command line. $ SMcli -A 192.168.1.1 192.168.1.2 New storage subsystem was discovered at address 192.168.1.1 New storage subsystem was discovered at address 192.168.1.2 SMcli completed successfully $ SMcli -d DS5020_01 ControlerA_hostname ControlerB_hostname
$ SMcli -n DS5020_01 -e -c "show hostTopology;"
$ SMcli -n DS5020_01 -e -c "show hostTopology;" The operation needs either the 'Administrator' or 'Monitor' password to be set. $ SMcli -n DS5020_01 -p <password> -R monitor -e -c "show hostTopology;"
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh DS5020_01 ========================= STORAGE: DS5020_01: DS5K ========================= /usr/SMclient/SMcli -n DS5020_01 -e -c "show hostTopology;" connection ok
$ SMcli -n DS5020_01 -e -c "show hostTopology;" Warning! No Monitor password is set for the storage subsystem.
DS5020_01:DS5K:monitor:password01:
$ ./bin/config_check.sh DS5020_01 ...
$ crontab -l | grep load_ds5perf.sh $
$ crontab -e # IBM DS3000/DS4000/DS5000 storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_ds5perf.sh > /home/stor2rrd/stor2rrd/load_ds5perf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
$ crontab -l | grep load_gpfsperf.sh $
$ crontab -e # IBM Spectrum Scale 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_gpfsperf.sh > /home/stor2rrd/stor2rrd/load_gpfsperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh COSSstorage-alias01 ===================== STORAGE: COSSstorage-alias01 : COSS ===================== connection ok
$ crontab -l | grep load_ibmcossperf.sh $
$ crontab -e # IBM COS 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_ibmcossperf.sh > /home/stor2rrd/stor2rrd/load_ibmcossperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh