Sun Cluster 3.0 12/01 Release Notes Supplement

How to Delete a LUN

Use this procedure to delete a LUN(s). See the Sun StorEdge RAID Manager Release Notes for the latest information about LUN administration.


Caution - Caution -

This procedure removes all data on the LUN you delete.



Caution - Caution -

Do not delete LUN 0.


  1. From one node that is connected to the StorEdge/Netra st A1000 array, use the format command to determine the paths to the LUN you are deleting (sample output follows).


    f28c# format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:       0. c0t10d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>          /sbus@3,0/SUNW,fas@3,8800000/sd@a,0       1. c1t5d0 <Symbios-StorEDGEA1000-0301 cyl 12160 alt 2 hd 64 sec 64>          /pseudo/rdnexus@1/rdriver@5,0       2. c2t2d0 <Symbios-StorEDGEA1000-0301 cyl 12160 alt 2 hd 64 sec 64>          /pseudo/rdnexus@2/rdriver@2,0

  2. Determine if the LUN that you plan to remove is configured as a quorum device.


    # scstat -q
    
    • If the LUN is not a quorum device, go to Step 3.

    • If the LUN is configured as a quorum device, choose and configure another device to be the new quorum device. Then remove the old quorum device.

  3. Remove the LUN from disksets or disk groups.

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

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


    # vxdisk offline cNtXdY
    # vxdisk rm cNtXdY
    

  4. From one node, delete the LUN.

    For the procedure on deleting a LUN, see the Sun StorEdge RAID Manager User's Guide.

  5. From the same node, remove the paths to the LUN(s) you are deleting.


    # rm /dev/rdsk/cNtXdY*
    # rm /dev/dsk/cNtXdY*
    # rm /dev/osa/dev/dsk/cNtXdY*
    # rm /dev/osa/dev/rdsk/cNtXdY*
    
  6. From the same node, remove all obsolete device IDs (DID)s.


    # scdidadm -C
    

  7. From the same node, switch resources and device groups off the node.


    # scswitch -Sh nodename
    

  8. Shut down the node.


    # shutdown -y -g0 -i0
    

  9. Boot the node and wait for it to rejoin the cluster:


    # boot -r
    

  10. Repeat Step 5 through Step 9 on the other node that is attached to the StorEdge/Netra st A1000 array.