VERITAS Volume Manager 3.5 Installation Guide (September 2004)
Getting Started with VxVM
Adding Swap Space Using VxVM Volumes
Chapter 5
66
Adding Swap Space Using VxVM Volumes
The HP System Administration Manager (SAM) currently does not have the capability to add swap
space using VxVM volumes. You need to use the VxVM CLI; for example:
Step 1. Run the command:
# /etc/vx/bin/vxdisksetup -i device
Step 2. If this command comes back with:
vxvm:vxdisk: ERROR: Device device is already in use by LVM.
then, go to Step 3; otherwise, go to Step 4.
Step 3. Run the following commands (it is necessary to run pvcreate first, since /etc/lvmtab may not exist):
# pvcreate -f /dev/rdsk/ device
# pvremove /dev/rdsk/ device
# vxdctl enable
# /etc/vx/bin/vxdisksetup -i device
Step 4. Run the following commands:
# vxdg adddisk swapdisk=device
# vxprint swapdisk
Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dm swapdisk c2t6d0 - 4191378 - - - -
Step 5. Run the commands:
# vxassist make swapvol2 4191378 swapdisk
# echo "/dev/vx/dsk/rootdg/swapvol2 ... swap pri=1 0 0" >>/etc/fstab
Step 6. Use SAM to:
• Increase the maxswapchunks tunable as required by swapon.
• Build a the kernel.
• Reboot your system.