From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Help recovering my volume groups
Date: Wed Feb 6 02:09:02 2002 [thread overview]
Message-ID: <20020206090803.A5727@sistina.com> (raw)
In-Reply-To: <20020206030901.A64005@pvv.ntnu.no>; from alfborge@pvv.ntnu.no on Wed, Feb 06, 2002 at 03:09:02AM +0100
Alf,
if I get you right, you didn't have hdc in your VG which should have brought
your LVM system up after hdc replacement right away unless you don't run
vgscan in your system startup script.
If you run vgcfgrestore as you did mention below, you might end up with
different LVM metadata on the disks and in /etc/lvmtab* (which are cache files).
The recommended procedure with vgcfgrestore therefore is:
vgcfgrestore...
vgscan
vgchange -ay
Regards,
Heinz -- The LVM Guy --
On Wed, Feb 06, 2002 at 03:09:02AM +0100, Alf B Lervåg wrote:
> 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
>
> _______________________________________________
> 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
*** 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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2002-02-06 2:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-05 20:09 [linux-lvm] Help recovering my volume groups Alf B Lervåg
2002-02-06 2:09 ` Heinz J . Mauelshagen [this message]
-- 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=20020206090803.A5727@sistina.com \
--to=mauelshagen@sistina.com \
--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