All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] main drive fail
@ 2001-05-17 12:48 Thomas Inglis
  2001-05-17 12:54 ` Patrick Boutilier
  2001-05-17 12:56 ` Dominique LARCHEY-WENDLING
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Inglis @ 2001-05-17 12:48 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

I am running lvm-0.9.1.beta1 on redhat 7.0 with a 2.4.4 kernel.

I have four drives, one main 'boot' drive and three drives which were used
with LVM. All was fine and dandy until the main boot drive failed. Ouch.

I have reinstalled Redhat, and lvm-0.9.1.beta1 (thought id go with what it
had before) and built the kernel again, then rebooted.

Now the problem.
lvscan, vgdiaplay & vgscan tells me there are no voulume groups defined.

vgcreate lvmGroup /dev/hdb1 /dev/hdc1 /dev/hdd1
informs me the drive(s) are already part of the lvmGroup

pvcreate lvmGroup /dev/hdb1 /dev/hdc1 /dev/hdd1
with the -ff switch want to initialise the drive, so I thought it prudent to
tell it no.

How can I renistate my volumes? It appears they are still valid on the
drive, but I cant seem to create or reinstate the group.

Thomas




__________________________________________________
n-ary .. .. .. functionality through creativity
http://www.n-ary.com/ +44 (1387) 242800

tagServlet ... a java alternative to ColdFusion!
http://www.tagServlet.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] main drive fail
  2001-05-17 12:48 [linux-lvm] main drive fail Thomas Inglis
@ 2001-05-17 12:54 ` Patrick Boutilier
  2001-05-17 12:56 ` Dominique LARCHEY-WENDLING
  1 sibling, 0 replies; 7+ messages in thread
From: Patrick Boutilier @ 2001-05-17 12:54 UTC (permalink / raw)
  To: linux-lvm

Thomas,

Did you restore the lvm related entries in /etc ?


Thomas Inglis wrote:

> I am running lvm-0.9.1.beta1 on redhat 7.0 with a 2.4.4 kernel.
>
> I have four drives, one main 'boot' drive and three drives which were used
> with LVM. All was fine and dandy until the main boot drive failed. Ouch.
>
> I have reinstalled Redhat, and lvm-0.9.1.beta1 (thought id go with what it
> had before) and built the kernel again, then rebooted.
>
> Now the problem.
> lvscan, vgdiaplay & vgscan tells me there are no voulume groups defined.
>
> vgcreate lvmGroup /dev/hdb1 /dev/hdc1 /dev/hdd1
> informs me the drive(s) are already part of the lvmGroup
>
> pvcreate lvmGroup /dev/hdb1 /dev/hdc1 /dev/hdd1
> with the -ff switch want to initialise the drive, so I thought it prudent to
> tell it no.
>
> How can I renistate my volumes? It appears they are still valid on the
> drive, but I cant seem to create or reinstate the group.
>
> Thomas
>
> __________________________________________________
> n-ary .. .. .. functionality through creativity
> http://www.n-ary.com/ +44 (1387) 242800
>
> tagServlet ... a java alternative to ColdFusion!
> http://www.tagServlet.com/
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] main drive fail
  2001-05-17 12:48 [linux-lvm] main drive fail Thomas Inglis
  2001-05-17 12:54 ` Patrick Boutilier
@ 2001-05-17 12:56 ` Dominique LARCHEY-WENDLING
  1 sibling, 0 replies; 7+ messages in thread
From: Dominique LARCHEY-WENDLING @ 2001-05-17 12:56 UTC (permalink / raw)
  To: linux-lvm

Thomas Inglis wrote:

> vgcreate lvmGroup /dev/hdb1 /dev/hdc1 /dev/hdd1
> informs me the drive(s) are already part of the lvmGroup

vgcfgrestore /dev/hdb1
vgcfgrestore /dev/hdc1
vgcfgrestore /dev/hdd1

DL

-- 
Dominique Larchey
LORIA, Nancy, France
Tel. (Work) +33 (0) 3 83 59 20 13

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [linux-lvm] main drive fail
@ 2001-05-17 13:10 Thomas Inglis
  2001-05-17 13:35 ` Dominique LARCHEY-WENDLING
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Inglis @ 2001-05-17 13:10 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Thomas, Did you restore the lvm related entries in /etc ?
Well, using
   vgcfgrestore -nlvmGroup /dev/hdb1         (thx Dominque)
says that /etc/lvmconf/lvmGroup.conf doesnt exists, backup not available.
So no, how do I do this?
Thomas
__________________________________________________
n-ary .. .. .. functionality through creativity
http://www.n-ary.com/ +44 (1387) 242800

tagServlet ... a java alternative to ColdFusion!
http://www.tagServlet.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] main drive fail
  2001-05-17 13:10 Thomas Inglis
@ 2001-05-17 13:35 ` Dominique LARCHEY-WENDLING
  2001-05-17 15:44   ` Heinz J. Mauelshagen
  0 siblings, 1 reply; 7+ messages in thread
From: Dominique LARCHEY-WENDLING @ 2001-05-17 13:35 UTC (permalink / raw)
  To: linux-lvm

Thomas Inglis wrote:
> 
> Thomas, Did you restore the lvm related entries in /etc ?
> Well, using
>    vgcfgrestore -nlvmGroup /dev/hdb1         (thx Dominque)
> says that /etc/lvmconf/lvmGroup.conf doesnt exists, backup not available.

You are not supposed to loose these files .... aie ;-(
As I understand, there is a copy of this info. on every phys. volume.
But it seems no utility exist for restoring this info. into
/etc/lvmconf/...

What does pvscan give you ?

And I did not understand if you also want to recover the
data in the volume group lvmGroup ? (it would be simpler if not ...)

DL

-- 
Dominique Larchey
LORIA, Nancy, France
Tel. (Work) +33 (0) 3 83 59 20 13

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [linux-lvm] main drive fail
@ 2001-05-17 14:05 Thomas Inglis
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Inglis @ 2001-05-17 14:05 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Dominique,

Maybe I didn't explain it well enough. Main drive is gone, poof, no longer
exists. Its the other three drives I want to restore now that ive done the
kernel/LVM stuff on the new drive. No existing LVM files remain on the main
drive. The only thing the main drive did was boot and start LVM. Obviously
that's now not the case. Upshot is I do not have /etc/lvmconf anymore.

Im not particularly bothered about restoring all as it was, but I DO need to
get the data contained on the drive, however painful or time consuming so I
hope there's a way.
What's this about each physical volume containing this data? Can I restore
/etc/lvmconf/ from that in any way?

Anyway :-)

pvscan gives

  pvscan -- reading all physical volumes (this may take a while)
  pvscan -- inactive PV "/dev/hdb1" is associated to an unkown VG (run
vgscan)
  pvscan -- inactive PV "/dev/hdc1" is associated to an unkown VG (run
vgscan)
  pvscan -- inactive PV "/dev/hdd1" is associated to an unkown VG (run
vgscan)
  pvscan -- total: 3 [21.75 GB] / in use: 3 [21.75 GB] / in np VG: 0 [0]

pvdisplay /dev/hdb1 gives

  -- Physical Volume -- 
  PV Name		/dev/hdc1
  VG Name		lvmGroup
  PV Size		7.87 GB / NOT usable 3.48 MB [LVM: 128 KB]
  PV#			3
  PV Status		Not available
  Allocatable		yes (but full)
  Cur LV		1
  PE Size (KByte)	4096
  Total PE		2015
  Free PE		0
  Allocated PE		2015
  PV UUID		yspotL-fxXr-dfOH-BNN8-uYkB-6VGq-hku

Also, this may seem a silly Question, how do I reply to the thread I
created, lol, it seems silly to post it as an apparent new one?

Im no daft, just a programmer, ROFL.

Thomas
__________________________________________________
n-ary .. .. .. functionality through creativity
http://www.n-ary.com/ +44 (1387) 242800

tagServlet ... a java alternative to ColdFusion!
http://www.tagServlet.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-lvm] main drive fail
  2001-05-17 13:35 ` Dominique LARCHEY-WENDLING
@ 2001-05-17 15:44   ` Heinz J. Mauelshagen
  0 siblings, 0 replies; 7+ messages in thread
From: Heinz J. Mauelshagen @ 2001-05-17 15:44 UTC (permalink / raw)
  To: linux-lvm

On Thu, May 17, 2001 at 03:35:50PM +0200, Dominique LARCHEY-WENDLING wrote:
> Thomas Inglis wrote:
> > 
> > Thomas, Did you restore the lvm related entries in /etc ?
> > Well, using
> >    vgcfgrestore -nlvmGroup /dev/hdb1         (thx Dominque)
> > says that /etc/lvmconf/lvmGroup.conf doesnt exists, backup not available.
> 
> You are not supposed to loose these files .... aie ;-(

Correct :-(

Do you have a backup on tape or somewhere?


> As I understand, there is a copy of this info. on every phys. volume.

A lot of parts are redundantly stored on every physical volume.
*But* you need the PV structure *and* the PE mapping table (that's the one
which translates between LV and PV addresses) which is in
/etc/lvmconf/VGName.conf or deaper in the history (default depth 10) kept there.

> But it seems no utility exist for restoring this info. into
> /etc/lvmconf/...

It wouldn't help because the above unique information isn't on any of
the other physical volumes.

> 
> What does pvscan give you ?

Likely all but the crahed one PV.

In case you have a recent backup of /etc/lvmconf/*, you can make use of
that to vgcfgrestore your PV and run vgscan.

> 
> And I did not understand if you also want to recover the
> data in the volume group lvmGroup ? (it would be simpler if not ...)
> 
> DL
> 
> -- 
> Dominique Larchey
> LORIA, Nancy, France
> Tel. (Work) +33 (0) 3 83 59 20 13
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

-- 

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

end of thread, other threads:[~2001-05-17 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-17 12:48 [linux-lvm] main drive fail Thomas Inglis
2001-05-17 12:54 ` Patrick Boutilier
2001-05-17 12:56 ` Dominique LARCHEY-WENDLING
  -- strict thread matches above, loose matches on Subject: below --
2001-05-17 13:10 Thomas Inglis
2001-05-17 13:35 ` Dominique LARCHEY-WENDLING
2001-05-17 15:44   ` Heinz J. Mauelshagen
2001-05-17 14:05 Thomas Inglis

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.