failed boot mount, and systemd ordering cycle on zfs-import.target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a new Ubuntu 20.10 ZoL root I frequently get boot failures, and I see these errors:
[ 11.353930] systemd[1]: boot.mount: Mount process exited, code=exited, status=1/FAILURE
[ 11.353934] systemd[1]: boot.mount: Failed with result 'exit-code'.
[ 11.354267] systemd[1]: Failed to mount /boot.
[ 11.354307] systemd[1]: Dependency failed for /boot/efi.
[ 11.354327] systemd[1]: Dependency failed for /boot/grub.
[ 11.354344] systemd[1]: Dependency failed for Local File Systems.
[ 11.354365] systemd[1]: local-fs.target: Job local-fs.
[ 11.354367] systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
[ 11.355088] systemd[1]: var-lib.mount: Found ordering cycle on zfs-import.
[ 11.355090] systemd[1]: var-lib.mount: Found dependency on zfs-import-
[ 11.355091] systemd[1]: var-lib.mount: Found dependency on zfs-load-
[ 11.355093] systemd[1]: var-lib.mount: Found dependency on cryptsetup.
[ 11.355094] systemd[1]: var-lib.mount: Found dependency on <email address hidden>/start
[ 11.355096] systemd[1]: var-lib.mount: Found dependency on systemd-
[ 11.355097] systemd[1]: var-lib.mount: Found dependency on var-lib.mount/start
[ 11.355099] systemd[1]: var-lib.mount: Job zfs-import.
[ 11.355819] systemd[1]: boot-grub.mount: Job boot-grub.
[ 11.355823] systemd[1]: boot-efi.mount: Job boot-efi.
Journalctl shows "filesystem 'bpool/
I can manually start boot.mount from the console, which then lets the boot process complete.
N.B. "zfs list" is
NAME USED AVAIL REFER MOUNTPOINT
bpool 402M 1.36G 96K /boot
bpool/BOOT 401M 1.36G 96K none
bpool/BOOT/
rpool 171G 720G 192K /
rpool/ROOT 9.26G 720G 192K none
rpool/ROOT/ubuntu_ 1.57G 720G 5.16G /
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/USERDATA 162G 720G 192K /
rpool/USERDATA/
rpool/USERDATA/
rpool/keystore 518M 720G 48.1M -
description: | updated |
BTW, I ran the following and that seems to have solved the missing bpool.
zpool set cachefile= /etc/zfs/ zpool.cache bpool /etc/zfs/ zpool.cache rpool
zpool set cachefile=
update-initramfs -u -k all
I have a hunch the zpool.cache file is getting out of sync with the initramfs one..?