Increase swap Partition
File method: 1. Generate
Generate a 1 Gb (bs * count) File
[Root @ localhost ~] # Dd if =/dev/zero of =/home/swap bs = 1024 count = 1024000
2. Mark
Force Execution
Mkswap-f/home/swap
3. Enable
Swapon/home/swap
Appendix:
[Root @ localhost ~] # Dd if =/dev/zero of =/home/swap bs = 1024 count = 10240001024000 + 0 records in1024000 + 0 records out1048576000 bytes (1.0 GB) copied, 4.21348 s, 249 MB/s [root @ localhost ~] # Mkswap/home/swapmkswap:/home/swap: warning: don't erase bootbits sectors on whole disk. use-f to force. setting up swapspace version 1, size = 1023996 KiBno label, UUID = 25e27794-76f4-4a0f-9a6a-9f90692396cf [root @ localhost ~] # Mkswap-f/home/swapSetting up swapspace version 1, size = 1023996 KiBno label, UUID = 9eb85935-9021-4f51-bec2-38928d1_aaa [root @ localhost ~] # Swapon/home/swap [root @ localhost ~] #