linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andreas Schild <andreas@soulboarder.net>
To: linux-lvm@redhat.com
Subject: [linux-lvm] LVM label lost / system does not boot
Date: Sun, 5 Jun 2011 14:47:30 +0200	[thread overview]
Message-ID: <BANLkTincWCwYQohG4D6uCU9JTZheV9w-wA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]

Hi
The first part might sound like I am in the wrong group, but bear with me...
(I probably am, but I googled up and down RAID and LVM lists and I am still
 stuck):
I have a software RAID 5 with 4 disks and LVM on top. I had one volume group
with two logical volumes (for root and data).
I wanted to upgrade capacity and started by failing a drive, replacing it
with a bigger one and let the RAID resync. Worked fine for the first disk.
The second disk apparently worked (resynced, all looked good), but after a
reboot the system hung.
After some back and forth with superblocks (on the devices, never on the
array) I was able to re-assemble the array clean.
The system still does not reboot though: "Volume group "cmain" not found".

I booted a live cd, assembled the array and did a pvck on the array
(/dev/md0):
"Could not find LVM label on /dev/md0"
pvdisplay /dev/md0 results in:
  No physical volume label read from /dev/md0
  Failed to read physical volume "/dev/md0"

I do not have a backup of my /etc/ and therefore no details regarding the
configuration of the LVM setup (yes, I know...)
All I have of the broken system is the /boot partition with its content

Several questions arise:
- Is it possible to "reconstitute" the LVM with what I have?
- Is the RAID array really ok, or is it possibly corrupt to begin with (and
the reason no LVM labels are around)?
- Should I try to reconstruct with pvcreate/vgcreate? (I shied away from any
*create commands to not make things worse.)
- If all is lost, what did I do wrong and what would I need to backup for a
next time?

Any ideas on how I could get the data back would greatly be appreciated. I
am in way over my head, so if somebody knowledgeable tells me: "you lost,
move on" would be bad, but at least would save me some time...

Thanks,
Andreas

[-- Attachment #2: Type: text/html, Size: 2212 bytes --]

             reply	other threads:[~2011-06-05 12:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-05 12:47 Andreas Schild [this message]
2011-06-06 13:21 ` [linux-lvm] LVM label lost / system does not boot Ger Apeldoorn
2011-06-06 13:27 ` Anthony Nelson
2011-06-07  8:54 ` Andreas Schild

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=BANLkTincWCwYQohG4D6uCU9JTZheV9w-wA@mail.gmail.com \
    --to=andreas@soulboarder.net \
    --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;
as well as URLs for NNTP newsgroup(s).