quick pvresize question
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 :-)
Signature · 2 lines
Trond Are Haugland <[email protected]> Trolltech AS
Quoted 11 lines · Trond Are Haugland
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 <[email protected]>
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.
James
Quoted 14 lines · James Hawtin
Quoted 11 lines · Trond Are Haugland
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 <[email protected]>
Trolltech AS
Quoted 3 lines
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 ;-)
You actually can pvresize.
If you have two partitions you can concatinate (fdisk) and the first holds a PV, pvresize it to take the additional space.
Or you want to take advantage of the extended space in a RAID subsystems volume (could be MD or a HW subsystem).
Quoted 18 lines
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.
James
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 15 lines
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-