HP StorageWorks P9000 Command View Advanced Edition Suite Software 7.1.1 CLI Reference Guide (TB581-96066, September 2011)
LUN commands
The LUN commands can be used to manage LUN groups, set up WWNs, and set paths from a host
to a volume.
AddLun
AddLun sets paths from a host to a volume. A LUN expanded (LUSE) logical unit can be specified
when the path is set.
NOTE:
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. Make sure that the I/Os of the target port are stopped.
Format
hdvmcli [URL] AddLun [options]
serialnum=serial-number model=model-name
[name=name] {port=port-number|portname=port-name} domain=domain-ID
[scsi=SCSI-ID] lun=valid-LUN
{devnum=device-number|lusedevnums=list-of-LDEV-numbers}
NOTE:
When setting up a LUN (path) to an LU to which a LUSE is already set, like the following command,
you must specify devnum of the representative LDEV which constitutes the LUSE, and run AddLun.
>hdvmcli AddLun serialnum=30117 model=XP128 name=vail11 port=3 domain=0
scsi=15 lun=10 devnum=263
Parameters
Table 75 AddLun command parameters
DescriptionStatusParameter name
Serial number of the new path's storage systemRequired
serialnum
Model of the new path's storage systemRequired
model
Name of the new path
You can use a character string of 1-64 bytes for a name.
Spaces at the beginning or end of a name are not registered.
Optional
name
CLI Reference Guide 201