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

nutznboltz 563895 at bugs.launchpad.net
Thu Nov 10 20:00:14 UTC 2011


I applied the patched grub-pc and grub-common packages from my PPA
https://launchpad.net/~nutznboltz/+archive/lucid-grub2-skip-lvm-snapshots
to an HP DL-165 G5 today.  Prior to applying the patches the system was unbootable.

One thing that I did have to do was:

1. aptitude purge grub-pc grub-common
2. cd /boot/grub
3. rm -r *
4. cd -

Then install the patched packages.  For some reason the APT "purge"
command leaves many files under /boot/grub

-- 
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” 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