[linux-lvm] quick pvresize question

James Hawtin oolon at ankh.org
Wed Apr 17 18:26:02 UTC 2002

On Thu, 18 Apr 2002, Trond Are Haugland wrote:

> Hello people at Sistina!
> Is it possible/safe to resize a physical volume to use
> free space _before_ the start block of the pv?
> Thank you so much for creating LVM for Linux,
> it absolutely ROCKS :-)
> --
> Trond Are Haugland <trondare at trolltech.com>
> Trolltech AS

No, its not, pv cannot be expanded or reduced in size, A dirty hack would
be to create another PV on the disk, just make sure you speficy pvs when
you do striping so you don't strip the same drive ;-)

Its fine for concatinated volumes. If you have a spare disk and a little
time, create a new pv on your space disk use pvmove to mvoe from your old
disk to the temp. vgreduce out the old disks pv, repartion the disk then
create a new pv on it. vgexpand to the (old/new disk) then pvmove your
data back then vgreduce out your temp disk.

I have done this a few times :-) make sure you use latest version of lvm
there are some problems with pvmove before that.


More information about the linux-lvm mailing list