Initialize the disk with format=sliced.
vxdisksetup-i format=sliced
Example:
#/etc/vx/bin/vxdisksetup-i c0t2d0s2 format=sliced
#/etc/vx/bin/vxdisksetup-i c3t2d0s2 format=sliced
Add the diskto the disk group rootdg
vxdg -g =
Example:
# vxdg -grootdg adddisk c0t2d0=c0t2d0s2
# vxdg -grootdg adddisk c3t2d0=c3t2d0s2
1. Create the mirrored volume in the rootdg using the vxassist command, assigning a usage type of 'swap,' .
vxassist -grootdg -U swap make layout=mirror,nologalloc=disk1 disk2
Example:
# vxassist-g rootdg -U swap make swap02 2g layout=mirror,nolog alloc=c0t2d0c3t2d0
2. Dynamically add the swap using the swap -a command:
swap -a
Example:
# swap -a/dev/vx/dsk/rootdg/swap02
3. Add a second swap entry to /etc/vfstab to have the new swap space be used automatically upon reboot:
Example:
/dev/vx/dsk/rootdg/swap02- - swap - no -