Horcm
Horcm
com/thread/5532
I have started my adventure with HDS and two HUSVMs couple day ago and had a lot of struggle to configure everything by myself without courses
yet. Everything means, Storage Arrays, Hitachi Command Suite, Hitachi Tuning Manager,Hitachi Command Director, Agents. The biggest problem was
configuration of CCI by HORCM and Tuning Manager. I couldn't find clear answers for many questions on the Internet and had a lot of thinking and
trying.That's why I wanted to create little guide how to make it with small amount of efforts.
Guide for two and more storage arrays connected to one management server - couple HORCM instances. One instance describe later.
Remember always double check every command or input, avoid typos to make it less stressful
Phase ONE - Configure Command Devices and connect them to manage host
First things needed are LDEVs masked from storage arrays. One ldev from array is enough but you can configure two per array to make alternative
"HA" config. We stay here with one per array.
1. Open web browser and go to your storage on http:// storage-ip-address/sanproject/index.do and login
2. Go to and select "Logical Devices" section on the left. I believe that you have already have basic config with minimum one storage pool.
3. Create one LDEV with size of 50MB, name e.g."cmd_dev_01", for LDEV ID, I think, good way is to choose it far beyond first ID's, just to separate
technical LUs from the others.
4. When your LDEV is ready select it in a main pane and choose "More Actions -> Edit Command Device" (right lower corner) after that in a open
window select radio button "Command device: Enabled", leave "Command Device Attributes" unchanged and click "Finish".
5. Mask newly created command device to your management host. If you want to manage your storage from virtual machine (VMware) mask it to all
host in a VMware cluster and connect to a VM as Physical RDM.
6. On a host you have to do a rescan of HBA. If these LUs are first exposed to your host after connection to HUSVM you need restart a host(sic!) to
see them. There is a simpler way. If you cannot restart your host (ESX or Windows) and have configured multipathing properly to all your LUNs you can
just disable and re-enable one by one Host FC ports of course one at the time. Host after that will login to storage array and you'll see LUs.
7. Make them online initialize, create a simple volume but don't assign drive letter and don't format (probably format won't start either)
1 of 5 3/17/2016 9:20 PM
HORCM Windows configuration guide - multi-array | Hitachi Data Systems https://community.hds.com/thread/5532
Install
1. Download iso from portal.hds.com. Detailed instruction available here Re: download horcm/raidcom
2. Install proper version to your system(32b or 64b)from *.iso\WIN_NT\
3. If you can, leave a default installation path - recommended
Post-install config
1. After installation you can edit a system variable PATH and add location of c:\HORCM\etc for easy command usage in the future,
2. Create a c:\HORCM\conf folder for configuration files just for order
3. You don't have to set any other variables if you want to manage more than one storage array. If you want manage only one storage array it's good
to set HORCM_CONF=c:\horcm\conf\horcmX.conf (X is number of horcm instance) variable for easy management
4. Let's assume that you have default installation folder C:\HORCM
HORCM config
1. You need one config file per one storage array. You can do it with one file, I describe that in the future. Two instance config is less error prone in
storage management in my opinion.
2. You need to check that your system sees Command Devices. Run CMD and navigate (without variable) to c:\horcm\etc and run raidscan -x
findcmddev hdisk0,100, this command will list you available Command Devices.
3. To make config files you need ID's of drives. When you have output with Command Device and them ID's you can create two files in c:\horcm
\config\ e.g. horcm0.conf and horcm1.conf. Avoid saving them as horcmX.conf.txt
There is a recommendation to use UUID number of disks for HORCM configuration. To get UUIDs run C:\HORCM\etc>inqraid $Volume -CLI
-fv
But if you have a problem to get UUID you can start with \\.\PhysicalDriveX notanion and change it later.
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
hostname or ip-address * name-of-service-registered ** 1000 3000
HORCM_CMD
#dev_name
\\.\PhysicalDrive2 or UUID \\.\Volume{f66f806a-8767-11e4-80bf-00123456783b}
2 of 5 3/17/2016 9:20 PM
HORCM Windows configuration guide - multi-array | Hitachi Data Systems https://community.hds.com/thread/5532
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
hostname or ip-address * name-of-service-registered ** 1000 3000
HORCM_CMD
#dev_name
\\.\PhysicalDrive3 or UUID \\.\Volume{f66f806c-8767-11e4-80bf-00403456783b}
5. Configure c:\windows\system32\drivers\ets\services file and add two lines at the and of the file. Mind port numbers are different
horcm0.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
10.0.0.10 horcm0 1000 3000
HORCM_CMD
#dev_name
\\.\PhysicalDrive2
horcm1.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
10.0.0.10 horcm1 1000 3000
HORCM_CMD
#dev_name
\\.\PhysicalDrive3
After this initial configuration you can run CCI but with some basic "scripting".
1. Run CMD,
2. Navigate to c:\horcm\etc\ (or use PATH configured before)
3. type
C:\HORCM\etc>set HORCMINST=0
C:\HORCM\etc>set HORCM_CONF=c:\horcm\config\horcm0.conf
C:\HORCM\etc>horcmstart
starting HORCM inst 0
HORCM inst 0 starts successfully.
3 of 5 3/17/2016 9:20 PM
HORCM Windows configuration guide - multi-array | Hitachi Data Systems https://community.hds.com/thread/5532
As basic solution you have to run different CMD for second instance because of variable setting per CMD. Can run from *.cmd or read futher to know
how to run it properly.
set HORCMINST=0
set HORCM_CONF=c:\HORCM\conf\horcm0.conf
C:\HORCM\etc\horcmstart.exe
Th best option is to run HORCM instances as a services. You can just start CMD and use CCI.
To install services you need to param files and two executed command in our case of course.
Look c:\HORCM\Tool\ there is a file named HORCM0_run.txt rename it fo _HORCM0_run_example for future needs and copy two times because
we have two instances of HORCM.
HORCM0_run.txt
HORCM1_run.txt
Edit each file and in line no.19 (set HORCMINST=x) put correct number of instance 0 or 1. After that line paste those ones:
set HORCM_EVERYCLI=1 (paste this line if you want to run service with default user settings as Local System)
set HORCM_CONF=c:\HORCM\conf\horcm0.conf (add this line to successfully start service without pain in an...)
After that small config we can install services. Run CMD and go to a c:\HORCM\Tool\ and execute following command twice:
And now you can check that everything is proper configured and use instance option (-I)
D:\HiCommand\TuningManager\jp1pc\tools>raidcom get host_grp -port CL8-A -I1 (at the end of each command put -I1 as number of
HORCM1 instance)
PORT GID GROUP_NAME Serial# HMD HMO_BITs
CL8-A 0 8A-G00 333989 LINUX/IRIX
CL8-A 1 bob_mus 333989 VMWARE
CL8-A 2 bob_hq02 333989 VMWARE
CL8-A 3 ccccm11 333989 WIN
CL8-A 4 lnx_sob2 333989 LINUX/IRIX
CL8-A 5 lnx_sob4 333989 LINUX/IRIX
CL8-A 6 bob_hq 333989 VMWARE
CL8-A 7 bob_drc 333989 VMWARE
CL8-A 8 bob_drc02 333989 LINUX/IRIX
D:\HiCommand\TuningManager\jp1pc\tools>raidcom get host_grp -port CL8-A -I0 (at the end of each command put -I0 as number of
HORCM0 instance)
PORT GID GROUP_NAME Serial# HMD HMO_BITs
CL8-A 0 8A-G00 123222 LINUX/IRIX
CL8-A 1 bob_mus 123222 VMWARE
CL8-A 2 bob_hq02 123222 VMWARE
4 of 5 3/17/2016 9:20 PM
HORCM Windows configuration guide - multi-array | Hitachi Data Systems https://community.hds.com/thread/5532
As you can see -I option is very handy and you can do admin stuff simpler in one CMD without variables juggling.
Regards
cr8us
Edited by: Jakub (Cr8us) Ernestowicz Change formatting to make it clearer. Made description of "Phase FOUR" install HORCM as a service.
3199 Views Categories: Hitachi Data Systems Tags: cci, raidcom, horcm, horcm.conf, horcm_configuration, cci_configuration
(8 ratings)
QUICK LINKS
Terms of Use © Hitachi Data Systems Corporation 2016. All Rights Reserved.
5 of 5 3/17/2016 9:20 PM