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:

  1. Boot the system from the alternate disk
  2. Remove the association between the failing device and its disk name using the “Remove a disk for replacement” function from vxdiskadm
  3. Shutdown the system and replace failed drive
  4. 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.
  5. Use vxdiskadm to mirror the alternate boot disk to the replacement boot disk
  6. 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.
Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

1 Response

  1. July 22, 2016

    […] : Fails to start after rebooting the system Read – Recovering an unstartable mirrored volume Read – Replacing a failed boot disk Read – Recover Root Mirror from Backup Read – […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us