I’m using ZFS on nixos, with an ext4 boot drive, and a ZFS pool whose key is loaded from the boot disk.
Despite mounting correctly, zfs also causes the system to fail and go into emergency mode. Even if zfs were to fail though, things like sshd and dbus shouldn’t depend on it.
In particular, the system waits for about half a second after
Starting Mount ZFS filesystems...
and the next line is
[FAILED] Failed to mount /ZFSmountpoint.
and then
[DEPEND] Dependency failed for Local File Systems.
Shortly thereafter I get the
[ OK ] Finished Mount ZFS filesystems.
The next line is about emergency mode.
How can ZFS both fail and finish? And why does this affect the remainder of startup?
Zwuzelmaus@feddit.org 2 days ago
Guess it should wait just a little longer at this point.
spinning_disk_engineer@lemmy.ca 2 days ago
That’s possible. Everything after it is much faster, so I’d assumed it was reacting to some kind of failure event, but I’m not that knowledgeable about this. Edited for clarity.
Zwuzelmaus@feddit.org 2 days ago
To be precise, I think that it does not “both fail and finish”.
You get the success message a little late, and some job control has decided earlier that it has failed, when in truth it just took longer than expected. The ‘fail’ message comes from this job control, while the ‘success’ message comes from ZFS itself.