Use the mkps command to create a VxVM volume as a secondary paging device.
The following requirements must be met to create a VxVM volume as a secondary paging device:
The specified disk group must exist in the system.
The disk group must not be CDS type. Disks must be in aixdisk format, not cdsdisk format.
The paging space cannot be created on a shared disk group.
The volume layout must be a VxVM simple volume (concat layout).
If the specified volume exists in the disk group, the volume must be of the use type swap. In this case, you must specify mkps with all of the arguments; however, the command ignores the size argument.
If the specified volume does not exist in the disk group, the volume is created with the use type swap.
To create a VxVM volume which acts as a secondary paging device
# mkps -t vxvm volume_name -s volume_size disk_group [devices]
Where:
The volume_name is mandatory for the -t vxvm option. (This differs from the command on LVM.)
NOTE: Due to a limitation in the name field of CuAt ODM class in AIX, the paging space name (volume_name) cannot be greater that 15 characters.
The volume_size specifies the size of the volume, with one of the following suffixes: k/K/m/M/g/G. If you do not specify a suffix, the size is in number of blocks. (This differs from the command when -t lv or -t nfs, which defaults to the size in number of LPs.)
The optional devices specifies the device or devices on which to create the volume.
For example, to create a VxVM volume myswapvol of size 1000M and configure it as a secondary paging device:
# mkps -t vxvm myswapvol -a -s 1000m mydg
# vxprint -g mydg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 dg mydg mydg - - - - - - dm mydg1 ibm_ds8x000_5 - 4120320 - - - - dm mydg2 ibm_ds8x000_6 - 4120320 - - - - v myswapvol swap ENABLED 2048000 - ACTIVE - - pl myswapvol-01 myswapvol ENABLED 2048000 - ACTIVE - - sd mydg1-01 myswapvol-01 ENABLED 2048000 0 - - -