Sun Cluster 3.0 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 connected to the StorEdge A3500/A3500FC system, use the format command to determine the paths to the LUN you are deleting (sample output shown below):


    # format
    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. Does a volume manager manage the LUN you are deleting?

    • If not, go to Step 3.

    • If a volume manager does manage the LUN, 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 note below for additional required VERITAS Volume Manager commands).


      Note -

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


  3. From one node, delete the LUN.

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

  4. 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*
    

  5. Use the lad command to determine the alternate paths to the LUN(s) 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 disk array to determine the alternate path.

    For example, with this configuration:


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

    The alternate paths would be:


    /dev/osa/dev/dsk/c1t4d1*
    /dev/osa/dev/rdsk/c1t4d1*

  6. Remove the alternate paths to the LUN(s) you are deleting:


    # rm /dev/osa/dev/dsk/cNtXdY*
    # rm /dev/osa/dev/rdsk/cNtXdY*
    

  7. On both nodes, remove all obsolete device IDs (DID)s:


    # scdidadm -C
    

  8. Switch resources and device groups off the node:


    # scswitch -Sh nodename
    

  9. Shut down the node:


    # shutdown -y -g0 -i0
    

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


    # boot -r
    

  11. Repeat Step 3 through Step 10 on the other node attached to the StorEdge A3500/A3500FC system.