Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716488 - sys-fs/zfs-0.8.3-r1 dependency cycle zfs-* services
Summary: sys-fs/zfs-0.8.3-r1 dependency cycle zfs-* services
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Richard Yao (RETIRED)
URL: https://github.com/openzfs/zfs/issues...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-06 18:43 UTC by samurai.no.dojo
Modified: 2020-10-22 02:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,17.78 KB, text/plain)
2020-04-06 18:44 UTC, samurai.no.dojo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description samurai.no.dojo 2020-04-06 18:43:28 UTC
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
Comment 1 samurai.no.dojo 2020-04-06 18:44:30 UTC
Created attachment 630882 [details]
emerge --info
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-04-07 05:18:23 UTC
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=)
Comment 4 Georgy Yakovlev archtester gentoo-dev 2020-10-07 00:12:21 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2020-10-22 02:41:51 UTC
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(-)