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 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.


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/

5 Responses

  1. jack says:

    Do we need to initialize and configure the replaced disk in this process
    vxdisksetup -i
    cfgadm -c configure

  2. Ramdev Ramdev says:

    Hi Jack, the cfgadm you have to do it anyway to  make sure the disk is visible in  format output. But the initialize part the vxdiskadm will take care of it. And you can more clear instructions from here http://gurkulindia.com/main/2011/10/procedure-for-disk-replacement-under-veritas-volume-manager-using-vxdiskadm-utility/

  3. Rajeswari says:

    Is there any other way to replace the failed hard disk other than vxdiskadm?

    • Ramdev Ramdev says:

      You can always use command line. Please look at our Veritas troubleshooting section, you will find related procedures

  1. October 6, 2015

    […] of DISKGROUP in VXVM (Veritas Volume Manager). Read – Booting from an alternate boot disk Read – Replacing a failed boot disk Read – Resolving the Intermittent Disk errors by clearing […]

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

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

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