How to Remove a Disk Drive
Use this procedure to remove a disk drive from a storage array in a running cluster. Perform the steps in this procedure in conjunction with the procedures in the Sun Cluster system administration documentation and the Sun StorEdge D2 Array Installation, Operation, and Service Manual.
For conceptual information on quorum, quorum devices, global devices, and device IDs, see your Sun Cluster concepts documentation document.
Identify the disk drive you are removing. Identify the slot from which you are removing the disk drive.
If the disk error message reports the drive problem by DID, use the scdidadm -l command to determine the Solaris device name. To list all configurable hardware information, use the cfgadm -al command.
# scdidadm -l deviceID # cfgadm -al
Is the disk drive you are removing a quorum device?
# scstat -q
If no, proceed to Step 3.
If yes, choose another disk drive to configure as the quorum device. Remove the old quorum device.
For procedures about how to add and remove quorum devices, see your Sun Cluster system administration documentation.
If possible, back up the metadevice or volume.
For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.
Perform volume management administration to remove the disk drive from the configuration.
For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.
Remove the disk drive.
For the procedure about how to remove a disk drive, see the Sun StorEdge D2 Array Installation, Operation, and Service Manual.
On all nodes, unconfigure the disk drive and remove references to the disk drive from the operating system and clustering environment.
# cfgadm -c unconfigure cN::dsk/cNtXdY # devfsadm -C # scdidadm -C
How to Replace a Disk Drive
Use this procedure to replace a disk drive in a storage array. Perform the steps in this procedure in conjunction with the procedures in the Sun Cluster system administration documentation and the Sun StorEdge D2 Array Installation, Operation, and Service Manual.
For conceptual information on quorum, quorum devices, global devices, and device IDs, see your Sun Cluster concepts documentation document.
Identify the failed disk drive.
# scdidadm -o diskid -l cNtXdY
Determine if the disk drive you want to replace is a quorum device.
# scstat -q
If the disk is not a quorum device, skip this step.
If the disk drive you want to replace is a quorum device, add a new quorum device on a different storage device and remove the old quorum device.
For the procedure on how to add and remove a quorum device, see your Sun Cluster system administration documentation.
If possible, back up the metadevice or volume.
For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.
If you are using Solstice DiskSuite/Solaris Volume Manager as your volume manager, save the disk partitioning for use when you partition the new disk drive.
# prtvtoc /dev/rdsk/cNtXdYsZ > filename
Note - Do not save this file under /tmp because you will lose this file when you reboot. Instead, save this file under /usr/tmp.
Replace the failed disk.
Determine which node owns the device group.
# scstat -D
If you are using VERITAS Volume Manager, remove the LUNs from the VERITAS Volume Manager control on a node that does not have ownership of the device group.
# vxdisk offline cNtXdY # vxdisk rm cNtXdY
On a node that does not have ownership of the device group, suspend activity on the SCSI bus.
# cfgadm -x replace_device cX::disk/cXtYdZ
When prompted, enter y to suspend activity on the SCSI bus.
After SCSI bus activity stops, replace the disk and enter y at the prompt.
After replacing the disk, warning messages might display. These messages can be ignored.
Switch the primary for the device group.
# scswitch -z -D disk-device-group -h node
If you are using VERITAS Volume Manager, remove the LUNs from the VERITAS Volume Manager control on a node that does not have ownership of the device group.
# vxdisk offline cNtXdY # vxdisk rm cNtXdY
Suspend activity on the device group's original primary.
# cfgadm -x replace_device cX::disk/cXtYdZ
When prompted, enter y to suspend activity on the SCSI bus.
When prompted to proceed with the disk replacement, enter y to proceed.
Warning messages might display. These messages can be ignored.
On all nodes that that are attached to the storage device, run the devfsadm(1M) command to probe all devices and to write the new disk drive to the /dev/rdsk directory.
Depending on the number of devices connected to the node, the devfsadm command can require at least five minutes to complete.
# devfsadm
Label the new disk drive by using the format command.
If you are using Solstice DiskSuite/Solaris Volume Manager as your volume manager, from any node that is connected to the storage device, partition the new disk drive by using the partitioning you saved.
If you are using VERITAS Volume Manager, skip this step.
# fmthard -s filename /dev/rdsk/cNtXdYsZ
From all nodes that are connected to the disk drive, update the DID database and driver.
# scdidadm -R deviceID
Note - After running scdidadm --R on the first node, each subsequent node that you run the command on might display a warning. This warning can be ignored.
From any node, confirm that the failed disk drive has been replaced by comparing the new physical DID to the physical DID that was identified at the beginning of this procedure.
If the new physical DID is different, you successfully replaced the failed disk drive with a new disk drive.
# scdidadm -o diskid -l cNtXdY
Perform volume management administration to add the disk drive back to its diskset or disk group.
For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.
If you want this new disk drive to be a quorum device, add the quorum device.
For procedures on how to add quorum devices, see your Sun Cluster system administration documentation.



