[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #37157] fails to boot on systems with LVM snapshots
From: |
Brian J. Murrell |
Subject: |
[bug #37157] fails to boot on systems with LVM snapshots |
Date: |
Tue, 21 Aug 2012 13:15:19 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19 |
URL:
<http://savannah.gnu.org/bugs/?37157>
Summary: fails to boot on systems with LVM snapshots
Project: GNU GRUB
Submitted by: brian_j_murrell
Submitted on: Tue 21 Aug 2012 01:15:18 PM GMT
Category: Booting
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: other
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
Using grub 1.99[-12ubuntu5-1linuxmint1] on Ubuntu/Mint:
On a machine which boots from an LVM origin that has snapshots, the "search"
directive causes boot to fail due to internal LVM device mappings with the
same UUIDs.
First, the grub entry:
menuentry 'Linux Mint 12 Fluxbox, 3.2.0-29-generic-pae
(/dev/mapper/rootvol-ubuntu_root)' --class linuxmint --class gnu-linux --class
gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod lvm
insmod part_msdos
insmod ext2
set root='(rootvol-ubuntu_root)'
search --no-floppy --fs-uuid --set=root
7df7bb45-c3ff-47c1-8df6-744e54e4d7b5
linux /boot/vmlinuz-3.2.0-29-generic-pae
root=/dev/mapper/rootvol-ubuntu_root
ro console=ttyS0,115200 console=tty0 crashkernel=384M-2G:64M,2G-:128M quiet
splash vt.handoff=7
initrd /boot/initrd.img-3.2.0-29-generic-pae
}
and now, blkid output for the matching UUIDs:
$ blkid | grep 7df7bb45-c3ff-47c1-8df6-744e54e4d7b5
/dev/mapper/rootvol-ubuntu_root-real:
UUID="7df7bb45-c3ff-47c1-8df6-744e54e4d7b5" TYPE="ext3"
/dev/mapper/rootvol-ubuntu_root: UUID="7df7bb45-c3ff-47c1-8df6-744e54e4d7b5"
TYPE="ext3"
/dev/mapper/rootvol-ubuntu_root is an origin for an LVM snapshot. The UUID of
the filesystem in the snapshot has aleady been changed:
$ sudo lvs | grep ubuntu_root
natty_root rootvol swi-a- 844.00m ubuntu_root 71.67
oneiric_root rootvol swi-a- 644.00m ubuntu_root 86.10
ubuntu_root rootvol owi-ao 644.00m
$ blkid | grep -e natty_root -e oneiric_root
/dev/mapper/rootvol-natty_root-cow: TYPE="DM_snapshot_cow"
/dev/mapper/rootvol-natty_root: UUID="a5fde26c-1a1b-4916-a578-81315bfda1cf"
SEC_TYPE="ext2" TYPE="ext3"
/dev/mapper/rootvol-oneiric_root-cow: TYPE="DM_snapshot_cow"
/dev/mapper/rootvol-oneiric_root: UUID="88ceaa00-597b-4bbb-9680-ece1e6f841d2"
SEC_TYPE="ext2" TYPE="ext3"
When I try to boot this grub entry, I get an error about the kernel not being
found. If I simply remove the "search ... --set=root ..." entry from the
stanza, the boot proceeds successfully.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37157>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #37157] fails to boot on systems with LVM snapshots,
Brian J. Murrell <=