Delete LUNs


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

What you’ll need

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

    lun mapping delete -vserver vs5 -volume vo5 -lun lun5 -igroup igr5

  3. Delete the LUN:

    lun delete

    lun delete -vserver vs5 -volume vol5 -lun lun5

  4. Verify that you deleted the LUN:

    lun show

    lun show -vserver vs5

    Vserver   Path              State    Mapped  Type     Size
    --------- ----------------- -------- ------- -------- ------
    vs5       /vol/vol16/lun8   online   mapped  windows  10.00GB