grub-probe: error: unknown filesystem for lvm snapshot
I am running Ubuntu 14.04 AMD64 on a headless KVM VPS, and I am experiencing issues with grub2 and lvm snapshots.
+++++++
$ /sbin/lvcreate -L 10G --snapshot --name lvroot-snap /dev/vgserver/
Logical volume "lvroot-snap" created
$ update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
grub-probe: error: unknown filesystem.
/usr/sbin/
Found Ubuntu 14.04.1 LTS (14.04) on /dev/mapper/
done
+++++++
This example above finished rather harmless. Yesterdays "$ aptitude safe-upgrade" forced me to kill the process from a second shell. Removing the snapshot did not work with dmsetup and lvremove. Luckily I could reboot the sever, followed by the removal of the snapshot and reinitialisation of the upgrade.
+++++++
$ uname -a
Linux server 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l grub-common
ii grub-common 2.02~beta2-9ubuntu1 amd64 GRand Unified Bootloader (common files)
$ vgdisplay
--- Volume group ---
VG Name vgserver
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 455
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 498.00 GiB
PE Size 4.00 MiB
Total PE 127487
Alloc PE / Size 125183 / 489.00 GiB
Free PE / Size 2304 / 9.00 GiB
VG UUID E5YSwZ-
$ lvdisplay
--- Logical volume ---
LV Path /dev/vgserver/
LV Name lvroot
VG Name vgserver
LV UUID 5rauq2-
LV Write Access read/write
LV Creation host, time sysresccd, 2014-12-20 16:20:28 +0100
LV snapshot status source of
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/vgserver/
LV Name lvhome
VG Name vgserver
LV UUID rnuA4w-
LV Write Access read/write
LV Creation host, time sysresccd, 2014-12-20 16:20:48 +0100
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Path /dev/vgserver/lvvar
LV Name lvvar
VG Name vgserver
LV UUID jS15g7-
LV Write Access read/write
LV Creation host, time sysresccd, 2014-12-20 16:25:10 +0100
LV Status available
# open 1
LV Size 438.00 GiB
Current LE 112127
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
--- Logical volume ---
LV Path /dev/vgserver/
LV Name lvswap
VG Name vgserver
LV UUID RWGGlD-
LV Write Access read/write
LV Creation host, time server, 2015-01-03 20:39:40 +0100
LV Status available
# open 2
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3
--- Logical volume ---
LV Path /dev/vgserver/
LV Name lvroot-snap
VG Name vgserver
LV UUID GuOtc7-
LV Write Access read/write
LV Creation host, time server, 2015-02-19 12:08:43 +0100
LV snapshot status active destination for lvroot
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
COW-table size 10.00 GiB
COW-table LE 2560
Allocated to snapshot 0.58%
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:4
$ cfdisk -P s /dev/vda
Partition Table for /dev/vda
# Type Sector Sector Offset Length Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------
Pri/Log 0 2047* 0# 2048*Free Space None
1 Primary 2048* 4196351* 0 4194304*Linux (83) Boot
2 Primary 4196352* 1048575999* 0 1044379648*Linux LVM (8E) None
$ mount
/dev/mapper/
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,noexec,
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,
tmpfs on /tmp type tmpfs (rw,nosuid,size=4G)
tmpfs on /run type tmpfs (rw,noexec,
none on /run/lock type tmpfs (rw,noexec,
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,
none on /sys/fs/pstore type pstore (rw)
/dev/vda1 on /boot type ext2 (rw)
/dev/mapper/
/dev/mapper/
systemd on /sys/fs/
grub-mount on /var/lib/
+++++++
I guess the grub-mount results from the failed grub-update command. Related and resolved bugs may be:
https:/
https:/
Can please somebody tell me if this should be a bug report?
Question information
- Language:
- English Edit question
- Status:
- Open
- For:
- Ubuntu grub2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask kodiak for more information if necessary.