ProblemHow to replace a failing disk
If a disk is marked as failing, first check in the /var/adm/messages log and check to see if there are messages about the failing disk. These messages will commonly show up as scsi errors in the message log.
After the failure has been determined to be a permanent failure first remove the disk using the vxdiskadm options list.
Pick option 4 - Remove a disk for replacement.
Once this option has been picked, follow the prompts to remove the disk.
When the disk has been removed, chose option 5 - Replace a failed or removed disk. Follow the prompts for disk replacement.
Once the disk has been successfully replaced quite out of the vxdiskadm menu.
To bring the new disk under volume manager control do a:
Once volume manager has control of the disk, perform the following commands:
(for redundant volumes)
#vxvol -g <diskgroup> -f start <volume>
(for non-redundant volumes)
#fsck -F vxfs /dev/vx/rdsk/diskgroup/volume
(checks for data consistency)