HDS VSP-G and VSP command device setupHitachi CCI can be configured to use either LAN to get data from the storages or command device (LUN/Volume).
Command device is recomended when you have many of storages to monitor (HDS recommends 40+).
LAN configuration is described in our standart storage access manual.
Document describes installation on Linux RHEL 7.3.
At first make sure that you have this settings on the storage
Create volume for command device on the storage (no more than 1 GB)
- Connect it through 2 ports (it's enough).
Execute re-scan FC (or restart/reboot)
# echo "1" > /sys/class/fc_host/host1/issue_lip # echo "1" > /sys/class/fc_host/host2/issue_lip # echo "- - -" > /sys/class/scsi_host/host2/scan # echo "- - -" > /sys/class/scsi_host/host1/scan
# ls /dev/sd* | /HORCM/usr/bin/inqraid -CLI -fx DEVICE_FILE PORT SERIAL LDEV CTG H/M/12 SSID R:Group PRODUCT_ID sda - - - - - - - LOGICAL VOLUME sdf CL1-A 87011 900 - - 000B 5:09-01 OPEN-V-CM sdg CL2-A 87011 900 - - 000B 5:09-01 OPEN-V-CM
Check & edit services
# cat /etc/services |grep horc horcm1 11001/tcp # HORCM1 horcm2 11002/tcp # HORCM2
create horcm2.conf file by inserting the stanzas
# vi /etc/horcm2.conf HORCM_MON # ip_address service poll(10ms) timeout(10ms) localhost 11002 1000 3000 HORCM_CMD # dev_name dev_name dev_name \\.\CMD-87011:/dev/sd*It will use /dev/sdf and /dev/sdg
Attention: the rights of the USER(lpar2rrd) to manage these devices must be the same to run HORCM
# ls -l /dev/ |grep sd brw-rw---- 1 lpar2rrd disk 8, 80 Jun 14 16:35 sdf brw-rw---- 1 lpar2rrd disk 8, 96 Jun 14 16:39 sdgIt seems that it works ... But will not, after reboot, because:
devtmpfs on /dev type devtmpfs (rw,nosuid,size=16358024k,nr_inodes=4089506,mode=755)To avoid it there must be added user (stor2rrd or lpar2rrd on the appliance) into the group "disk":
# useradd -G disk lpar2rrd
# su - stor2rrd -c "/HORCM/usr/bin/horcmstart.sh 1 2"
- Note for the VSP GXX series and for the HDS VSP, heir ExportTools are different .
HORCM can be started
Do not forget to create user on the array management console (with encrypted password).
The VSP user (to collect data) was added to Support Personnel Group (in the VSP) - these user rights are enough.
- Make sure that the Perf Monitor on the storage is Enabled
Add service to autostart
# vi /etc/systemd/system/horcmsrv.service [Unit] Description=HORCM Service After=network.target [Service] Type=idle RemainAfterExit=yes User=lpar2rrd Group=lpar2rrd ExecStart=/HORCM/horcmstart.sh ExecStop=/HORCM/horcmstart.sh [Install] WantedBy=multi-user.target
# vi /HORCM/horcmstart.sh #!/bin/bash sh /HORCM/usr/bin/horcmstart.sh 1 2
# vi /HORCM/horcmstop.sh #!/bin/bash sh /HORCM/usr/bin/horcmshutdown.sh 1 2
# chmod +x /HORCM/horcmstart.sh # chmod +x /HORCM/horcstop.sh # chown lpar2rrd:lpar2rrd /HORCM/horcmstart.sh # chown lpar2rrd:lpar2rrd /HORCM/horcstop.sh # systemctl enable horcmsrv.service # systemctl daemon-reload # systemctl start horcmsrv # systemctl status horcmsrv horcmsrv.service - HORCM Service Loaded: loaded (/etc/systemd/system/horcmsrv.service; enabled; vendor preset: disabled) Active: active (exited) since Tue 2017-06-20 13:19:03 MSK; 1s ago Process: 14249 ExecStart=/HORCM/horcmstart.sh (code=exited, status=0/SUCCESS) Main PID: 14249 (code=exited, status=0/SUCCESS) CGroup: /system.slice/horcmsrv.service 14255 horcmd_01 14264 horcmd_02 Jun 20 13:19:03 mon-rrd systemd: Started HORCM Service. Jun 20 13:19:03 mon-rrd systemd: Starting HORCM Service... Jun 20 13:19:03 mon-rrd horcmstart.sh: starting HORCM inst 1 Jun 20 13:19:04 mon-rrd horcmstart.sh: HORCM inst 1 starts successfully. Jun 20 13:19:04 mon-rrd horcmstart.sh: starting HORCM inst 2 Jun 20 13:19:04 mon-rrd horcmstart.sh: HORCM inst 2 starts successfully.If you add next instance HORCM then edit /HORCM/horcmstart.sh and /HORCM/horcmstop.sh