VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Chapter 2, Administering Disks
Rootability
73
Creating an LVM Root Disk from a VxVM Root Disk
Note These procedures should be carried out at init level 1.
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_lvmroot command to create an LVM root disk on a spare physical
disk that is not currently under LVM orVxVM control.The contentsof 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 removethe VxVM root disk or any mirrors of this
disk, nor does it affect their bootability.
Note The target disk must be large enough toaccommodate the volumes from the VxVM
root disk.
This example shows how to create an LVM root disk on physical disk c0t1d0 after
removing the existing LVM root disk configuration from that disk.
# /etc/vx/bin/vxdestroy_lvmroot -v c0t1d0
# /etc/vx/bin/vxres_lvmroot -v -b c0t1d0
The -b option to vxres_lvmroot sets c0t1d0 as the primary boot device.
As these operations can take some time, the verbose option, -v, is specified to indicate
how far the operation has progressed.
For more information, see the vxres_lvmroot (1M) manual page.
Adding Swap Disks to a VxVM Rootable System
On occasion,you may need to increase the amount of swapspace for an HP-UX system. If
your system has a VxVM root disk, use the procedure described below.
1. Create a new volume that is to be used for the swap area. The following example
shows how to set up a non-mirrored 1GB simple volume:
# vxassist -g rootdg make swapvol2 1g
2. Add the new volume as a swap device to the /etc/fstab file as shown in this
sample entry:
/dev/vx/dsk/rootdg/swapvol2 / swap pri=1 0 0
3. Use the System Administration Manager (SAM) to increase the value of the
maxswapchunks tunable as required by the swapon command. For example, if you
double the amount of swap space, double the value of maxswapchunks.