HP StorageWorks Command View XP Command Line Interface (CLI) reference guide (B9357-96161, January 2006)
Command View XP Command Line Interface (CLI) reference guide 57
create lun
Description This command adds paths in the disk array and allows for the addition of multiple paths in the disk
array in one operation using range operators. Each host group on an XP128/XP1024 can have a
maximum of 256 paths, while each port can have a maximum of 512 paths. For an
XP10000/XP12000, each host group can have a maximum of 1024 paths, while each port can
have a maximum of 1024 paths.
Syntax create lun <portname...>, <hostgrpnickname...>,
<lunid...>, <cu...>, <ldev...>
Arguments <portname...>
The port from which the path has to be created. <portname> can be specified as one port, a
set of ports, or a range of ports (for example, 1A or 1A:1C:1D or 1A-1E). Port names must be
specified in truncated form (for example, 1A and not CL1-A) because the hyphen (-) is used to
specify a range.
<hostgrpnickname...>
The host group from which the path has to be created. <hostgrpnickname> can be specified
as one group nickname or a set of group nicknames (for example, nick1 or nick1:nick3).
<lunid...>
The LUN ID to assign to the path being created. <lunid> can be specified as one value, a set of
values, or a range of values (for example, 1 or 1:3:7 or 1-F). LUN IDs must be given in
hexadecimal. Each host group can have a maximum of 256 LUN IDs (1023 for
XP10000/XP12000).
<cu...>
The CUs to which paths have to be created. <cu> can be one value, a set of values, or a range
of values (for example, 0 or 0:2:3 or 0-4). CUs must be given in hexadecimal.
<ldev...>
This specifies the LDEVs to which paths have to be created. <ldev> can be one value, a set of
values, or a range of values (for example, A or 0:A:1A or 0-F). LDEVs must be given in
hexadecimal and are not case sensitive.
The product of the number of values specified in <hostgrpnickname> and <lunid> should
be equal to the product of the number of values specified in <cu> and <ldev>.
Rules for Creating Paths
• The port type must be Fibre Channel.
• When you want to add an LU path to a host group (other than the default host group), the port
security switch must be set to ON.
• The emulation type of the LDEV must be an open system emulation. OPEN-3, OPEN-8, OPEN-9,
OPEN-E, OPEN-L and OPEN-V are supported for the CLI.
• A host group can have only one LU path definition for the LDEV.
• When the LDEV is a LUSE volume, you must specify its top LDEV number.
• The range of LU numbers is 0-255.
• The host group can have a maximum of 256 LU paths for an XP128/XP1024 and 1024 LU paths
for an XP10000/XP12000.
• The port can have a maximum of 512 LU paths for an XP128/XP1024
or 1024 LU paths for an XP10000/XP12000.
• The LDEV must not be an Auto LUN reserved volume.