VxVM : Replacing a failed boot disk
To replace disk for a failed boot disk must have at least as much storage capacity as was in use on the disk being replace. It must be large enough to accommodate all subdisks of the original disk at their current disk offsets
# vxprint -g rtdg -st -e ‘sd_disk=”rtdg01″‘
Disk group: rtdg
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
sd rtdg01-01 swapvol-01 rtdg01 0 1045296 0 c0t0d0 ENA
sd rtdg01-02 rootvol-01 rtdg01 1045296 16751952 0 c0t0d0 ENA
From the output, add the DISKOFFS and LENGTH values for the last subdisk listed for the disk. This size is in 512 byte sectors. Divide this number by 2 for the size in KB.
Procedure to replace from the boot disk:
- Boot the system from the alternate disk
- Remove the association between the failing device and its disk name using the “Remove a disk for replacement” function from vxdiskadm
- Shutdown the system and replace failed drive
- After reboot from the alternate boot disk, use the vxdiskadm “Replace a failed or removed disk” menu item to notify VxVM that you have replace the failed disk.
- Use vxdiskadm to mirror the alternate boot disk to the replacement boot disk
- When the volumes on the boot disk have been restored, shutdown the system, and test that the system can be booted from the replacement boot disk.