Increasing Swap Space

From UNIX Systems Administration
Revision as of 16:59, 28 March 2016 by Michael Kohler (talk | contribs)
Jump to navigation Jump to search

AIX

Linux Swap in a Partition

Linux Swap in LVM

  1. Disable swap for the logical volume.
    1. # swapoff -v </dev/<volume group>/<swap logical volume>
  2. Resize the logical volume.
    1. # lvresize </dev/<volume group>/<swap logical volume> -L +<SIZE>G
  3. Format the new swap space.
    1. # mkswap </dev/<volume group>/<swap logical volume>
  4. Enable the swap space.
    1. # swapon -v </dev/<volume group>/<swap logical volume>

Further Reading

  1. Adding Swap Space