Sun Cluster 3.1 - 3.2 With Sun StorEdge 3510 or 3511 FC RAID Array Manual for Solaris OS

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.


Before You Begin

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands, in Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS.

To perform this procedure, become superuser or assume a role that provides solaris.cluster.read and solaris.cluster.modify RBAC authorization.

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

    Refer to your Solaris Volume Manager or Veritas Volume Manager documentation for the appropriate commands.

    For example, use one of the following pairs of commands.

    • If you are using Sun Cluster 3.2, use the following commands:


      # luxadm probe
      # cldevice show 
      
    • If you are using Sun Cluster 3.1, use the following commands:


      # luxadm probe
      # scdidadm -L pathname
      
  2. If the LUN that you will remove is configured as a quorum device, choose and configure another device as the quorum device. Then remove the old quorum device.

    To determine whether the LUN is configured as a quorum device, use one of the following commands.

    • If you are using Sun Cluster 3.2, use the following command:


      # clquorum show 
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scstat -q
      

    For procedures about how to add and remove quorum devices, see Chapter 6, Administering Quorum, in Sun Cluster System Administration Guide for Solaris OS.

  3. Remove the LUN from disksets or disk groups.

    Run the appropriate Solaris Volume Manager or Veritas Volume Manager commands to remove the LUN from any diskset or disk group. For more information, see your 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.

    • If you are using Sun Cluster 3.2, use the following command:


      # cldevice clear
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scdidadm -C