Encapsulating and mirroring the root disk

VxVM lets you mirror the root volume and other areas needed for booting onto another disk. This makes it possible to recover from failure of your root disk by replacing it with one of its mirrors.

Use the fdisk or sfdisk commands to obtain a printout of the root disk partition table before you encapsulate the root disk. For more information, see the appropriate manual pages. You may need this information should you subsequently need to recreate the original root disk.

See the Veritas Storage Foundation and High Availability Solutions Troubleshooting Guide.

You can use the vxdiskadm command to encapsulate the root disk.

You can also use the vxencap command, as shown in this example where the root disk is sda:

# vxencap -c -g diskgroup rootdisk=sda

where diskgroup must be the name of the current boot disk group. If no boot disk group currently exists, one is created with the specified name. The name bootdg is reserved as an alias for the name of the boot disk group, and cannot be used. You must reboot the system for the changes to take effect.

Both the vxdiskadm and vxencap procedures for encapsulating the root disk also update the /etc/fstab file and the boot loader configuration file (/boot/grub/menu.lst or /etc/grub.conf (as appropriate for the platform) for GRUB or /etc/lilo.conf for LILO):

The contents of the original /etc/fstab and boot loader configuration files are saved in the files /etc/fstab.b4vxvm, /boot/grub/menu.lst.b4vxvm or /etc/grub.conf.b4vxvm for GRUB, and /etc/lilo.conf.b4vxvm for LILO.

Warning:

When modifying the /etc/fstab and the boot loader configuration files, take care not to corrupt the entries that have been added by VxVM. This can prevent your system from booting correctly.

To mirror the root disk onto another disk after encapsulation

More Information

Restrictions on using rootability with Linux

Encapsulating a disk