linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Klaus Pedersen" <ultra@mailme.dk>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Re: After power outtage my vg is gone
Date: Wed Oct 31 01:15:02 2001	[thread overview]
Message-ID: <005801c161dc$1bbd6160$0a5c010a@ultra> (raw)
In-Reply-To: 20011030235208.F800@lynx.no

I think that gave a little breakthrough :-)
First of all - as murphys law suggests, I don't have a backup to use with
vgcfgrestore - but with the tool I did manage to recreate both /etc/lvmtab
and /etc/lvmtab.d :

Vault:/home/ultra# vgcfgrestore -n site_vg /dev/hda8
vgcfgrestore -- VGDA for "site_vg" successfully restored to physical volume
"/dev/hda8"

Vault:/home/ultra# vgcfgrestore -n site_vg /dev/hdb1
vgcfgrestore -- VGDA for "site_vg" successfully restored to physical volume
"/dev/hdb1"

the only problem is that they are both really empty, so with vgscan I find
nothing :

Vault:/etc# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- no volume groups found

But to my big relief, the data is still present on the physical drives :

Vault:/etc# pvdisplay /dev/hda8
--- Physical volume ---
PV Name               /dev/hda8
VG Name               site_vg
PV Size               14.1 GB / NOT usable 1.21 MB [LVM: 135 KB]
PV#                   2
PV Status             available
Allocatable           yes
Cur LV                1
PE Size (KByte)       4096
Total PE              3610
Free PE               108
Allocated PE          3502
PV UUID               W9tkR7-eq02-6WBM-CBrU-Cdeb-I32v-RyFuLn


Vault:/etc# pvdisplay /dev/hdb1
--- Physical volume ---
PV Name               /dev/hdb1
VG Name               site_vg
PV Size               57.25 GB / NOT usable 3.96 MB [LVM: 178 KB]
PV#                   1
PV Status             NOT available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              14654
Free PE               0
Allocated PE          14654
PV UUID               u5vBzC-Hwu5-mjAt-5yN0-lS4E-crto-1jI9NZ


Thanks for the help so far Andreas, but where do I go from here ?

Thanks in advance

Klaus Pedersen

----- Original Message -----
From: "Andreas Dilger" <adilger@turbolabs.com>
To: <linux-lvm@sistina.com>
Sent: Wednesday, October 31, 2001 7:52 AM
Subject: Re: [linux-lvm] Re: After power outtage my vg is gone


> On Oct 31, 2001  07:37 +0100, Klaus Pedersen wrote:
> > I really need help on this - sorry to send another request for help.
> > Does anybody have a clue ? anything that can help me remount my vg
without
> > dataloss if possible ?
> > Can anybody point me to documentation in saving a vg ? or a newsgroup on
> > usenet I can try ?
>
> Try "vgcfgrestore".
>
> Cheers, Andreas
> --
> Andreas Dilger
> http://sourceforge.net/projects/ext2resize/
> http://www-mddsp.enel.ucalgary.ca/People/adilger/
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

  reply	other threads:[~2001-10-31  1:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-31  0:35 [linux-lvm] Re: After power outtage my vg is gone Klaus Pedersen
2001-10-31  0:51 ` Andreas Dilger
2001-10-31  1:15   ` Klaus Pedersen [this message]
2001-11-01 12:41     ` Klaus Pedersen
     [not found]       ` <20011101195430.B23396@bunuel.tii.matav.hu>
2001-11-01 15:18         ` Andreas Dilger
2001-11-11 13:47       ` Klaus Pedersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005801c161dc$1bbd6160$0a5c010a@ultra' \
    --to=ultra@mailme.dk \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).