Increasing Swap Space: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
Line 5: Line 5:
#: <tt>'''# lslv <ps logical Volume>'''</tt>
#: <tt>'''# lslv <ps logical Volume>'''</tt>
# Increase the number of logical partitions.
# Increase the number of logical partitions.
#: <tt>'''# chps -s <# logical partitions> <logical volume>'''</tt>
#: <tt>'''# chps -s <# logical partitions> <ps logical volume>'''</tt>


== Linux Swap in a Partition ==
== Linux Swap in a Partition ==

Revision as of 21:27, 13 October 2021

AIX 7.1

  1. Determine the current amount of paging space available to the server.
    # lsps -a
  2. Determine the size of a logical partition.
    # lslv <ps logical Volume>
  3. Increase the number of logical partitions.
    # chps -s <# logical partitions> <ps logical volume>

Linux Swap in a Partition

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