Sun Cluster 3.1 - 3.2 With Sun StorEdge 3310 or 3320 SCSI RAID Array Manual for Solaris OS

ProcedureHow to Unmap and Delete a LUN

Use this procedure to delete a LUN(s). See the Sun StorEdge 3000 Family RAID Firmware 4.1x User’s Guide for the latest information about LUN administration.


Caution – Caution –

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


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.

Before You Begin

This procedure assumes that the cluster is online. A cluster is online if the RAID storage array is connected to the nodes and all nodes are powered on. This procedure also assumes that you plan to telnet to the RAID storage array perform this procedure.

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

  1. Identify the LUNs that you need to remove.


    # cfgadm -al
    
  2. If the LUN is configured as a quorum device, relocate that quorum device to another suitable RAID storage array.

    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 your Sun Cluster system administration documentation.

  3. Remove the LUN from disksets or disk groups.

    Run the appropriate Solstice DiskSuite/Solaris Volume Manager commands 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. See the following paragraph 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 the LUNs 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. On both nodes, unconfigure the device that is associated with the LUN.


    # cfgadm -c unconfigure cx::dsk/cxtydz
    
  5. Unmap the LUN from both host channels.

    For the procedure about how to unmap a LUN, see the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide.

  6. Delete the logical drive.

    For more information, see the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide.

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


    # devfsadm -C
    
  8. On both nodes, remove all obsolete device IDs (DIDs).

    • 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
      
  9. If no other LUN is assigned to the target and LUN ID, remove the LUN entries from /kernel/drv/sd.conf file.

    Perform this step on both nodes to prevent extended boot time caused by unassigned LUN entries.


    Note –

    Do not remove default t0d0 entries.