* [linux-lvm] How to grow a PV?
@ 2003-06-12 3:40 Thomas Kleffel
2003-06-12 5:23 ` Heinz J . Mauelshagen
2003-06-12 5:31 ` Thomas Kleffel
0 siblings, 2 replies; 7+ messages in thread
From: Thomas Kleffel @ 2003-06-12 3:40 UTC (permalink / raw)
To: linux-lvm
Hi!
I am running LVM1 ontop of software-RAID (md). I just added a disk to
my raid, so my /dev/md0 is about 120G bigger now.
Now my question is: How can I tell LVM to include these additional space
into the PV that's already there (on /dev/md0)?
I know it has to be possible because I did it several times (my raid
has 9 disks now - it hat 4 disks, some time ago) - I just can't rememer :(((
Could someone please give me a hint?
Thanks in advance,
Thomas Kleffel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] How to grow a PV?
2003-06-12 3:40 [linux-lvm] How to grow a PV? Thomas Kleffel
@ 2003-06-12 5:23 ` Heinz J . Mauelshagen
2003-06-12 5:38 ` Thomas Kleffel
2003-06-12 5:31 ` Thomas Kleffel
1 sibling, 1 reply; 7+ messages in thread
From: Heinz J . Mauelshagen @ 2003-06-12 5:23 UTC (permalink / raw)
To: linux-lvm
On Thu, Jun 12, 2003 at 10:38:49AM +0200, Thomas Kleffel wrote:
> Hi!
>
> I am running LVM1 ontop of software-RAID (md). I just added a disk to
> my raid, so my /dev/md0 is about 120G bigger now.
Sounds like you added a new disk to the end of a linear MD ?
You could have pvcreate'd it directly to add it to a Volume Group
(not adding it to the MD at all).
>
> Now my question is: How can I tell LVM to include these additional space
> into the PV that's already there (on /dev/md0)?
LVM2 supports PV resizing.
>
> I know it has to be possible because I did it several times (my raid
> has 9 disks now - it hat 4 disks, some time ago) - I just can't rememer :(((
> Could someone please give me a hint?
>
> Thanks in advance,
>
> Thomas Kleffel
>
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
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
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] How to grow a PV?
2003-06-12 3:40 [linux-lvm] How to grow a PV? Thomas Kleffel
2003-06-12 5:23 ` Heinz J . Mauelshagen
@ 2003-06-12 5:31 ` Thomas Kleffel
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Kleffel @ 2003-06-12 5:31 UTC (permalink / raw)
To: linux-lvm
Hi again,
after a bit of research I found out, that I resized my PV some time ago
using the pvresize command, that was available in lvm_1.1-rc2.
At the moment I am using 1.0.7 (gentoo). My problem is now that
lvm_1.1-rc2 seems to have disappeared. I read that it was buggy, but
worked for me at least 4 times.
Could someone please tell me, where I could get lvm_1.1? This would
save me a lot of work.
Thanks in advance,
Thomas Kleffel
I wrote:
> Hi!
>
> I am running LVM1 ontop of software-RAID (md). I just added a disk to
> my raid, so my /dev/md0 is about 120G bigger now.
>
> Now my question is: How can I tell LVM to include these additional
> space into the PV that's already there (on /dev/md0)?
>
> I know it has to be possible because I did it several times (my raid
> has 9 disks now - it hat 4 disks, some time ago) - I just can't
> rememer :(((
> Could someone please give me a hint?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] How to grow a PV?
2003-06-12 5:23 ` Heinz J . Mauelshagen
@ 2003-06-12 5:38 ` Thomas Kleffel
2003-06-12 7:47 ` Thomas Kleffel
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Kleffel @ 2003-06-12 5:38 UTC (permalink / raw)
To: linux-lvm
Hi!
Heinz J . Mauelshagen wrote:
>Sounds like you added a new disk to the end of a linear MD ?
>
>You could have pvcreate'd it directly to add it to a Volume Group
>(not adding it to the MD at all).
>
>
Not exactly - I added a new disk to a raid-5 MD. I wanted it to be in
the raid-array for beeing protected from a single-disk-failure.
>LVM2 supports PV resizing.
>
Ok, thanks - I'm going to try this now...
Bye,
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] How to grow a PV?
2003-06-12 5:38 ` Thomas Kleffel
@ 2003-06-12 7:47 ` Thomas Kleffel
2003-06-12 8:58 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Kleffel @ 2003-06-12 7:47 UTC (permalink / raw)
To: linux-lvm
Hi again...
...I'm sorry for having to ask again...
Heinz J . Mauelshagen wrote:
> LVM2 supports PV resizing.
I just installed 1.95.15 and pvresize tells me "Command not implemented
yet."
"pvresize --version" gives me the following:
> LVM version: 1.95.15 (2003-01-10)
> Library version: 0.96.08-ioctrl (2003-03-27)
> Driver version: 1.0.10
Did I fetch an old version? Or do I need to get some bleeding-edge-stuff
from the CVS?
Or am I simply too stupid? :)
Thanks for your help,
Thomas Kleffel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] How to grow a PV?
2003-06-12 7:47 ` Thomas Kleffel
@ 2003-06-12 8:58 ` Heinz J . Mauelshagen
2003-06-20 10:06 ` Thomas Kleffel
0 siblings, 1 reply; 7+ messages in thread
From: Heinz J . Mauelshagen @ 2003-06-12 8:58 UTC (permalink / raw)
To: linux-lvm
On Thu, Jun 12, 2003 at 02:45:49PM +0200, Thomas Kleffel wrote:
> Hi again...
>
> ...I'm sorry for having to ask again...
No problem.
>
> Heinz J . Mauelshagen wrote:
>
> > LVM2 supports PV resizing.
>
> I just installed 1.95.15 and pvresize tells me "Command not implemented
> yet."
> "pvresize --version" gives me the following:
>
> > LVM version: 1.95.15 (2003-01-10)
> > Library version: 0.96.08-ioctrl (2003-03-27)
> > Driver version: 1.0.10
>
> Did I fetch an old version? Or do I need to get some bleeding-edge-stuff
> from the CVS?
> Or am I simply too stupid? :)
No, you need to use pvcreate+vgcfgrestore with LVM2.
Make a copy of your LVM metadata before you try it ;)
(dd if=/dev/md0 of=md0.vgda bs)1k count=4k)
>
> Thanks for your help,
>
> Thomas Kleffel
>
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
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
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] How to grow a PV?
2003-06-12 8:58 ` Heinz J . Mauelshagen
@ 2003-06-20 10:06 ` Thomas Kleffel
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Kleffel @ 2003-06-20 10:06 UTC (permalink / raw)
To: linux-lvm
Hi!
> > I just installed 1.95.15 and pvresize tells me "Command not implemented
> > yet."
> > "pvresize --version" gives me the following:
> >
> > > LVM version: 1.95.15 (2003-01-10)
> > > Library version: 0.96.08-ioctrl (2003-03-27)
> > > Driver version: 1.0.10
> >
> > Did I fetch an old version? Or do I need to get some bleeding-edge-stuff
> > from the CVS?
> > Or am I simply too stupid? :)
>
> No, you need to use pvcreate+vgcfgrestore with LVM2.
> Make a copy of your LVM metadata before you try it ;)
> (dd if=/dev/md0 of=md0.vgda bs)1k count=4k)
It worked perfectly :)
Thank you!
Regard,
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-06-20 10:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-12 3:40 [linux-lvm] How to grow a PV? Thomas Kleffel
2003-06-12 5:23 ` Heinz J . Mauelshagen
2003-06-12 5:38 ` Thomas Kleffel
2003-06-12 7:47 ` Thomas Kleffel
2003-06-12 8:58 ` Heinz J . Mauelshagen
2003-06-20 10:06 ` Thomas Kleffel
2003-06-12 5:31 ` Thomas Kleffel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.