Sun Cluster 3.0-3.1 With Sun StorEdge 3510 or 3511 FC RAID Array Manual

ProcedureHow to Unmap and Remove a LUN

Use this procedure to remove one or more LUNs. See the Sun StorEdge 3000 Family RAID Firmware 3.25 and 3.27 User's Guide for the latest information about LUN administration.

This procedure assumes that all nodes are booted in cluster mode and attached to the storage device.


Caution – Caution –

When you delete a LUN, you remove all data on the LUN that you delete.


Steps
  1. Identify the LUN or LUNs that you will remove.

    Refer to your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation for the appropriate commands. For example:


    # luxadm probe
    # scdidadm -L pathname
    
  2. Is the LUN that you will remove a quorum device?


    # scstat -q
    
  3. Remove the LUN from disksets or disk groups.

    Run the appropriate Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager commands to remove the LUN from any diskset or disk group. For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation for more information. See the following note for additional VERITAS Volume Manager commands that are required.


    Note –

    LUNs that were managed by VERITAS Volume Manager must be completely removed from VERITAS Volume Manager control before you can delete them from the Sun Cluster environment. After you delete the LUN from any disk group, use the following commands on both nodes to remove the LUN from VERITAS Volume Manager control.


    # vxdisk offline cNtXdY
    # vxdisk rm cNtXdY
    

  4. Unmap the LUN from both host channels.

    For the procedure on unmapping a LUN, see the Sun StorEdge 3000 Family RAID Firmware 3.25 and 3.27 User's Guide.

  5. (Optional) Delete the logical drive.

    For more information, see Sun StorEdge 3000 Family RAID Firmware 3.25 and 3.27 User's Guide.

  6. On both nodes, remove the paths to the LUN that you are deleting.


    # devfsadm -C
    
  7. On both nodes, remove all obsolete device IDs.


    # scdidadm -C