These are the high-level steps to replace a Sun StorEdge MultiPack or Sun StorEdge D1000 disk in an SSVM or CVM configuration:
Removing the failed disk in the disk enclosure by using the vxdiskadm command
Replacing the failed disk
Replacing the disk removed earlier by using the vxdiskadm command
For systems not running shared disk groups, master node refers to the node that has imported the disk group.
If you are running shared disk groups, determine the master and slave node by entering the following command on all nodes in the cluster:
# vxdctl -c mode |
Complete the following steps from the master node.
Determine if the disk in question had failures and is in the NODEVICE state.
If this is not the case, skip to Step 8.
Run the vxdiskadm utility and enter 4 (Remove a disk for replacement).
This option removes a physical disk while retaining the disk name. The utility then queries you for the particular device that you want to replace.
Enter the disk name or list.
The following example illustrates the removal of disk c2t8d0.
Enter disk name [<disk>,list,q,?] list Disk group: rootdg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c0t0d0s7 c0t0d0s7 simple 1024 20255 - Disk group: demo DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c1t2d0 c2t2d0s2 sliced 1519 4152640 - dm c1t3d0 c2t3d0s2 sliced 1519 4152640 - dm c1t4d0 c2t4d0s2 sliced 1519 4152640 - dm c1t5d0 c2t5d0s2 sliced 1519 4152640 - dm c1t8d0 c2t8d0s2 sliced 1519 4152640 - dm c1t9d0 c2t9d0s2 sliced 1519 4152640 - dm c2t2d0 c1t2d0s2 sliced 1519 4152640 - dm c2t3d0 c1t3d0s2 sliced 1519 4152640 - dm c2t4d0 c1t4d0s2 sliced 1519 4152640 - dm c2t5d0 c1t5d0s2 sliced 1519 4152640 - dm c2t8d0 c1t8d0s2 sliced 1519 4152640 - dm c2t9d0 c1t9d0s2 sliced 1519 4152640 - Enter disk name [<disk>,list,q,?] c2t8d0 The requested operation is to remove disk c2t8d0 from disk group demo. The disk name will be kept, along with any volumes using the disk, allowing replacement of the disk. Select "Replace a failed or removed disk" from the main menu when you wish to replace the disk. |
Enter y or press Return to continue.
Continue with operation? [y,n,q,?] (default: y) y Removal of disk c2t8d0 completed successfully. |
Enter q to quit the utility.
Remove another disk? [y,n,q,?] (default: n) q |
Enter vxdisk list and vxprint to view the changes.
The example disk c2t8d0 is removed.
# vxdisk list . c2t3d0s2 sliced c1t3d0 demo online shared c2t4d0s2 sliced c1t4d0 demo online shared c2t5d0s2 sliced c1t5d0 demo online shared c2t8d0s2 sliced c1t8d0 demo online shared c2t9d0s2 sliced c1t9d0 demo online shared - - c2t8d0 demo removed # vxprint . dm c2t3d0 c1t3d0s2 - 4152640 - - - - dm c2t4d0 c1t4d0s2 - 4152640 - - - - dm c2t5d0 c1t5d0s2 - 4152640 - - - - dm c2t8d0 - - - - REMOVED - - dm c2t9d0 c1t9d0s2 - 4152640 - - - - pl demo05-02 - DISABLED 51200 - REMOVED - - sd c2t8d0-1 demo05-02 DISABLED 51200 0 REMOVED - - . . . |
Replace the physical drive without powering off any component.
For further information, refer to the documentation accompanying the disk enclosure unit.
As you replace the drive, you may see messages on the system console similar to those in the following example. Do not become alarmed as these messages may not indicate a problem. Instead, proceed with the replacement as described in the next steps.
Nov 3 17:44:00 updb10a unix: WARNING: /sbus@1f,0/SUNW,fas@0,8800000/sd@2,0 (sd17): Nov 3 17:44:00 updb10a unix: SCSI transport failed: reason 'incomplete': \ retrying command Nov 3 17:44:03 updb10a unix: WARNING: /sbus@1f,0/SUNW,fas@0,8800000/sd@2,0 (sd17): Nov 3 17:44:03 updb10a unix: disk not responding to selection |
Run the vxdiskadm utility and enter 5 (Replace a failed or removed disk).
Enter the disk name.
You can enter list to see a list of disks in the REMOVED state.
The disk may appear in the NODEVICE state if it had failures.
Select a removed or failed disk [<disk>,list,q,?] list Disk group: rootdg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE Disk group: demo DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c2t8d0 - - - - REMOVED Select a removed or failed disk [<disk>,list,q,?] c2t8d0 |
The vxdiskadm utility detects the new device and asks you whether the new device should replace the removed device.
If there are other unused disks attached to the system, vxdiskadm also presents these disks as viable choices.
Enter the device name, or if the utility lists the device as the default, press Return.
The following devices are available as replacements: c1t8d0s2 You can choose one of these disks to replace c2t8d0. Choose "none" to initialize another disk to replace c2t8d0. Choose a device, or select "none" [<device>,none,q,?] (default: c1t8d0s2) <Return> The requested operation is to use the initialized device c1t8d0s2 to replace the removed or failed disk c2t8d0 in disk group demo. |
Enter y or press Return to verify that you want this device (in the example, c1t8d0s2) to be the replacement disk.
Continue with operation? [y,n,q,?] (default: y) <Return> Replacement of disk c2t8d0 in group demo with disk device c1t8d0s2 completed successfully. |
Enter n or press Return to quit this utility.
Replace another disk? [y,n,q,?] (default: n) <Return> |
Enter vxdisk list and vxprint to see the changes.
The example, disk c2t8d0, is no longer in the REMOVED state.
# vxdisk list . c2t2d0s2 sliced c1t2d0 demo online shared c2t3d0s2 sliced c1t3d0 demo online shared c2t4d0s2 sliced c1t4d0 demo online shared c2t5d0s2 sliced c1t5d0 demo online shared c2t8d0s2 sliced c1t8d0 demo online shared c2t9d0s2 sliced c1t9d0 demo online shared # vxprint . dm c2t4d0 c1t4d0s2 - 4152640 - - - - dm c2t5d0 c1t5d0s2 - 4152640 - - - - dm c2t8d0 c1t8d0s2 - 4152640 - - - - dm c2t9d0 c1t9d0s2 - 4152640 - - - - . |