Use this procedure to delete one or more LUNs. See the Sun StorEdge RAID Manager Release Notes for the latest information about LUN administration.
This procedure removes all data on the LUN that you delete.
Do not delete LUN 0.
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.
To perform this procedure, become superuser or assume a role that provides solaris.cluster.read and solaris.cluster.modify RBAC authorization.
From one node that is connected to the storage system, determine the paths to the LUN that you are deleting.
# 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 |
If a volume manager manages the LUN that you are deleting, remove the LUN from any diskset or disk group.
For more information, see your 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 |
From one node, delete the LUN.
For the procedure about how to delete a LUN, see the Sun StorEdge RAID Manager User’s Guide.
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* |
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:
/dev/osa/dev/dsk/c1t4d1* /dev/osa/dev/rdsk/c1t4d1* |
Remove the alternate paths to the LUNs you are deleting.
# rm /dev/osa/dev/dsk/cNtXdY* # rm /dev/osa/dev/rdsk/cNtXdY* |
On both nodes, remove all obsolete device IDs.
Move all resource groups and device groups off the node.
Shut down the node.
For the procedure about how to shut down and power off a node, see your Sun Cluster system administration documentation.
To create the new Solaris device files and links, perform a reconfiguration boot by adding -r to your boot instruction.
For more information about how to boot nodes, see Chapter 3, Shutting Down and Booting a Cluster, in Sun Cluster System Administration Guide for Solaris OS.
Repeat Step 3 through Step 10 on the other node that is attached to the storage system.