Skip to main content

Deleting LUNs

You can delete a LUN from a storage virtual machine (SVM) if you no longer need the LUN.

Before you begin

The LUN must be unmapped from its igroup before you can delete it.

  1. Verify that the application or host is not using the LUN.
  2. Unmap the LUN from the igroup: lun mapping delete
    Example lun mapping delete -vserver vs5 -volume vo5 -lun lun5 -igroup igr5
  3. Delete the LUN: lun delete
    Example lun delete -vserver vs5 -volume vol5 -lun lun5
  4. Verify that you deleted the LUN: lun show
    Examplelun show -vserver vs5
    Vserver   Path              State    Mapped  Type     Size
    --------- ----------------- -------- ------- -------- ------
    vs5 /vol/vol16/lun8 online mapped windows 10.00GB