Increasing Swap Space

From UNIX Systems Administration
Revision as of 21:42, 13 October 2021 by Michael Kohler (talk | contribs) (→‎Linux Swap in a Partition)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

AIX

  1. Determine the current amount of paging space available to the server.
    # lsps -a
  2. Increase Paging Space
    # mkps -n -s <# logical partitions> <volume group> <physical volume>

Linux Swap in LVM

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

Further Reading

  1. Adding Swap Space