This section describes how to configure your system to remove a disk drive while the power is on and the operating system is running. Use the procedures in this section if you do not intend to replace the disk drive.
You must select the disk and stop any activity or applications on it, unmount it, physically remove the drive, and configure the Solaris environment to recognize that the drive is no longer there. You must then configure your application to operate without this device in place.
These procedures should be performed only by a qualified system administrator. Performing hot-plug operations on an active disk drive can result in data loss and/or data corruption.
Back up your system.
Identify the disk media name for the disk you intend to remove.
# vxdisk list | grep cwtxdysz
For example, if the disk to be removed is c2t1d0, enter:
# vxdisk list | grep c2t1d0 c2t1d0s2 sliced disk01 rootdg online
The disk media name is the third field in the output above: disk01.
You can use the vxdiskadm utility to prepare the disk for removal.
Type vxdiskadm in a shell.
This operation is interactive and requires user confirmation of the operation.
Select the "Remove a disk" option.
When prompted for a disk name to remove, type the disk media name from Step 2.
vxdiskadm marks the disk to be removed.
Refer to the vxdiskadm(1M) man page for further details.
Use the luxadm remove_device command to remove the disk.
The luxadm remove_device command is interactive. You will be guided through the procedure for removing a device or chain of devices.
# luxadm remove_device /dev/rdsk/c2t1d0s2 WARNING!!! Please ensure that no filesystems are mounted on these device(s). All data on these devices should have been backed up. The list of devices which will be removed is: 1: Box Name "macs1" front slot 1 Please enter 'q' to Quit or <Return> to Continue: stopping: Drive in "macs1" front slot 1....Done offlining: Drive in "macs1" front slot 1....Done Hit <Return> after removing the device(s).
Remove the disk drive and then hit any key.
The yellow LED on the designated disk drive(s) should be flashing.
The following is displayed:
Drive in Box Name "macs1" front slot 1 Removing Logical Nodes: Removing c2t1d0s0 Removing c2t1d0s1 Removing c2t1d0s2 Removing c2t1d0s3 Removing c2t1d0s4 Removing c2t1d0s5 Removing c2t1d0s6 Removing c2t1d0s7 #