HP StorageWorks Command View XP Command Line Interface (CLI) reference guide (B9357-96161, January 2006)

Command View XP Command Line Interface (CLI) reference guide 61
delete lun
Description This command deletes one or more paths in the disk array in one operation. Each path is identified
by its port name, host group nickname, LUN ID, CU number, and LDEV number. You can also use
this command to delete all paths in specified ports and host groups, or CUs and LDEVs.
If you are using firmware version 21.06.22 or later, you can delete the last path to a command
device, and you can delete LUN paths with or without the port security turned on.
Syntax delete lun [<portname...>, <hostgrpnickname...>, <lunid...>, <cu...>,
<ldev...>] | [-port <portname...> -hostgrp <hostgrpnickname...> | -cu
<cu...> -ldev <ldev...>]
Arguments [<portname...>]
The port from which the paths are to be deleted. <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 within the specified port.
[<lunid...>]
The LUN ID. LUN IDs must be given in hexadecimal.
[<cu...>]
The CU number. For the XP128/XP1024, the CU numbers range from 0 to 31. For the
XP10000/XP12000, CU numbers range from 0 to 63. CU numbers must be displayed in
hexadecimal.
[<ldev...>]
The LDEV number. LDEVs must be given in hexadecimal.
[-port <portname...>]
Deletes all paths to the specified ports. <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. -port without any arguments generates an error. This option cannot be used
with the -cu and -ldev options, but must be used with the –hostgrp option. The –port
option without the –hostgrp option will generate an error.
[-hostgrp <hostgrpnickname...>]
Deletes all paths assigned to the specified host group defined in the port.
<hostgrpnickname> can be specified as only one group nickname or a set of group
nicknames (for example, nick1 or nick1:nick3). -hostgrp without any arguments generates an
error. This option cannot be used along with the -cu and -ldev options, but must be used with
the –port option. The –hostgrp option without the –port option will generate an error.
[-cu <cu...>]
Deletes all paths to the specified cu. <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. -cu without any arguments
generates an error. This option cannot be used along with the -port and -hostgrp options,
but must be used with the –ldev option. The –cu option without the –ldev option generates an
error.