| Mobile | RSS

How to remove swap space

June 22nd, 2011 | No Comments | Posted in OS Internals

This how to is about how to  remove swap space in linux
To reduce LVM 2 swap logical volume(/dev/VolGroup00/LogVol01) use the following steps

Step 1: Disable swapping for associated logical volume
#swapoff -v /dev/VolGroup00/LogVol01

Step 2: Reduce the LVM 2 logical volume by 512MB
#lvm lvreduce /dev/VolGroup00/LogVol01 -L -512M

Step 3: Format new swap space
#mkswap /dev/VolGroup00/LogVol01

Step 4: Enable extended logical volume
#swapon -va
Then verify the result using #cat /proc/swaps

Related Posts Plugin for WordPress, Blogger...

Incoming search terms:

Related posts:

Leave a Reply 392 views, 1 so far today |