Sun Cluster 3.0-3.1 With StorEdge A1000 Array, Netra st A1000 Array, or StorEdge A3500 System Manual

ProcedureHow to Delete a LUN

Use this procedure to delete one or more LUNs. You might need to delete a LUN to free up or reallocate resources, or to use the disks for other purposes. See the Sun StorEdge RAID Manager Release Notes for the latest information about LUN administration.

Before You Begin

This procedure relies on the following prerequisites and assumptions.

Steps
  1. From one node that is connected to the storage array or storage system, determine the paths to the LUN that you are deleting.


    # format
    

    For example:


    phys-schost-1# format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    0. c0t5d0 <SYMBIOS-StorEdgeA3500FCr-0301 cyl3 alt2 hd64 sec64>
    /pseudo/rdnexus@0/rdriver@5,0
    1. c0t5d1 <SYMBIOS-StorEdgeA3500FCr-0301 cyl2025 alt2 hd64 sec64>
    /pseudo/rdnexus@0/rdriver@5,1
  2. (A1000 Only) Is the LUN a quorum device? This LUN is the LUN that you are removing.


    Note –

    Your storage array or storage system might not support LUNs as quorum devices. To determine if this restriction applies to your storage array or storage system, see Restrictions and Requirements.



    # scstat -q
    
    • If no, proceed to Step 3.

    • If yes, relocate that quorum device to another suitable storage array.

      For procedures about how to add and remove quorum devices, see your Sun Cluster system administration documentation. For a list of Sun Cluster documentation, see Related Documentation.

  3. Does a volume manager manage the LUN that you are deleting?

    • If no, proceed to Step 4.

    • If yes, remove the LUN from any diskset or disk group. For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.

      LUNs that were managed by VERITAS Volume Manager must be removed from VERITAS Volume Manager control before you can delete the LUNs. To remove the LUNs, after you delete the LUN from any disk group, use the following commands.


      # vxdisk offline cNtXdY
      # vxdisk rm cNtXdY
      
  4. Delete the LUN.

    For the procedure about how to delete a LUN, refer to your storage device's documentation.

  5. Remove the paths to the LUNs you are deleting.


    # rm /dev/rdsk/cNtXdY*
    # rm /dev/dsk/cNtXdY*
    
  6. Complete the removal of the paths by issuing the following RAID Manager commands.


    # rm /dev/osa/dev/dsk/cNtXdY*
    # rm /dev/osa/dev/rdsk/cNtXdY*
    
  7. (StorEdge A3500 Only) Determine the alternate paths to the LUNs you are deleting.

    The RAID Manager software creates two paths to the LUN in the /dev/osa/dev/rdsk directory. Substitute the cNtXdY number from the other controller module in the storage array to determine the alternate path.

    For example:


    # lad
    c0t5d0 1T93600714 LUNS: 0 1
    c1t4d0 1T93500595 LUNS: 2

    Therefore, the alternate paths are as follows:


    /dev/osa/dev/dsk/c1t4d1*
    /dev/osa/dev/rdsk/c1t4d1*
  8. (StorEdge A3500 Only) Remove the alternate paths to the LUNs you are deleting.


    # rm /dev/osa/dev/dsk/cNtXdY*
    # rm /dev/osa/dev/rdsk/cNtXdY*
    
  9. On both nodes, remove all obsolete device IDs.


    # scdidadm -C
    
  10. Move all resource groups and device groups off the node.


    # scswitch -S -h from-node
    
  11. Shut down the node.

    For the procedure about how to shut down and power off a node, see your Sun Cluster system administration documentation. For a list of Sun Cluster documentation, see Related Documentation.

  12. Perform a reconfiguration boot to create the new Solaris device files and links.

  13. Repeat Step 4 through Step 12 on the other node that is attached to the storage array or storage system.