Sun Cluster 3.0-3.1 With Sun StorEdge A3500FC System Manual for Solaris OS

ProcedureHow to Delete a LUN

Use this procedure to delete one or more LUNs. 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 that you delete.

Caution – Caution –

Do not delete LUN 0.

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

    # format
    0. c0t5d0 <SYMBIOS-StorEdgeA3500FCr-0301 cyl3 alt2 hd64 sec64>
    1. c0t5d1 <SYMBIOS-StorEdgeA3500FCr-0301 cyl2025 alt2 hd64 sec64>
  2. Does a volume manager manage the LUN that you are deleting?

    • If no, proceed to Step 3.

    • If yes, remove the LUN from any diskset or disk group. For more information, see your Solstice DiskSuite/Solaris Volume Manageror 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
  3. From one node, delete the LUN.

    For the procedure about how to delete a LUN, see the Sun StorEdge RAID Manager User’s Guide.

  4. Remove the paths to the LUNs 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 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, with this configuration.

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

    The alternate paths would be:

  6. Remove the alternate paths to the LUNs you are deleting.

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

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

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

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

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

  11. Repeat Step 3 through Step 10 on the other node that is attached to the storage system.