2 Answers
2

First of all, swap should be equal 2x physical RAM for up to 2 GB of physical RAM, and then an additional 1x physical RAM for any amount above 2 GB, but never less than 32 MB.

For adding swap space, you have three options: create a new swap partition, create a new swap file, or extend swap on an existing LVM logical volume. It is recommended that you extend an existing logical volume.

Creating a logical volume for swap

To add a swap volume group (assuming /dev/VolGroup00/LogVol02 is the swap volume you want to add):