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 authentication level.

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

Submitter:  Brian J. Murrell <brian_j_murrell>
Submitted:  Tue 21 Aug 2012 01:15:18 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-09 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code