HORCM Windows configuration guide - multi-array | Hitachi Data Systems                                                                      https://community.hds.
com/thread/5532
                   Marked by cr8us Jan 5 2015 2:01 AM
          8 Replies Latest reply: Aug 28, 2015 8:36 AM by A00088D9
                 cr8us Jan 4, 2015 12:31 PM
                  HORCM Windows configuration guide - multi-array
                  Hello Guys,
                  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
                  Always remember about case sensitivity.
                  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
                 Phase TWO - Install and configure CCI/HORCM
                 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.
                             C:\HORCM\etc>raidscan -x findcmddev hdisk0,100
                                cmddev of Ser#        xxxxxx = \\.\PhysicalDrive2
                                cmddev of Ser#        xxxxxx = \\.\PhysicalDrive3
                           xxxxxx = serial number of storage array.
                   If the output of that command is empty, please check previous steps.
                   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.
                             C:\HORCM\etc>inqraid $Volume -CLI -fv
                                DEVICE_FILE                                                                             PORT       SERIAL      LDEV CTG       H/M/12       SSID
                 R:Group PRODUCT_ID
                                Volume{6d5c1bf8-7c58-11e4-80b4-806e6f6e6963}\Vol1\Dsk0                                -                  -      -    -         -       -
                 - Virtual disk
                                Volume{6d5c1bf9-7c58-11e4-80b4-806e6f6e6963}\Vol2\Dsk0                                -                  -      -    -         -       -
                 - Virtual disk
                                Volume{f66f806a-8767-11e4-80bf-00123456783b}\Vol5\Dsk2                                CL7-A     xxxxxx 16130         -         -   0043
                 A:00001 OPEN-V-CM
                                Volume{f66f806c-8767-11e4-80bf-00403456783b}\Vol6\Dsk3                                CL8-A     xxxxxx 16130         -         -   0043
                 A:00000 OPEN-V-CM
                   4. The simplest input for horcm0.conf:
                                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}
                           * paste name of your management host or its IP address
                           ** paste name of service registered in c:\windows\system32\drivers\ets\services details below
2 of 5                                                                                                                                                                     3/17/2016 9:20 PM
HORCM Windows configuration guide - multi-array | Hitachi Data Systems                                                                 https://community.hds.com/thread/5532
                   5. The simplest input for horcm1.conf:
                           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}
                         * paste name of your management host or its IP address
                         ** paste name of service registered in c:\windows\system32\drivers\ets\services details below
                   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     11000/udp    # hormc0
                         horcm1     11001/udp    # hormc1
                         Name of services must correspond to names of config files.
                                Ready config files:
                                      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".
                 Phase THREE - Testing
                 RUNNING OF HORCM and TEST
                   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.
                      C:\HORCM\etc>raidcom get port
                      PORT TYPE ATTR SPD LPID FAB CONN SSW SL Serial# WWN                              PHY_PORT
3 of 5                                                                                                                                                       3/17/2016 9:20 PM
HORCM Windows configuration guide - multi-array | Hitachi Data Systems                                                                  https://community.hds.com/thread/5532
                       CL1-A FIBRE RCU         AUT    EF Y      PtoP N       0   xxxxxx 5123456789098700 -
                       CL2-A FIBRE RCU         AUT    D9 Y      PtoP N       0   xxxxxx 5123456789098710 -
                       CL3-A FIBRE MCU         AUT    E8 Y      PtoP N       0   xxxxxx 5123456789098720 -
                       CL4-A FIBRE MCU         AUT    D6 Y       PtoP N      0   xxxxxx 5123456789098730 -
                       CL5-A FIBRE ELUN         AUT      E4 Y    PtoP N      0   xxxxxx 5123456789098740 -
                       CL6-A FIBRE ELUN         AUT      D5 Y    PtoP N      0   xxxxxx 5123456789098750 -
                       CL7-A FIBRE TAR          AUT    E2 Y      PtoP Y      0   xxxxxx 5123456789098760 -
                       CL8-A FIBRE TAR          AUT    D4 Y      PtoP Y      0   xxxxxx 5123456789098770 -
                   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
                 Phase FOUR - install HORCM as service
                   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:
                       svcexe.exe /S=HORCM# “/A=c:\HORCM\Tool\svcexe.exe” (where # is of course our instances)
                   When command finish correctly, run:
                       net start horcm0
                       net start horcm1
                   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
                                CL8-A   3 streeam                    123222 WIN
                                CL8-A   4 lnx_sob2                   123222 LINUX/IRIX
                                CL8-A   5 lnx_sob4                    123222 LINUX/IRIX
                                CL8-A   6 bob_hq                      123222 VMWARE
                                CL8-A   7 bob_drc                    123222 VMWARE
                                CL8-A   8 bob_drc02                    123222 LINUX/IRIX
                           As you can see -I option is very handy and you can do admin stuff simpler in one CMD without variables juggling.
                        Any questions, don't hesitate to ask.
                        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
                         Average User Rating
                         (8 ratings)
                    This content has been marked as final. Show 8 replies
         QUICK LINKS
         Terms of Use                                                                                                        © Hitachi Data Systems Corporation 2016. All Rights Reserved.
5 of 5                                                                                                                                                                         3/17/2016 9:20 PM