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

nutznboltz 563895 at bugs.launchpad.net
Sat Jan 21 01:00:05 UTC 2012


nutz at lp-563895:~$ sudo lvcreate -s -l 437 /dev/vg0/lv0
  Logical volume "lvol0" created
nutz at lp-563895:~$ sudo vgs
  VG   #PV #LV #SN Attr   VSize VFree
  vg0    1   3   1 wz--n- 6.00g    0 
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.00                        
  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  955M  2.9G  25% /
/dev/mapper/vg0-lv0   3.9G  955M  2.9G  25% /
nutz at lp-563895:~$ sudo reboot

-- 
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” 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 Ubuntu-sponsors mailing list