Ian Masters wrote:
Hello,
I'm in a slightly unusual situation and I'd really appreciate some advice.
I installed CentOS 5.2 on a server about a month ago.
Today I happened to check the 'free' command and noticed that the Swap line reads as follows:
Swap: 0 0 0
I'm pretty certain that when I installed the OS and created a custom partition table, that I defined a swap partition, but there is no swap line in /etc/fstab either.
However the output of 'lvm> lvdisplay' contains the following information (amongst others):
--- Logical volume --- LV Name /dev/VolGroup00/swap
If that volume is not in use by anything else you should be perfectly able to do:
mkswap /dev/VolGroup00/swap swapon /dev/VolGroup00/swap
then add something like this to fstab: /dev/VolGroup00 swap swap defaults 0 0
nate