[CentOS] Re: LVM Resizing Problem

Shawn Everett shawn at tandac.com
Mon May 7 04:15:23 UTC 2007


On Sunday 06 May 2007, Scott Lamb wrote:
> On May 6, 2007, at 8:14 AM, Ross S. W. Walker wrote:
> >> LVM even warned you --IN CAPS-- "THIS MAY DESTROY YOUR DATA".
> >> I guess it was right. I haven't had much luck with reducing a
> >> volume below its
> >> initial size. I usually make a new LV and rsync or cp -a the
> >> data over to it.
> >>  I try to leave some free space just for this. Or add a drive
> >> temporarily.
> >
> > Were the LV calculations done in the VG's extent size unit?
> >
> > Most people forget LVM rounds to the closest whole extent in it's
> > calculations which I believe is 4MB by default, so care must be
> > taken to make sure any file system fits comfortably in there
> > first.
>
> Is there any tool which is aware of both the filesystem and LVM
> layers and can correctly ensure the filesystem fits?

You could always look at using system-config-lvm




More information about the CentOS mailing list