* [linux-lvm] how to extend an lvm partition?
@ 2006-11-24 2:01 C'est Pierre
2006-11-24 9:31 ` Bryn M. Reeves
0 siblings, 1 reply; 3+ messages in thread
From: C'est Pierre @ 2006-11-24 2:01 UTC (permalink / raw)
To: LVM general discussion and development
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] how to extend an lvm partition?
2006-11-24 2:01 [linux-lvm] how to extend an lvm partition? C'est Pierre
@ 2006-11-24 9:31 ` Bryn M. Reeves
2006-11-24 12:26 ` C'est Pierre
0 siblings, 1 reply; 3+ messages in thread
From: Bryn M. Reeves @ 2006-11-24 9:31 UTC (permalink / raw)
To: LVM general discussion and development
-----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-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] how to extend an lvm partition?
2006-11-24 9:31 ` Bryn M. Reeves
@ 2006-11-24 12:26 ` C'est Pierre
0 siblings, 0 replies; 3+ messages in thread
From: C'est Pierre @ 2006-11-24 12:26 UTC (permalink / raw)
To: LVM general discussion and development
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/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-24 12:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24 2:01 [linux-lvm] how to extend an lvm partition? C'est Pierre
2006-11-24 9:31 ` Bryn M. Reeves
2006-11-24 12:26 ` C'est Pierre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).