All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bradley M Alexander <storm@tux.org>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Repairing LVM installations
Date: Wed Oct 30 11:32:01 2002	[thread overview]
Message-ID: <20021030173134.GA29676@sonsofthunder.yi.org> (raw)

On Mon, Oct 28, 2002 at 08:02:24AM -0500, Bradley Alexander wrote:

> > > There might be a slight chance to get it back, if you have an LVM
> > > metadata backup at hand (/etc/lvmconf/vg00.conf) and use vgcfgrestore
> > > to restore it to the physical volume.
> > 
> > I tried this and when I tried listing the file, I got the same
> > consistency error message:
> > 
> > [defiant /etc/lvmconf]# vgcfgrestore -f /etc/lvmconf/vg00.conf.2.old -l
> > -n vg00
> > vgcfgrestore -- ERROR "vg_cfgrestore(): pv_check_consistency" restoring
> > volume group "vg00"
> 
> "pvcreate -ff ..." on the PV first.

Okay, I tried this, it was successful

> Well, if the vgcfgrestore brings your VG back it is still questionable what
> data is toasted. If any the move won't help either and you want to
> go for your backup media :(

The issue I am running into is that when I try to rebuild the lvm from
scratch, I have been getting some strange errors. The base directories of
the system are in / (including /, /usr, /lib, etc). LVM 1.0.5 is compiled
into the kernel, not as modules.

I did the pvcreate -ff on each PV, then did a vgcreate vg00, and activated.
Messages kept popping up about "Can't find module /dev/lvm" and "Can't find
module /dev/vg00" and "invalidate: busy buffer". I finally got it to create 
the vg, created my partitions, then started restoring from backup. After over 
an hour of restoring, I had everything back to pretty much where I wanted it.
Did a CTRL-D to go back to multiuser mode, and it wound up rebooting. When it
came back up, the vgchange -a y vg00 told me that vg00 did not exist. How
can I rebuild my volume group and get the data to stay on the machine? 

Sorry for the vagueness of the post, but I am not sitting in front of the
machine, and since the home directories do not exist, I can't ssh in to get
the exact messages. But the pvs, lvs and partitions were in place, why is
this not persistent through a reboot?

Thanks,
--Brad

             reply	other threads:[~2002-10-30 11:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-30 11:32 Bradley M Alexander [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-25 23:56 [linux-lvm] Repairing LVM installations Bradley M Alexander
2002-10-28  3:11 ` Heinz J . Mauelshagen
2002-10-28  7:03   ` Bradley Alexander
2002-10-28  9:52     ` Heinz J . Mauelshagen

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=20021030173134.GA29676@sonsofthunder.yi.org \
    --to=storm@tux.org \
    --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 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.