How to remove swap space
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
Incoming search terms:
- CentOS-906 (2)
Related posts:
Leave a Reply 392 views, 1 so far
today |










