OK Bryn, I completly forgot to check for a pvextend/resize... my bad! I do have those tools. Thanks! Pierre On 11/24/06, Bryn M. Reeves <breeves@redhat.com> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 C'est Pierre wrote: > Hello, > > I just got curious, if I migrate the data from a lun to another one > which is bigger, with poor man's ghost such as 'dd if=sda of=sdb', how > am I going to be able to extend the lvm partition afterwards? is this > possible? I know I could add a new partition in the remaining space, > pvcreate/vgextend it into the existing VG, but are there other > alternatives? > > Thanks > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ Hi, If your version of the LVM2 tools is recent enough you can use the pvresize command to achieve this. It normally takes one argument - the physical volume path to resize: [root ~]# pvresize /dev/loop0 Physical volume "/dev/loop0" changed 1 physical volume(s) resized / 0 physical volume(s) not resized This was added in CVS around a year ago - I think it should have made it into releases from 2.02.00. Without pvresize support, the easiest way to use the extra space is, as you said, to partition it as an additional PV. Regards, Bryn. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFFZrvn6YSQoMYUY94RAjjPAKDCUlGMBkCG3ShhIy48cUwPYuSDLQCfeOVI ck5kC0LzecYyAZDBHd1Kgaw= =K3/+ -----END PGP SIGNATURE----- _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/