AnsweredAssumed Answered

raidcom precheck function

Question asked by Nathan Kippen on Nov 10, 2014
Latest reply on Nov 14, 2014 by Dang Luong

I am experimenting with the precheck function of raidcom but I'm having trouble.

 

I create a work file by running the following:

 

raidcom get ldev -ldev_id 0 -cnt 65280 -store work_file

 

and my script..

 

# cat test_script

raidcom add lun -port cl5-e MyHost_VC -ldev_id 0x3e05 -I100 -s 12345

 

 

 

Then I try my test:

 

 

raidcom -zt test_script -load work_file -checkmode precheck

raidcom: An option or arguments of an option are incorrect.

raidcom: [EX_INVARG] Invalid argument

Refer to the help message using 'raidcom -h'.

raidcom: [EW_ENESCR] Cannot execute scriptfile.

 

When creating the work file there is a ton of output to the screen.  If I redirect that to a file..

raidcom get ldev -ldev_id 0 -cnt 65280 -store work_file > work_file.txt

 

and then try again pointing the work_file.txt instead of work_file:

 

raidcom -zt test_script -load work_file.txt -checkmode precheck

raidcom: could not find the hstgrp# from MyHost_VC.

raidcom_#1399157358 : [EX_ENOOBJ] No such Object in the RAID

raidcom: [EW_ENESCR] Cannot execute scriptfile.

 

...It appears to have worked.

 

So what is the purpose of work_file vs work_file.txt ?

It appears that only work_file.txt is accepted.

 

 

Further testing.... modified test_script

 

# cat test_script

 

raidcom add lun -port cl5-e ValidHG_VC -ldev_id 0x3e05 -I100 -s 12345

 

# raidcom -zt test_script -load work_file.txt -checkmode precheck

raidcom: LUN 1(0x1) will be used for adding.

raidcom: LDEV(15877) does not exist as status is [40] on UnitID# 3.

raidcom: PORT-HGRP(68-8) does not exist as status is [51] on UnitID# 3.

raidcom_#1399157359 : [EX_CTXCHK] Context Check error

raidcom: [EW_ENESCR] Cannot execute scriptfile.

 

 

LDEV 15877 does exist... and what is UnitID# 3 referencing?  My serial number is 12345.

 

# raidcom get ldev -ldev_id 15877 -I100 -s 12345

Serial#  : 12345

LDEV : 15877

SL : 0

CL : 0

VOL_TYPE : OPEN-V-CVS

VOL_Capacity(BLK) : 125829120

NUM_PORT : 2

PORTs : CL1-E3-11 0 HostB-Global : CL2-E3-11 0 HostB-Global

F_POOLID : NONE

VOL_ATTR : CVS : HDP : HDT

B_POOLID : 73

LDEV_NAMING : Boot

STS : NML

OPE_TYPE : RLC

OPE_RATE : 100

MP# : 1

SSID : 0042

Used_Block(BLK) : 124895232

TIER_Relocation : Enable

TIER_level : all

TIER#1(MB) : 40992

TIER#2(MB) : 19992

TIER_Alloc_level  : H

 

 

Thanks,

Outcomes