Hello,
Its been awhile since I posted, but day job has been cranking lately. I felt this one was worthy of a post, in a previous post I discussed Raidcom commands that could be useful to everyone out there. Well our friends at HDS have updated the CCI and VSP code to allow end to end provisioning on the VSP – Freakin sweet no more GUI
. My Collegues and I have created a script to perform VSP provisioning but since everyone has there own view on the best scripting languages I will leave the scripts for you to determine what your favorite one is. In place of the script I will give you the appropriate commands to run.
Enjoy and let me know if this has helped you!!!
Create a HORCM file and place it in the proper location c:\windows or whatever os requires
HORCM
#
#/************************* For HORCM_MON *************************************/
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
10.0.0.1 horcm99 1000 3000
#/************************** For HORCM_CMD ************************************/
HORCM_CMD
#dev_name dev_name dev_name
#For IP command device svp is the ip the -31001 is the fixed port for virtual command device
\\.\IPCMD-10.0.0.2-31001
#/************************** For HORCM_LDEV ***********************************/
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
#VG01 oradb3 11112 01:04 0
#/************************* For HORCM_INST ************************************/
HORCM_INST
#dev_group ip_address service
#VG01 10.0.0.1 horcm99
C:\>set HORCMINST=99
C:\>horcmstart 99
starting HORCM inst 99
HORCM inst 99 starts successfully.
C:\>raidcom -login maintenance raid-mainte
Host Group Creation / WWN Nickname
- raidcom add host_grp -port CL2-E-1 -host_grp_name test-it
- raidcom add host_grp -port CL1-E-1 -host_grp_name test-it
- raidcom modify host_grp -port CL1-E-1 -host_mode 3 -host_mode_opt 12 40 (HPUX and proper modes)
- raidcom modify host_grp -port CL2-E-1 -host_mode 3 -host_mode_opt 12 40
- raidcom add hba_wwn -port CL1-E-1 -hba_wwn 10000000c9537bb2
- raidcom add hba_wwn -port CL2-E-1 -hba_wwn 10000000c9537d06
- raidcom set hba_wwn -port CL1-E-1 -hba_wwn 10000000c9537bb2 -wwn_nickname testhpux1
- raidcom set hba_wwn -port CL2-E-1 -hba_wwn 10000000c9537d06 -wwn_nickname testhpux1
Create Ldevs and assign to proper CU and Pool
Create an ldev in HDT Pool 0, ldev=00:40:00 , capacity=30GB in blocks
- raidcom add ldev -pool_id 0 -ldev_id 0×4000 -capacity 62914560
Create an ldev in HDT Pool 0, ldev=00:46:47 , capacity=300GB in blocks
- raidcom add ldev -pool_id 0 -ldev_id 0×4647 -capacity 629145600
Add an ldev to a hostgroup
- raidcom add lun -port CL1-E-1 -lun_id 0003 -ldev_id 0×4647
- raidcom add lun -port CL2-E-1 -lun_id 0003 -ldev_id 0×4647
C:\>raidcom -logout
C:\>hormcshutdown 99