HP XP7 Storage User Manual
Page 67
The command as the target of the check is shown below.
•
raidcom delete ldev {-ldev_id
-device_grp_name
The example of the script where the same LDEV is attempted to be added to the already created
LDEV and the execution result of the Context check is shown below.
•
Example of script
raidcom add ldev -parity_grp_id 01-01 -ldev_id 1 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 2 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 3 -capacity 100M
•
Execution result
C:\HORCM\etc>raidcom get ldev -ldev_id 1 -cnt 65280 -store ldevconf_65 > ldevconf_65.txt
C:\HORCM\etc>raidcom -zt 3_defined_ldev.bat -load ldevconf_65.dat -checkmode precheck
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 1 -capacity 100M
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 2 -capacity 100M
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 3 -capacity 100M
•
Example of script (the text in bold indicates the part of incorrect configuration definition.)
raidcom add ldev -parity_grp_id 01-01 -ldev_id 1 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 2 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 3 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 1 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 2 -capacity 100M
raidcom add ldev -parity_grp_id 01-01 -ldev_id 3 -capacity 100M
for /l %%i in (1,1,3) do (
raidcom add ldev -parity_grp_id 01-01 -ldev_id %%i -capacity 100M
)
for /l %%i in (1,1,3) do (
raidcom add ldev -parity_grp_id 01-01 -ldev_id %%i -capacity 100M
)
•
Execution result (the text in bold indicates the contents of the error accompanying the invalid
configuration definition in the script.)
C:\HORCM\etc>raidcom get ldev -ldev_id 1 -cnt 65280 -store ldevconf_65 > ldevconf_65.txt
C:\HORCM\etc>raidcom -zt 3_defined_ldev.bat -load ldevconf_65.dat -checkmode precheck
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 1 -capacity 100M
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 2 -capacity 100M
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 3 -capacity 100M
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 1 -capacity 100M
raidcom: LDEV(1) is already existing as status is [1] on UnitID# 0.
raidcom_#5 : [EX_CTXCHK] Context Check error
C:\HORCM\etc>raidcom add ldev -parity_grp_id 01-01 -ldev_id 2 -capacity 100M
Command execution modes
67