Increasing Swap Space: Difference between revisions
Jump to navigation
Jump to search
(→AIX) |
|||
Line 1: | Line 1: | ||
== AIX == | == AIX == | ||
# Determine the current amount of paging space available to the server. | |||
#: <tt>'''# lsps -a'''</tt> | |||
# Determine the size of a logical partition. | |||
#: <tt>'''# lslv <ps logical Volume>'''</tt> | |||
# Increase the number of logical partitions. | |||
#: <tt>'''# chps -s <# logical partitions> <logical volume>'''</tt> | |||
== Linux Swap in a Partition == | == Linux Swap in a Partition == | ||
== Linux Swap in LVM == | == Linux Swap in LVM == |
Revision as of 21:26, 13 October 2021
AIX
- Determine the current amount of paging space available to the server.
- # lsps -a
- Determine the size of a logical partition.
- # lslv <ps logical Volume>
- Increase the number of logical partitions.
- # chps -s <# logical partitions> <logical volume>
Linux Swap in a Partition
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>