Increasing Swap Space: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== AIX == | == AIX == | ||
# Determine the current amount of paging space available to the server. | |||
#: <tt>'''# lsps -a'''</tt> | |||
# Increase Paging Space | |||
#: <tt>'''# mkps -n -s <# logical partitions> <volume group> <physical volume>'''</tt> | |||
== Linux Swap in LVM == | == Linux Swap in LVM == | ||
# Disable swap for the logical volume. | # Disable swap for the logical volume. | ||
# | #: <tt>'''# swapoff -v </dev/<volume group>/<swap logical volume>'''</tt> | ||
# Resize the logical volume. | # Resize the logical volume. | ||
# | #: <tt>'''# lvresize </dev/<volume group>/<swap logical volume> -L +<SIZE>G'''</tt> | ||
# Format the new swap space. | # Format the new swap space. | ||
# | #: <tt>'''# mkswap </dev/<volume group>/<swap logical volume>'''</tt> | ||
# Enable the swap space. | # Enable the swap space. | ||
# | #: <tt>'''# swapon -v </dev/<volume group>/<swap logical volume>'''</tt> | ||
== Further Reading == | == Further Reading == |
Latest revision as of 21:42, 13 October 2021
AIX
- Determine the current amount of paging space available to the server.
- # lsps -a
- Increase Paging Space
- # mkps -n -s <# logical partitions> <volume group> <physical volume>
Linux Swap in LVM
- Disable swap for the logical volume.
- # swapoff -v </dev/<volume group>/<swap logical volume>
- Resize the logical volume.
- # lvresize </dev/<volume group>/<swap logical volume> -L +<SIZE>G
- Format the new swap space.
- # mkswap </dev/<volume group>/<swap logical volume>
- Enable the swap space.
- # swapon -v </dev/<volume group>/<swap logical volume>