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

nutznboltz 563895 at bugs.launchpad.net
Tue Nov 8 12:51:25 UTC 2011


Confirmed patch from PPA
https://launchpad.net/~nutznboltz/+archive/lucid-grub2-skip-lvm-snapshots
fixes issue.

VM with patch via PPA installed booted despite snapshot:

nutz at lp-563895:~$ dpkg -l |grep grub
ii  grub-common                     1.98-1ubuntu12.1~ppa1~lucid1      GRand Unified Bootloader, version 2 (common
ii  grub-pc                         1.98-1ubuntu12.1~ppa1~lucid1      GRand Unified Bootloader, version 2 (PC/BIOS

nutz at lp-563895:~$ sudo lvs
  LV    VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  lv0   vg0  owi-ao   3.81g
  lvol0 vg0  swi-a-   1.71g lv0      0.17
  swap  vg0  -wi-ao 488.00m

nutz at lp-563895:~$ df -h /boot
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg0-lv0   3.9G  901M  3.0G  24% /

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
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 Ubuntu-sponsors mailing list