Tag:
We currently have an ext3 partition running on LVM which is using all of the 20G disk allocation (doh!) so we are unable to create any snapshots due to:
"Insufficient Free Extents Available"
We want to reduce the partition size to 15G so we have 5G to play with for snapshots and other LVM goodness.
First we umount our directory if it is currently in use:
We then run a fsck on our device
We then resize the ext3 partition "before" we resize the LVM partition
Then we resize the the LVM parition using the imaginatively named lvresize
And we're done. Yay!
umount /data/dir/in/use
e2fsck -f /dev/path/to/lvm/
resize2fs -p /dev/path/to/lvm/ 15G
lvresize /dev/path/to/lvm/ --size 15G
A Systems Consultant with over 11 years’ experience in dev and operations management, high availability web services and internet technologies.