Index  |  Top  -  Up Data ONTAP 8.2

lun delete

Delete the LUN

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command deletes a LUN from a specified Vserver and volume. If the LUN is mapped and online, the force option is required to delete it.

If a LUN is mapped to an initiator group, you can unmap it by using the lun unmap command. If a LUN is online, you take it offline by using the lun offline command.

Note:

Parameters

-vserver <vserver name> - Vserver Name

Specifies the Vserver.

{  -path <path> - LUN Path

Specifies the path of the LUN you want to delete. Examples of correct LUN paths are /vol/vol1/lun1 and /vol/vol1/qtree1/lun1.

|  -volume <volume name> - Volume Name

Specifies the volume that contains the LUN you want to delete.

   [-qtree <text>] - Qtree Name

Specifies the qtree that contains the LUN you want to delete.

   -lun <text>  } - LUN Name

Specifies the LUN that you want to delete.

[-force | -f [true]] - Force Delete

Force deletion of an online LUN that is mapped to an initiator group.

Examples

cluster1::> lun delete -vserver vs1 -path /vol/vol1/lun1

Deletes the LUN at path /vol/vol1/lun1 on Vserver vs1.

See Also

lun unmap   lun offline  
Index  |  Top  -  Up Data ONTAP 8.2