Re: shrink lvm to get spare space
On Sun, Apr 26, 2009 at 07:35:18PM -0500, Boyd Stephen Smith Jr. wrote:
> >> 4. Shrink the partition.  (I'm comfortable with fdisk, but gparted is
> >> the recommendation I've heard the most.)
> >If I don't do this, will there be spare space unformatted after I do the
> >first two steps?
> 
> It will be "unformatted" as soon as you run resize2fs.  (I think; LVM might 
> use some space at the end of a pv.)
> 
> However, this space is still "claimed" by LVM, and it will fail or, at 
> least, complain if that space is not available to it.  You must reduce the 
> size of the physical volume to prevent LVM from expecting that space to be 
> available.  (It will still claim the device, so you'll be unable to reload 
> the partition table while the vg that the pv is in is active.)
Thanks Boyd, I understand it now.
Regards,
-- 
Zhengquan
Reply to: