Linux LVM users
 help / color / mirror / Atom feed
From: "Alf B Lervåg" <alfborge@pvv.ntnu.no>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Help recovering my volume groups
Date: Tue Feb  5 20:09:02 2002	[thread overview]
Message-ID: <20020206030901.A64005@pvv.ntnu.no> (raw)

Hi, I just had a stroke of panic since my lvm vg didn't come back up
after I shut down my computer and removed a faulty disc.

I searched the web, and found a thread on your mailinglist that matched
my situation pretty well. Following the instructions in that thread, I
managed to get my system back up and running.

Here's a link to the thread I was talking about.

http://lists.sistina.com/pipermail/linux-lvm/2001-January/005948.html

I run linux 2.4.17 on an athlon 1.2G with 1G RAM.

I initially had 3 ide hd's, but one of them was behaving strangly, so I
decided to get a new one on warranty. After taking backups of the data
on that disc, I unmounted it, halted the system and removed it. Then I
turned the system back up. I realize now that I might have saved abit of
work if I ran some commands before I halted the system, but I don't know
what commands those whould have been.

I use one vg called idehd

I had 3 pv's, /dev/hda2, /dev/hdb1 and /dev/hdc
I removed /dev/hdc

When the system came back up, I ran vgscan, which reported that it
didn't find any vg's. While the system was in this state, I ran
dd if=/dev/hda2 of=hda2_pvdump.txt bs=1024 count=4
dd if=/dev/hdb1 of=hdb1_pvdump.txt bs=1024 count=4
pvdisplay -vvd /dev/hdb1 >& hdb1_pvdisplay.txt
pvdisplay -vvd /dev/hda2 >& hda2_pvdisplay.txt
If you are interested in these files, I'll be happy to provide them.

I don't really know if this info is of any use to anyone, but I hope it
might be. Other than this slight hickup I've had no problems with the
lvm system. It makes life alot easier when it comes to hdpartitions and
stuff like that.

To get things up and running again, I ran
vgcfgrestore -n idehd /dev/hda2
vgcfgrestore -n idehd /dev/hdb1
vgchange -ay

-- 
Alf

             reply	other threads:[~2002-02-05 20:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-05 20:09 Alf B Lervåg [this message]
2002-02-06  2:09 ` [linux-lvm] Help recovering my volume groups Heinz J . Mauelshagen
  -- strict thread matches above, loose matches on Subject: below --
2001-01-27 22:27 Gregory McLean
2001-01-29 12:58 ` Patrick Caulfield
2001-01-29 15:45   ` Gregory McLean
2001-01-30 10:43     ` Patrick Caulfield
2001-01-30 23:17       ` Gregory McLean

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=20020206030901.A64005@pvv.ntnu.no \
    --to=alfborge@pvv.ntnu.no \
    --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