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

disk to the new VxVM root disk, optionally creates a mirror of the VxVM root disk
on another specified physical disk, and make the VxVM root disk and its mirror
(if any) bootable by HP-UX.
Note: Operations involving setting up a root image, creating a mirror, and restoring
the root image are not supported on the LVM version 2 volume groups.
Only create a VxVM root disk if you also intend to mirror it. There is no benefit
in having a non-mirrored VxVM root disk for its own sake.
Warning: These procedures should be carried out at init level 1.
The following example shows how to set up a VxVM root disk on the physical disk
c0t4d0:
# /etc/vx/bin/vxcp_lvmroot -b c0t4d0
The -b option to vxcp_lvmroot uses the setboot command to define c0t4d0 as
the primary boot device. If this option is not specified, the primary boot device is
not changed.
If the destination VxVM root disk is not big enough to accommodate the contents
of the LVM root disk, you can use the -R option to specify a percentage by which
to reduce the size of the file systems on the target disk. (This takes advantage of
the fact that most of these file systems are usually nowhere near 100% full.) For
example, to specify a size reduction of 30%, the following command would be
used:
# /etc/vx/bin/vxcp_lvmroot -R 30 -v -b c0t4d0
The verbose option, -v, is specified to give an indication of the progress of the
operation.
The next example uses the same command and additionally specifies the -m option
to set up a root mirror on disk c1t1d0:
# /etc/vx/bin/vxcp_lvmroot -m c1t1d0 -R 30 -v -b c0t4d0
In this example, the -b option to vxcp_lvmroot sets c0t4d0 as the primary boot
device and c1t1d0 as the alternate boot device.
This command is equivalent to using vxcp_lvmroot to create the VxVM-rootable
disk, and then using the vxrootmircommand to create the mirror:
Administering disks
Rootability
120