Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Alan McKinnon
On Monday 23 March 2009 20:16:15 Mick wrote: > On Sunday 22 March 2009, Alan McKinnon wrote: > > Caveat: I have no idea why this doesn't work, but if you make sda4 an > > extended partition and create sda5 as a logical with exactly the same > > start and end as you describe above, you do in fact lo

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Mick
On Sunday 22 March 2009, Alan McKinnon wrote: > Caveat: I have no idea why this doesn't work, but if you make sda4 an > extended partition and create sda5 as a logical with exactly the same start > and end as you describe above, you do in fact lose all data. Obviously > there is a difference betwe

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Momesso Andrea
On Mon, 23 Mar 2009 09:31:20 + Neil Bothwick wrote: > On Mon, 23 Mar 2009 10:07:59 +0100, Momesso Andrea wrote: > > > > Since you currently have plenty of free space, you don't have to > > > take the system out of service to do a backup. Create a new PV in > > > sda4 and run pvmove, then rem

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Neil Bothwick
On Mon, 23 Mar 2009 10:07:59 +0100, Momesso Andrea wrote: > > Since you currently have plenty of free space, you don't have to take > > the system out of service to do a backup. Create a new PV in sda4 and > > run pvmove, then remove and recreate the PV on sda3 and pvmove the > > data back. Then y

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Momesso Andrea
On Mon, 23 Mar 2009 08:57:19 + Neil Bothwick wrote: > On Mon, 23 Mar 2009 08:57:08 +0100, Momesso Andrea wrote: > > > It looks more like a workaround than a solution. If my non native > > English understood it well, it suggests to backup everything, > > recreate the pv for the whole size, an

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Neil Bothwick
On Mon, 23 Mar 2009 08:57:08 +0100, Momesso Andrea wrote: > It looks more like a workaround than a solution. If my non native > English understood it well, it suggests to backup everything, recreate > the pv for the whole size, and then restore from backup. Since you currently have plenty of free

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Momesso Andrea
On Mon, 23 Mar 2009 09:22:20 +0200 Alan McKinnon wrote: > On Sunday 22 March 2009 23:00:07 Momesso Andrea wrote: > > On Sun, 22 Mar 2009 22:35:35 +0200 > > > > Alan McKinnon wrote: > > > On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote: > > > > Your data is safe if you do exactly the steps

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Alan McKinnon
On Sunday 22 March 2009 23:00:07 Momesso Andrea wrote: > On Sun, 22 Mar 2009 22:35:35 +0200 > > Alan McKinnon wrote: > > On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote: > > Your data is safe if you do exactly the steps you said above. > > pvresize /dev/sda3 > /dev/sda3: too many metadata

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-23 Thread Alan McKinnon
On Sunday 22 March 2009 22:42:39 Momesso Andrea wrote: > Thanks for the advice. Will be a problem for lvm if I add a partition > before it? I mean, will I need to change any config files while lvm is > gonna reside on sda4 instead of sda3? It's not a problem. LVM scans the drive looking for pvs an

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Albert Hopkins
On Sun, 2009-03-22 at 21:58 +0100, Momesso Andrea wrote: > On Sun, 22 Mar 2009 20:49:36 + > Neil Bothwick wrote: > > > On Sun, 22 Mar 2009 21:39:29 +0100, Dirk Heinrichs wrote: > > > > > > P.S. I'm not using vgextend to simply add sda4 to the lvm because > > > > I might want to migrate my ro

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Momesso Andrea
On Sun, 22 Mar 2009 22:35:35 +0200 Alan McKinnon wrote: > On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote: > > My current setup is: > > > >Device Boot Start End Blocks Id System > > /dev/sda1 * 1289423246023+ 83 Linux > > /dev/sda2

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Momesso Andrea
On Sun, 22 Mar 2009 20:49:36 + Neil Bothwick wrote: > On Sun, 22 Mar 2009 21:39:29 +0100, Dirk Heinrichs wrote: > > > > P.S. I'm not using vgextend to simply add sda4 to the lvm because > > > I might want to migrate my root (sda1) to ext4 > > > > Why do want to do that? ext4 is just a cou

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Neil Bothwick
On Sun, 22 Mar 2009 21:39:29 +0100, Dirk Heinrichs wrote: > > P.S. I'm not using vgextend to simply add sda4 to the lvm because I > > might want to migrate my root (sda1) to ext4 > > Why do want to do that? ext4 is just a couple of months old and there's > no proof of stability whatsoever for i

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Momesso Andrea
On Sun, 22 Mar 2009 21:39:29 +0100 Dirk Heinrichs wrote: > Am Sonntag, 22. März 2009 21:15:14 schrieb Momesso Andrea: > > P.S. I'm not using vgextend to simply add sda4 to the lvm because I > > might want to migrate my root (sda1) to ext4 > > Why do want to do that? ext4 is just a couple of mont

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Momesso Andrea
On Sun, 22 Mar 2009 22:35:35 +0200 Alan McKinnon wrote: > On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote: > > My current setup is: > > > >Device Boot Start End Blocks Id System > > /dev/sda1 * 1289423246023+ 83 Linux > > /dev/sda2

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Dirk Heinrichs
Am Sonntag, 22. März 2009 21:15:14 schrieb Momesso Andrea: > P.S. I'm not using vgextend to simply add sda4 to the lvm because I > might want to migrate my root (sda1) to ext4 Why do want to do that? ext4 is just a couple of months old and there's no proof of stability whatsoever for it. Better t

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Alan McKinnon
On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote: > My current setup is: > >Device Boot Start End Blocks Id System > /dev/sda1 * 1289423246023+ 83 Linux > /dev/sda228953381 3911827+ 82 Linux >swap /Solaris > /dev/

Re: [gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Jil Larner
Hi, Momesso Andrea a écrit : My current setup is: Device Boot Start End Blocks Id System /dev/sda1 * 1289423246023+ 83 Linux /dev/sda228953381 3911827+ 82 Linux swap /Solaris /dev/sda33382 24804

[gentoo-user] Resizing physical volume for lvm.

2009-03-22 Thread Momesso Andrea
My current setup is: Device Boot Start End Blocks Id System /dev/sda1 * 1289423246023+ 83 Linux /dev/sda228953381 3911827+ 82 Linux swap /Solaris /dev/sda33382 24804 172080247+ 83 Linux /dev/sda4