Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

# /etc/vx/bin/vxcp_lvmroot -R 30 -v -b c0t4d0
# /etc/vx/bin/vxrootmir -v -b c1t1d0
The disk name assigned to the VxVM root disk mirror also uses the format
rootdisk## with ## set to the next available number.
The target disk for a mirror that is added using the vxrootmir command must be
large enough to accommodate the volumes from the VxVM root disk.
Once you have successfully rebooted the system from a VxVM root disk to init
level 1, you can use the vxdestroy_lvmrootcommand to completely remove the
original LVM root disk (and its associated LVM volume group), and re-use this
disk as a mirror of the VxVM root disk, as shown in this example:
# /etc/vx/bin/vxdestroy_lvmroot -v c0t0d0
# /etc/vx/bin/vxrootmir -v -b c0t0d0
You may want to keep the LVM root disk in case you ever need a boot disk that
does not depend on VxVM being present on the system. However, this may require
that you update the contents of the LVM root disk in parallel with changes that
you make to the VxVM root disk.
See Creating an LVM root disk from a VxVM root disk on page 121.
See the vxcp_lvmroot(1M) manual page.
See the vxrootmir(1M) manual page.
See the vxdestroy_lvmroot(1M) manual page.
See the vxres_lvmroot (1M) manual page.
Creating an LVM root disk from a VxVM root disk
In some circumstances, it may be necessary to boot the system from an LVM root
disk. If an LVM root disk is no longer available or an existing LVM root disk is
out-of-date, you can use the vxres_lvmrootcommand to create an LVM root disk
on a spare physical disk that is not currently under LVM or VxVM control. The
contents of the volumes on the existing VxVM root disk are copied to the new
LVM root disk, and the LVM disk is then made bootable. This operation does not
remove the VxVM root disk or any mirrors of this disk, nor does it affect their
bootability.
The target disk must be large enough to accommodate the volumes from the VxVM
root disk.
Warning: This procedure should be carried out at init level 1.
121Administering disks
Rootability