[Bug 1834095] Re: update-grub fails on zfs with root and boot datasets
David R. Bergstein
1834095 at bugs.launchpad.net
Tue Jun 25 15:39:10 UTC 2019
zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bpool 496M 122M 374M - 18% 24% 1.00x ONLINE -
rpool 39.2G 5.18G 34.1G - 19% 13% 1.00x ONLINE -
zfs list
NAME USED AVAIL REFER MOUNTPOINT
bpool 122M 246M 96K /
bpool/BOOT 121M 246M 96K none
bpool/BOOT/ubuntu 121M 246M 120M legacy
rpool 5.18G 32.8G 96K /
rpool/ROOT 4.90G 32.8G 96K none
rpool/ROOT/ubuntu 4.90G 32.8G 4.60G /
rpool/home 94.3M 32.8G 96K /home
rpool/home/dbergst 94.1M 32.8G 90.4M /home/dbergst
rpool/home/root 116K 32.8G 116K /root
rpool/opt 11.0M 32.8G 11.0M /opt
rpool/srv 96K 32.8G 96K /srv
rpool/tmp 292K 32.8G 160K legacy
rpool/usr 232K 32.8G 96K /usr
rpool/usr/local 136K 32.8G 136K /usr/local
rpool/var 170M 32.8G 96K /var
rpool/var/cache 146M 32.8G 146M /var/cache
rpool/var/games 96K 32.8G 96K /var/games
rpool/var/lib 288K 32.8G 96K /var/lib
rpool/var/lib/docker 96K 32.8G 96K /var/lib/docker
rpool/var/lib/nfs 96K 32.8G 96K /var/lib/nfs
rpool/var/log 23.2M 32.8G 21.8M legacy
rpool/var/mail 96K 32.8G 96K /var/mail
rpool/var/snap 96K 32.8G 96K /var/snap
rpool/var/spool 168K 32.8G 112K legacy
rpool/var/tmp 208K 32.8G 120K legacy
rpool/var/www 96K 32.8G 96K /var/www
zfs get all bpool
NAME PROPERTY VALUE SOURCE
bpool type filesystem -
bpool creation Sat Apr 27 22:20 2019 -
bpool used 122M -
bpool available 246M -
bpool referenced 96K -
bpool compressratio 1.08x -
bpool mounted no -
bpool quota none default
bpool reservation none default
bpool recordsize 128K default
bpool mountpoint / local
bpool sharenfs off default
bpool checksum on default
bpool compression lz4 local
bpool atime on default
bpool devices off local
bpool exec on default
bpool setuid on default
bpool readonly off default
bpool zoned off default
bpool snapdir hidden default
bpool aclinherit restricted default
bpool createtxg 1 -
bpool canmount off local
bpool xattr sa local
bpool copies 1 default
bpool version 5 -
bpool utf8only on -
bpool normalization formD -
bpool casesensitivity sensitive -
bpool vscan off default
bpool nbmand off default
bpool sharesmb off default
bpool refquota none default
bpool refreservation none default
bpool guid 11010012457975961225 -
bpool primarycache all default
bpool secondarycache all default
bpool usedbysnapshots 0B -
bpool usedbydataset 96K -
bpool usedbychildren 122M -
bpool usedbyrefreservation 0B -
bpool logbias latency default
bpool dedup off default
bpool mlslabel none default
bpool sync standard default
bpool dnodesize legacy default
bpool refcompressratio 1.00x -
bpool written 0 -
bpool logicalused 131M -
bpool logicalreferenced 40K -
bpool volmode default default
bpool filesystem_limit none default
bpool snapshot_limit none default
bpool filesystem_count none default
bpool snapshot_count none default
bpool snapdev hidden default
bpool acltype posixacl local
bpool context none default
bpool fscontext none default
bpool defcontext none default
bpool rootcontext none default
bpool relatime on local
bpool redundant_metadata all default
bpool overlay off default
zfs get all rpool
NAME PROPERTY VALUE SOURCE
rpool type filesystem -
rpool creation Sat Apr 27 22:21 2019 -
rpool used 5.18G -
rpool available 32.8G -
rpool referenced 96K -
rpool compressratio 1.58x -
rpool mounted no -
rpool quota none default
rpool reservation none default
rpool recordsize 128K default
rpool mountpoint / local
rpool sharenfs off default
rpool checksum on default
rpool compression lz4 local
rpool atime on default
rpool devices off local
rpool exec on default
rpool setuid on default
rpool readonly off default
rpool zoned off default
rpool snapdir hidden default
rpool aclinherit restricted default
rpool createtxg 1 -
rpool canmount off local
rpool xattr sa local
rpool copies 1 default
rpool version 5 -
rpool utf8only on -
rpool normalization formD -
rpool casesensitivity sensitive -
rpool vscan off default
rpool nbmand off default
rpool sharesmb off default
rpool refquota none default
rpool refreservation none default
rpool guid 12751051842868483442 -
rpool primarycache all default
rpool secondarycache all default
rpool usedbysnapshots 0B -
rpool usedbydataset 96K -
rpool usedbychildren 5.18G -
rpool usedbyrefreservation 0B -
rpool logbias latency default
rpool dedup off default
rpool mlslabel none default
rpool sync standard default
rpool dnodesize auto local
rpool refcompressratio 1.00x -
rpool written 0 -
rpool logicalused 7.59G -
rpool logicalreferenced 40K -
rpool volmode default default
rpool filesystem_limit none default
rpool snapshot_limit none default
rpool filesystem_count none default
rpool snapshot_count none default
rpool snapdev hidden default
rpool acltype posixacl local
rpool context none default
rpool fscontext none default
rpool defcontext none default
rpool rootcontext none default
rpool relatime on local
rpool redundant_metadata all default
rpool overlay off default
Output from updating grub application:
Setting up grub-common (2.02+dfsg1-12ubuntu3) ...
Installing new version of config file /etc/grub.d/10_linux ...
Setting up grub2-common (2.02+dfsg1-12ubuntu3) ...
Setting up grub-pc-bin (2.02+dfsg1-12ubuntu3) ...
Setting up grub-pc (2.02+dfsg1-12ubuntu3) ...
Installing for i386-pc platform.
Installation finished. No error reported.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Warning: Failed to find a valid directory 'boot' for dataset 'rpool/ROOT/ubuntu'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu
Warning: Failed to find a valid directory 'boot' for dataset 'rpool/ROOT/ubuntu at 20190624'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu at 20190624
awk: line 14: syntax error at or near [
awk: line 24: syntax error at or near [
awk: line 27: syntax error at or near }
awk: line 89: syntax error at or near [
awk: line 93: syntax error at or near [
Found memtest86+ image: /BOOT/ubuntu@/memtest86+.elf
Found memtest86+ image: /BOOT/ubuntu@/memtest86+.bin
device-mapper: reload ioctl on osprober-linux-sda4 failed: Device or resource busy
Command failed.
--
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/1834095
Title:
update-grub fails on zfs with root and boot datasets
Status in grub2 package in Ubuntu:
Incomplete
Bug description:
This issue was encountered on a virtual machine installation of Ubuntu
19.10 running zfs. After reloading several times from backup and
placing the original version of grub2 on hold it was verified that
upgrading to the newer version of grub caused update-grub to
improperly detect the two zfs datasets, bpool (boot pool) and rpool
(root pool).
To recap:
1) lsb_release -rd
Description: Ubuntu Eoan Ermine (development branch)
Release: 19.10
2) apt-cache policy grub-pc
grub-pc:
Installed: 2.02+dfsg1-12ubuntu2
Candidate: 2.02+dfsg1-12ubuntu3 (version with issue in this report)
Version table:
2.02+dfsg1-12ubuntu3 500
500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
*** 2.02+dfsg1-12ubuntu2 100
100 /var/lib/dpkg/status
3) What I expected to happen: update-grub runs without error
4) What happened instead: update-grub did not run correctly, resulting in unbootable system (only entries for memtest86+ in grub menu).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834095/+subscriptions
More information about the foundations-bugs
mailing list