On 05/02/13 17:24, Andy Smith wrote:
Hi Paul,
On Tue, Feb 05, 2013 at 04:42:21PM +0000, Paul Stimpson wrote:
I also found out that the new Parted Magic disc
supports resizing LVM
containers as long as you deactivate them first :)
That's interesting.
You'd also have to deactivate them if doing it
on the command line, I think.
Being LVM-aware, I think the Parted Magic disc makes all VGs active at boot.
"Parted Magic" is a really silly name - it
makes me think of
Partition Magic! I assume you are talking about this though:
http://www.linuxuser.co.uk/reviews/parted-magic-review
The same...
So is it GParted that did the resizing for you?
I used your instructions to resize the PV on the host then used Parted
Magic to shrink the logical partition and the extended partition it was
contained in to match the new size of the PV. (/dev/sda2 was the
extended, containing logical partition /dev/sda5 that had been given LVM
love with pvcreate)
The newest version of Gparted (as on the CD) is LVM-ready and checks
that none of the extents are used when shrinking a container partition.
It won't let you chop the end off an LV.
Cheers,
Paul.