Increasing Swap Space: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== AIX == == Linux Swap in a Partition == == Linux Swap in LVM == == Further Reading == # [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deploy...") |
No edit summary |
||
Line 2: | Line 2: | ||
== Linux Swap in a Partition == | == Linux Swap in a Partition == | ||
== Linux Swap in LVM == | == Linux Swap in LVM == | ||
# Disable swap for the logical volume. | |||
## <tt>'''# swapoff -v </dev/<volume group>/<swap logical volume>'''</tt> | |||
# Resize the logical volume. | |||
## <tt>'''# lvresize </dev/<volume group>/<swap logical volume> -L +<SIZE>G'''</tt> | |||
# Format the new swap space. | |||
## <tt>'''# mkswap </dev/<volume group>/<swap logical volume>'''</tt> | |||
# Enable the swap space. | |||
## <tt>'''# swapon -v </dev/<volume group>/<swap logical volume>'''</tt> | |||
== Further Reading == | == Further Reading == | ||
# [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-swap-adding.html Adding Swap Space] | # [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-swap-adding.html Adding Swap Space] |
Revision as of 16:59, 28 March 2016
AIX
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>