[Bug 452350] Re: Unknown LVM metadata header
Dominic Dunlop
452350 at bugs.launchpad.net
Wed Jul 25 13:48:33 UTC 2012
I've been bitten too. I have a software RAID 10, /dev/md0, which is made
up of /dev/sd[a-d]2. /dev/md0 is the only "physical" volume in a volume
group. Looking at the first two sectors of /dev/sd[a-d]2, there are
indeed volume group manager labels, but this is as I would expect:
they're holding data for the first two sectors of /dev/md0 — the md
driver's overhead loses a little space at the end of the volume, but
none at the beginning. If I point pvck at /dev/sd[a-d]2, it correctly
ignores them, as they're part of an md device. I'm not about to zap
these labels, as I think they're valid. Could the problem be that
update-grub (and, incidentally, the boot process, where one can see the
same error message flitting by) is not as smart as mdadm, and is not
ignoring partitions that are claimed by an md device?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/452350
Title:
Unknown LVM metadata header
Status in “grub2” package in Ubuntu:
Confirmed
Status in “grub2” package in Debian:
Confirmed
Bug description:
Binary package hint: grub2
update-grub2 appears to run successfully, but generates a lot of
"error: Unknown LVM metadata header" messages in the process. LVM was
created during install on a clean system (using ubuntu-9.10-beta-
alternate-i386.iso).
$ sudo update-grub2
error: Unknown LVM metadata header
error: Unknown LVM metadata header
Generating grub.cfg ...
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
error: Unknown LVM metadata header
Found linux image: /boot/vmlinuz-2.6.31-11-generic
Found initrd image: /boot/initrd.img-2.6.31-11-generic
error: Unknown LVM metadata header
error: Unknown LVM metadata header
Here's some extra info that may help:
$ mount
/dev/mapper/root-root on / type ext4 (rw,noatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /boot type ext2 (rw,noexec,nosuid,nodev,noatime)
$ ls -la /boot
total 26783
drwxr-xr-x 4 root root 1024 2009-10-15 11:27 .
drwxr-xr-x 22 root root 4096 2008-11-18 16:28 ..
-rw-r--r-- 1 root root 628340 2009-09-25 05:18 abi-2.6.31-11-generic
-rw-r--r-- 1 root root 629174 2009-10-15 01:09 abi-2.6.31-14-generic
-rw-r--r-- 1 root root 111218 2009-09-25 05:18 config-2.6.31-11-generic
-rw-r--r-- 1 root root 111371 2009-10-15 01:09 config-2.6.31-14-generic
drwxr-xr-x 2 root root 3072 2009-10-15 11:58 grub
-rw-r--r-- 1 root root 7297493 2008-11-17 15:49 initrd.img-2.6.31-11-generic
-rw-r--r-- 1 root root 7283454 2009-10-15 11:27 initrd.img-2.6.31-14-generic
drwxr-xr-x 2 root root 12288 2008-11-17 15:24 lost+found
-rw-r--r-- 1 root root 128796 2009-09-28 05:17 memtest86+.bin
-rw-r--r-- 1 root root 1657331 2009-09-25 05:18 System.map-2.6.31-11-generic
-rw-r--r-- 1 root root 1664737 2009-10-15 01:09 System.map-2.6.31-14-generic
-rw-r--r-- 1 root root 1196 2009-09-25 05:21 vmcoreinfo-2.6.31-11-generic
-rw-r--r-- 1 root root 1196 2009-10-15 01:12 vmcoreinfo-2.6.31-14-generic
-rw-r--r-- 1 root root 3873888 2009-09-25 05:18 vmlinuz-2.6.31-11-generic
-rw-r--r-- 1 root root 3890400 2009-10-15 01:09 vmlinuz-2.6.31-14-generic
$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 974 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 30 31- 248976 83 Linux
/dev/sda2 31 973 943 7574647+ 8e Linux LVM
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
ProblemType: Bug
Architecture: i386
Date: Thu Oct 15 11:59:41 2009
DistroRelease: Ubuntu 9.10
Package: grub-pc 1.97~beta4-1ubuntu1
ProcEnviron:
LANG=C
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
SourcePackage: grub2
Uname: Linux 2.6.31-14-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/452350/+subscriptions
More information about the foundations-bugs
mailing list