[linux-lvm] Question about Physical volume

Bryn M. Reeves breeves at redhat.com
Fri Oct 20 09:25:51 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Marmetschke wrote:
> Hi,
> 
> is it possible to extend a phyiscal volume?
> 
> I have a strange problem, i resized the /dev/sda4 partion (8e Linux LVM)
> from 130GB to 220GB. so far so good.
> 

Hi Thomas,

Depending on how recent your version of LVM2 is, you can use pvresize to
do this:

# pvresize /dev/hda2

This will autodetect the new size of the PV and grow it accordingly. One
thing I noticed was that after fdisking the partition, a reboot was
needed to get kernel to see the new size - partprobe does not seem to be
sufficient.

That might have been a quirk though - check the partition sizes in
/proc/partitions to be sure.

Thanks,

Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFOJYf6YSQoMYUY94RAuw3AJ9WIBaHGASEcJiIentE+nTJ89nRzwCgh6PD
Aw822Rs8DA7VsQGTaIms4z0=
=80Uw
-----END PGP SIGNATURE-----




More information about the linux-lvm mailing list