linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Holger Parplies <wopp@planungsteam-eb.de>
To: Brent Clark <brentgclarklist@gmail.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Debian 64bit get a "Volume vg0 not found" message
Date: Tue, 20 Sep 2011 22:23:34 +0200	[thread overview]
Message-ID: <20110920202334.GA3174@planungsteam-eb.de> (raw)
In-Reply-To: <4E789BBB.2040903@gmail.com>

Hi,

if we keep this on-list, there's a greater chance of someone with more
knowledge of LVM being able to help you (though it really doesn't strike
me as an LVM problem - more of an initrd problem involving LVM, though that
might be splitting hairs).

Brent Clark wrote on 20.09.2011 at 15:57:15 [Re: [linux-lvm] Debian 64bit get a "Volume vg0 not found" message]:
> [...]
> To answer your questions, I felt it would be best to take a few 
> screenshots. I really hope you dont mind, and you are still able and 
> willing to help.

* The first screenshot shows the tail of a boot attempt, in particular:

    Volume group "vg0" not found
    Skipping volume group vg0
  Unable to find LVM volume vg0/root
    Volume group "vg0" not found
    Skipping volume group vg0
  Unable to find LVM volume vg0/swap
  Gave up waiting for root device.  Common problems:
[...]
  ALERT!  /dev/mapper/vg0-root does not exist.  Dropping to a shell!

  (which then, in fact, happens).

* The second screenshot shows a 'vgdisplay' of vg0 from *a different system*
  (apparently a live rescue CD or something similar). This is basically
  meaningless. We know the VG exists. The question is why *the initrd used
  to boot* doesn't find it. You could try investigating from the initrd
  shell you end up in.

* The third screenshot shows the grub stanza used for booting, apparently
  at boot time and displayed by grub.

All of this seems to be happening inside a virtual machine, if I interpret
the window decoration in your screen shots correctly. I don't expect that to
matter, but I'll mention it for the sake of completeness.

Concerning the third screenshot, I don't think this matter has anything to do
with grub. grub's job is to load the kernel and the initrd - apparently it can
do so from RAID and LVM devices nowadays. In your case, /boot seems to reside
on /dev/md0 (which works for me even without RAID support in grub - it simply
reads one of the member devices of my RAID1 array; for other RAID levels,
this obviously wouldn't work without special support ;-).

Now it's up to the initrd to set up access to the root device, which could
potentially be accessed over NFS, be part of a RAID, or - in your case - LVM
VG, or need some special drivers (e.g. SCSI) that are not compiled into the
kernel. For some reason, this does not work for you. Actually, I've seen
exactly that same problem myself on a Debian etch system with root on LVM,
where I tried to install the squeeze kernel (both the etch and lenny kernels
find the root LV and mount it). I tried manually updating the initrd. For some
reason, this didn't work (or rather, it didn't solve the problem). It wasn't
that urgent for me, so I haven't looked into it any further until now, but I'm
still interested in a solution, so if somebody has one (or a pointer in the
right direction), I'd be grateful, too. Otherwise, I'll investigate once I find
some time. I'd also be grateful for corrections of any misconceptions I
might have.

One additional data point: a clean squeeze installation with root on LVM
works as expected, so [in my case] it's probably the combination of etch
userland and squeeze kernel that causes problems, not the squeeze kernel per
se.

So, the question remains: which Debian distribution and which kernel are you
using? Also, of what PVs does your VG consist? Assuming you are probably using
RAID devices there, too, the initrd could potentially activate RAID and LVM
in the wrong order or fail to activate RAID at all (it apparently *did* try to
activate LVM).

Hope some of that helps.

Regards,
Holger

  parent reply	other threads:[~2011-09-20 20:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20  8:11 [linux-lvm] Debian 64bit get a "Volume vg0 not found" message Brent Clark
2011-09-20 13:30 ` Holger Parplies
     [not found]   ` <4E789BBB.2040903@gmail.com>
2011-09-20 20:23     ` Holger Parplies [this message]
2011-09-22  8:59       ` Brent Clark
2011-09-22 14:50         ` Stuart D. Gathman

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=20110920202334.GA3174@planungsteam-eb.de \
    --to=wopp@planungsteam-eb.de \
    --cc=brentgclarklist@gmail.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;
as well as URLs for NNTP newsgroup(s).