[Bug 563895] Re: grub2 fails to boot or install when an LVM snapshot exists

Torsten Landschoff torsten at debian.org
Tue Jan 24 10:02:37 UTC 2012


Okay, I just installed the version from lucid-proposed:

torsten at sharokan:~$ dpkg -l|grep grub
ii  grub-common                                     1.98-1ubuntu13                                  GRand Unified Bootloader, version 2 (common files)
ii  grub-pc                                         1.98-1ubuntu13                                  GRand Unified Bootloader, version 2 (PC/BIOS version)

I had to run

# grub-install /dev/sda

to actually update the grub installation (it would be nice if installing
the new package would do that automatically, but this is of course a
risk wrt. possible regressions).

I created a snapshot again and low and behold: I can boot just fine even with existing LVM snapshots.
Thanks! I am all for moving this to lucid-updates.

-- 
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/563895

Title:
  grub2 fails to boot or install when an LVM snapshot exists

Status in “grub2” package in Ubuntu:
  Fix Released
Status in “grub2” source package in Lucid:
  Fix Committed
Status in “grub2” package in Debian:
  Fix Released

Bug description:
  SRU Justification:

  Impact: When /boot and / are in an LVM VG and a snapshot is made of an
  LVM LV in that VG the system will not boot and grub can not be
  modified (updated, reinstalled) until all snapshots are removed.

  Testcase:

  Binary package hint: grub2

  Steps to reproduce:

  - (Lucid beta2 installed from CD)
  - Take a snapshot of any volume
  - on reboot:
    error: fd0 read error.
    error: no such disk.
    grub rescue>
  - Use the rescue cd to get a root shell
  - Remove the snapshot and reboot
  Now, the system boots. Create a new snapshot to repeat.

  The system has 2 SATA disks in mdadm RAID1 configuration with 1 lvm
  volume on top and no 'normal' partitions.

  Also see Comment #6
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/563895/comments/6

  Fix: See debdiff patch
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/563895/+attachment/2589269/+files/grub2_1.98-1ubuntu12.1.debdiff

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/563895/+subscriptions




More information about the foundations-bugs mailing list