grub2 fails to boot or install when an LVM snapshot exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Debian) |
Fix Released
|
Unknown
|
|||
grub2 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lucid |
Fix Released
|
High
|
Colin Watson |
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:/
Fix: See debdiff patch
https:/
summary: |
- Disk not found when booting mdadm RAID1 with snapshotted lvm volum + Disk not found when booting mdadm RAID1 with snapshotted lvm volume |
Changed in grub2 (Ubuntu): | |
status: | New → Confirmed |
summary: |
- Disk not found when booting mdadm RAID1 with snapshotted lvm volume + grub-install fails when LVM snapshot exists |
Changed in grub2 (Debian): | |
status: | Unknown → Confirmed |
Changed in grub2 (Debian): | |
status: | Confirmed → Fix Released |
description: | updated |
tags: | added: testcase |
description: | updated |
description: | updated |
Changed in grub2 (Ubuntu Lucid): | |
milestone: | none → ubuntu-10.04.4 |
Changed in grub2 (Ubuntu Lucid): | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
assignee: | nobody → Colin Watson (cjwatson) |
I tried to use supergrubdisk to debug this, but I'm having difficulty to get logs. It's just too much for a serial console.
Using supergrubdisk:
- insmod raid
- insmod lvm
- detect OS.
No OS will be detected