beautypg.com

Table 4-46 addlun command parameters – HP StorageWorks XP10000 Disk Array User Manual

Page 70

background image

Command Line Interface Commands 70


Yes: System Administrator, Storage Administrator, Local System Administrator, Local Storage
Administrator

No: Guest, Local Guest

Restricted to permitted resources: Local System Administrator, Local Storage Administrator

NOTE:

For the StorageWorks XP12000/XP10000 and XP1024/XP128, when AddLun adds a LUN whose

domain ID is not 0 to the host storage domain, the LUN security of the target port is automatically enabled.

Format for the StorageWorks XP12000/XP10000 and StorageWorks XP1024/XP128:

hdvmcli [URL] AddLun [options] serialnum=serial-number model=model-name [name=name]

port=port-number domain=domain-ID [scsi=SCSI-ID] lun=valid-LUN [{devnum=device-

number|lusedevnums=list-of-LDEV-numbers}]

Format for the StorageWorks XP512/XP48:

hdvmcli [URL] AddLun [options] serialnum=serial-number model=model-name [name=name]

port=port-number domain=domain-ID [scsi=SCSI-ID] lun=valid-LUN [{devnum=device-

number|lusedevnums=list-of-LDEV-numbers}]

NOTE:

Since the LUSE has already been created by the first AddLUN, the error "LDEV with ID

LDEV.HDS9970V.30117.263 is already in another LUSE.

" has occurred in the second AddLUN

with the same lusedevnums. When setting up a LUN (path) to LU to which a LUSE is already set, like the
following command, devnum of the representative LDEV which constitutes the LUSE must be specified, and
AddLUN

must be run.

>hdvmcli AddLun serialnum=30117 model=XP128 name=vail11 port=3 domain=0 scsi=15 lun=10

devnum=263

Table 4-46

AddLun Command Parameters

Parameter Name Status

Description

serialnum

Required

Serial number of the new path’s storage array.

model

Required

Model of the new path’s storage array.

name

Optional

Name of the new path.

port

Required

Port number of the new path.

domain

Required (XP12000/XP10000
and XP1024/XP128)
Optional (XP512/XP48)

Domain ID of the new path. Cannot be set when using the wwn
parameter.

scsi

Optional

SCSI ID of the new path.

lun

Required

Actual LUN used for new path.

devnum

Optional

Device number used to identify the new path (not provided when a
LUSE is defined).

lusedevnums

(see

Note

)

Optional

Comma-separated list of LDEV numbers to create a LUSE for the
path. Either devnum or lusedevnums must be specified, but not both.

wwn

Optional (XP512/XP48)

Comma-separated list of WWN to secure the path. Cannot be set
when using domain parameter.
This parameter is not valid for the StorageWorks XP12000/XP10000
or StorageWorks XP1024/XP128.

NOTE:

The LUSE is created using the LDEVs of the specified device numbers. The new LUSE is created

using only those LDEVs that have the same emulation, sizeInKB, and raidType attributes.

Command execution example 1:

hdvmcli AddLun -o "D:\logs\XP512\AddLun.log" "serialnum=10001" "model=XP512" "name=liu"

"port=3" "scsi=15" "lun=127" "lusedevnums=127,128" "wwn=AA.AA.AA.AA.AA.AA.AA.AA"

Command execution result 1: