From: Jaroslav Stava <jstava@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Recovering LVM partition after OS reinstallation
Date: Fri, 12 Sep 2008 18:48:31 +0200 [thread overview]
Message-ID: <48CA9D5F.8090502@redhat.com> (raw)
In-Reply-To: <3d847d110809120248r796de032u29b08d41278c6299@mail.gmail.com>
hanocri wrote:
> After root filesystem failure my "/" was all messed up so i had to
> install system from scratch (Debian Unstable). /home is on separate
> LVM partition and (i hope so) intact. However pvscan and vgscan gives
> no result. According to fdisk partition is marked as "8e Linux LVM".
> I have LVM metadata backup which you can find here:
> http://pastebin.com/m5a13d266
> At line 23 there is: 'device = "/dev/dm-7" # Hint only ', but there
> is no such device as /dev/dm-7. I think it should be rather /dev/dm-6
> (I'm using dmraid), again according to fdisk - the size and type is
> correct.
> Should I change dm-7 into dm-6 or simply ignore it and do
> vgcfgrestore? And what does ' #Hint only' mean? Or maybe there is
> other way to recover LVM config?
>
> Thanks for any help.
>
>
Check dmraid. Twice.
If *scan can't find a lvm pv, than there is something wrong.
(unless you are filtering out /dev/dm* - check filter= in lvm.conf)
Did you (or the Debian installation) change the partition layout?
Where did you install the system to? I assume not to the old
"lvroot" logical volume.
Partition type (fdisk) means quite nothing.
If the device/partition is a lvm PV, then there should be an lvm
label at the beginning. That's what vgscan is looking for (see -vvv).
If there is no label at the beginning, then:
- we are looking at the wrong place - partition layout changed or
perhaps dmraid changed it's mapping
- we are looking at the correct place, but the label is not there
You could try looking for the label at other places - man pvck.
Either way provide some info:
"lvmdump -m -a" can automate that
or at least post dmsetup table, vgscan -vvv
dmraid information
Regards,
Jaroslav Stava
next prev parent reply other threads:[~2008-09-12 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 9:48 [linux-lvm] Recovering LVM partition after OS reinstallation hanocri
2008-09-12 16:48 ` Jaroslav Stava [this message]
2008-09-12 18:51 ` hanocri
2008-09-12 19:58 ` Jaroslav Stava
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=48CA9D5F.8090502@redhat.com \
--to=jstava@redhat.com \
--cc=linux-lvm@redhat.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