On Thu, 24 Nov 2011 04:48:28 -0600, Dale wrote:

> umount /data
> e2fsck -f /dev/mapper/data-data1
> resize2fs /dev/mapper/data-data1 400G
> lvreduce -L 400G /dev/data/data1
> pvmove -v /dev/sdb1

I feel safer reducing the filesystem to smaller than the intended
partition/LV size, just in case, and resizing it back up after.

resize2fs /dev/mapper/data-data1 390G
lvreduce -L 400G /dev/data/data1
resize2fs /dev/mapper/data-data1

> I did have to unmount it first.  It just wouldn't proceed without that 
> one.  It then told me I had to run fsck on it too.

Those are both from resize2fs, once you have run that, you can remount the
filesystem.


-- 
Neil Bothwick

...and that is how we know the Earth to be banana-shaped.

Attachment: signature.asc
Description: PGP signature

Reply via email to