zfs not automounting with systemd

Bug #1431523 reported by Sam Van den Eynde
58
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Native ZFS for Linux
Fix Released
High
Sam Van den Eynde

Bug Description

I am testdriving systemd on Ubuntu 15.04 with zfs as root filesystem. The system works great, however it seems the systemd initscripts are not installed on my system, leaving one zpool exported and a few filesystems unmounted at boot. This worked fine with upstart.

When looking at the dkms folders I can see the scripts were pulled correctly from git (at least I assume that's why the're there):
ll /var/lib/dkms/zfs/0.6.3.0/build/etc/systemd/system
total 58
drwxr-xr-x 2 root root 11 mrt 10 22:32 ./
drwxr-xr-x 3 root root 5 mrt 10 22:32 ../
-rw-r--r-- 1 root root 6 mrt 10 22:30 50-zfs.preset.in
-rw-r--r-- 1 root root 6 mrt 10 22:32 Makefile
-rw-r--r-- 1 root root 6 mrt 10 22:30 Makefile.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zed.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-import-cache.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-import-scan.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-mount.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-share.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs.target.in

I can test things to help out, however I have no developer skills (automake/make/autoconfigure/...). E.g. I have no idea if I could deploy those files manually to test.

edit: logged zfsonlinux: https://github.com/zfsonlinux/zfs/issues/3173

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel (thisgenericname) wrote :

Just ran into this exact same issuse. It looks like the files DO NOT match what's in git at all. (In fact, all of the are the same 6-byte file).

I manually fixed my system by creating files in /etc/systemd/system based off of the templates here:

https://github.com/zfsonlinux/zfs/tree/master/etc/systemd/system

(Create a file zfs-target based of zfs-target.in, zfs-share-service based off of zfs-share-service.in, and so on. You'll need to manually replace the variables that would normally be replaced by the build process -- @bindir@ becomes /bin and so forth.)

tags: added: vivid
Changed in systemd (Ubuntu):
importance: Undecided → High
Revision history for this message
Sam Van den Eynde (samvde) wrote :

Ok starts to make sense to me now. Thanks for the guidance on the workaround!

Revision history for this message
Martin Pitt (pitti) wrote :

Since we don't ship any ZFS support package in Ubuntu I suppose you are using the upstream PPA. The bug report for that is logged at https://github.com/zfsonlinux/pkg-zfs/issues/145, so closing this one. Thanks!

Changed in systemd (Ubuntu):
status: Confirmed → Invalid
affects: systemd (Ubuntu) → zfs
summary: - zfs not automounting after upgrading from upstart to systemd
+ zfs not automounting with systemd
Changed in zfs:
status: Invalid → New
Revision history for this message
Sam Van den Eynde (samvde) wrote :

Thanks, it is sometimes a bit challenging knowing where to go with an issue :-)

Revision history for this message
Jared Fernandez (jared-fernandez) wrote :

This has been fixed for me as of a few updates ago. Can anyone else confirm?

Revision history for this message
Sam Van den Eynde (samvde) wrote :

Yes, it can be closed. I initially logged it, but it seems I can't close it.

Revision history for this message
David Britton (dpb) wrote :

Fixed here as well.

Changed in zfs:
assignee: nobody → Sam Van den Eynde (samvde)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.