bugGNU GRUB - Bugs: bug #37157, fails to boot on systems with LVM...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #37157: fails to boot on systems with LVM snapshots

Submitted by:  Brian J. Murrell <brian_j_murrell>
Submitted on:  Tue 21 Aug 2012 01:15:18 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Wed 09 Jan 2013 10:07:02 PM UTC, comment #1:

1.99 is old and this problem was corrected in newer versions.

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 21 Aug 2012 01:15:18 PM UTC, original submission:

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.

Brian J. Murrell <brian_j_murrell>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by brian_j_murrell (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 09 Jan 2013 10:07:02 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup