Create Additonal Swap Space

Here are the steps to add additional swap. In this example the new swapfile is named “extraswap”.

cd /

dd if=/dev/zero of=extraswap bs=2048M count=3

/sbin/mkswap /extraswap

/sbin/swapon /extraswap

You must also edit the /etc/fstab to include the new swapfile named /extraswap.

cp /etc/fstab /etc/fstab.bak

vi /etc/fstab
~
/dev/VolGroup_ID_25103/LogVol0 swap swap defaults 0 0
/extraswap swap swap defaults 0 0