I am having systemd strtup problems for zfs filesystem after update to sys-fs/zfs-0.8.3-r1 and gentoo-sources-5.4.28. ZFS is raidz3 on 11 luks encrypted drives. I have enabled zfs-import-cache.service, zfs-mount.service, zfs-zed.service, zfs.target. But upon start (after unlocking drives) I get following messages: Apr 06 20:09:28 host systemd[1]: zfs-mount.service: Found dependency on zfs-import-cache.service/start Apr 06 20:09:28 host systemd[1]: zfs-mount.service: Found dependency on cryptsetup.target/start Apr 06 20:09:28 host systemd[1]: zfs-mount.service: Found dependency on systemd-cryptsetup@cloud_tmp_f8e7aa33\x2df62b\x2d449e\x2da5bc\x2d70b67666c74b.service/start Apr 06 20:09:28 host systemd[1]: zfs-mount.service: Found dependency on systemd-random-seed.service/start Apr 06 20:09:28 host systemd[1]: zfs-mount.service: Found dependency on zfs-mount.service/start Apr 06 20:09:28 host systemd[1]: zfs-mount.service: Job zfs-import.target/start deleted to break ordering cycle starting with zfs-mount.service/start And this results in imported but not mounted zfs... Reproducible: Always Steps to Reproduce: 1.install zfs 2.create zfs on encrpyted drive(s) unlocked with /etc/crypttab and keyfile 3.enable needed services 4. reboot and observe Actual Results: ZFS volumes are not mounted on requsted mount points Expected Results: Mounted ZFS volumes
Created attachment 630882 [details] emerge --info
there are multiple upstream issues about it https://github.com/zfsonlinux/pkg-zfs/issues/205 https://github.com/openzfs/zfs/issues/4474 and maybe https://github.com/openzfs/zfs/issues/10140 You have 3 options here: 1) switch to using mount generators, well described here https://wiki.archlinux.org/index.php/ZFS#Using_zfs-mount-generator 2) try removing Before=systemd-remount-fs from zfs-mount.service you may need to re-generate initrd after that. 3) migrate to legacy mountpoints via fstab. it may also require setting correct dependencies via fstab (x-systemd.requires=)
2 more relevant commits happened recently https://github.com/openzfs/zfs/commit/ec41cafee1dac132775ca3eaa9aa7f56cf30b30f https://github.com/openzfs/zfs/commit/62663fb7ec191ca2f872aec1636e94934212936f
0.8.5 got a lot of dependency fixes in systemd services so I think issues should be resolved. I'm running with generators, encryption, zvols and awful amount of datasets, no deps loops encountered.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2e06351c5b8d5833fe4839cddbb459ab9c071e7 commit b2e06351c5b8d5833fe4839cddbb459ab9c071e7 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-10-22 02:40:43 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-10-22 02:41:12 +0000 sys-fs/zfs: stabilze 0.8.5 it's a bugfix release, no point of waiting for 30 days. 2 weeks is ok. Closes: https://bugs.gentoo.org/716488 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-fs/zfs/zfs-0.8.5.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)