To extend an LVM2 swap logical volume (assuming LogVol01 is the volume you want to extend):

1.Disable swapping for the associated logical volume:

# swapoff -v LogVol01

2.Resize the LVM2 logical volume by 500 MB:

# lvm lvresize LogVol01 -L +500M

3.Format the new swap space:

# mkswap LogVol01

4.Enable swap on the extended logical volume:

# swapon -va

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.