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

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.
See the vxres_lvmroot (1M) manual page.
Adding swap volumes to a VxVM rootable system
To add a swap volume to an HP-UX system with a VxVM root disk
1
Initialize the disk that is to be used to hold the swap volume (for example,
c2t5d0). The disk must be initialized as a hpdisk, not as a CDSdisk.
#/etc/vx/bin/vxdisksetup -i c2t5d0 format=hpdisk
2
Add the disk to the boot disk group with the disk media name swapdisk:
#vxdg -g bootdg adddisk swapdisk=c2t5d0
3
Create a VxVM volume on swapdisk (with a size of 4 gigabytes in this example):
#vxassist -g bootdg -U swap make swapvol1 4g dm:swapdisk
In this example, the size of the volume is 4 gigabytes.
4
Add the volume to the /etc/fstab file, and enable the volume as a swap
device.
#echo "/dev/vx/dsk/bootdg/swapvol1 - swap defaults 0 0" \
>> /etc/fstab
#swapon -a
5
View the changed swap configuration:
#swapinfo
Administering disks
Rootability
122