This post mainly deals with the management of swap space in hp unix.
Swap refers to the Virtual space or Paging space as referred according to the UNIX flavour.
Importance of Swap Space has the ability to provide much memory space than the machine has.
The default swap space in hp unix "/dev/vg#/lvol2".
Logical volume of partition "2" is assigned as default swap space. This space cannot be extended or reduced.
# lvcreate -n <Logical_Volume_Name> -L <Size_of_LV> <Volume_Group_Name> : Command to create a logical volume of desired size.
Swap Space should be twice the size of Physical Memory.
# swapon <Logical_Volume_Name> : Command to assign the the created the logical volume as a swap device.
# swapinfo -dtm : Command to verify the created swap device is created an activated.
Ensure the entry has been made at "/etc/fstab" for the swap space to persist across the reboot.
/etc/fstab
<Logical_Volume_Name> "/" swap defaults 0 0
Swap refers to the Virtual space or Paging space as referred according to the UNIX flavour.
Importance of Swap Space has the ability to provide much memory space than the machine has.
The default swap space in hp unix "/dev/vg#/lvol2".
Logical volume of partition "2" is assigned as default swap space. This space cannot be extended or reduced.
# lvcreate -n <Logical_Volume_Name> -L <Size_of_LV> <Volume_Group_Name> : Command to create a logical volume of desired size.
Swap Space should be twice the size of Physical Memory.
# swapon <Logical_Volume_Name> : Command to assign the the created the logical volume as a swap device.
# swapinfo -dtm : Command to verify the created swap device is created an activated.
Ensure the entry has been made at "/etc/fstab" for the swap space to persist across the reboot.
/etc/fstab
<Logical_Volume_Name> "/" swap defaults 0 0