[zfs-discuss] ZFS 0.7.4 not mounting on Ubuntu 16.04.3

Sam Van den Eynde svde.tech at gmail.com
Fri Dec 15 02:03:59 EST 2017


What happens if you run zfs mount -a ?

Did you upgrade the zfs utilities ?

Any reason you're not running the HWE kernel?



On Dec 15, 2017 00:52, "Alexander I Kulyavtsev via zfs-discuss" <
zfs-discuss at list.zfsonlinux.org> wrote:

>
> > On Dec 14, 2017, at 2:18 PM, Nathan Fish via zfs-discuss <
> zfs-discuss at list.zfsonlinux.org> wrote:
> >
> > So thanks, that fixed it for now.  Do you know why the modules don't
> > load on boot?  Some sort of systemd race condition?
>
> ^ I have the same question. Scientific Linux 7.4.
>
> It looks like zfs-import-scan is disabled but called on reboot at which
> time zfs module is not found.
>
> zpool can be imported after the boot. No problem to load zfs module either.
>
> I did
>         systemctl enable zfs-mount
>
> I also did
> # systemctl preset zfs-import-cache zfs-import-scan zfs-mount zfs-share
> zfs-zed zfs.target
> Created symlink from /etc/systemd/system/zfs.target.wants/zfs-share.service
> to /usr/lib/systemd/system/zfs-share.service.
> Created symlink from /etc/systemd/system/zed.service to
> /usr/lib/systemd/system/zfs-zed.service.
> Created symlink from /etc/systemd/system/zfs.target.wants/zfs-zed.service
> to /usr/lib/systemd/system/zfs-zed.service.
> Created symlink from /etc/systemd/system/multi-user.target.wants/zfs.target
> to /usr/lib/systemd/system/zfs.target.
>
> # init 6
>
> at this point:
> ● zfs-import-scan.service - Import ZFS pools by device scanning
>    Loaded: loaded (/usr/lib/systemd/system/zfs-import-scan.service;
> disabled; vendor preset: disabled)
>    Active: failed (Result: exit-code) since Thu 2017-12-14 16:08:38 CST;
> 1min 5s ago
>
> Dec 14 16:08:38 tevlfs6 systemd[1]: Starting Import ZFS pools by device
> scanning...
> Dec 14 16:08:38 tevlfs6 modprobe[1516]: modprobe: FATAL: Module zfs not
> found.
> Dec 14 16:08:38 tevlfs6 systemd[1]: zfs-import-scan.service: control
> process exited, code=exited status=1
> Dec 14 16:08:38 tevlfs6 systemd[1]: Failed to start Import ZFS pools by
> device scanning.
> Dec 14 16:08:38 tevlfs6 systemd[1]: Unit zfs-import-scan.service entered
> failed state.
> Dec 14 16:08:38 tevlfs6 systemd[1]: zfs-import-scan.service failed.
>
> .... enable/disable zfs-import-scan:
>
> # systemctl disable zfs-import-scan
> Removed symlink /etc/systemd/system/zfs-import.target.wants/zfs-
> import-scan.service.
>
>
> # ls -l /etc/zfs/zpool.cache
> ls: cannot access /etc/zfs/zpool.cache: No such file or directory
>
> # zpool import zptevlfs6
> # ls -l /etc/zfs/zpool.cache
> -rw-r--r-- 1 root root 2172 Dec 14 17:33 /etc/zfs/zpool.cache
>
> # zpool list
> NAME        SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH
> ALTROOT
> zptevlfs6  14.5T  6.22G  14.5T         -     0%     0%  1.00x  ONLINE  -
>
> # zfs list | head -3
> NAME                                             USED  AVAIL  REFER
> MOUNTPOINT
> zptevlfs6                                       6.21G  14.0T   104K
> /zptevlfs6
> zptevlfs6/backup                                6.21G  14.0T   159M
> /zptevlfs6/backup
>
>
> # reboot
> ....
>
>
> # zpool list
> no pools available
>
> zfs-import-scan is disabled but reported error.
>
> systemctl status:
>
> > # systemctl status zfs-import-cache zfs-import-scan zfs-mount zfs-share
> zfs-zed zfs.target
> > ● zfs-import-cache.service - Import ZFS pools by cache file
> >    Loaded: loaded (/usr/lib/systemd/system/zfs-import-cache.service;
> enabled; vendor preset: enabled)
> >    Active: inactive (dead)
> >
> > ● zfs-import-scan.service - Import ZFS pools by device scanning
> >    Loaded: loaded (/usr/lib/systemd/system/zfs-import-scan.service;
> disabled; vendor preset: disabled)
> >    Active: failed (Result: exit-code) since Thu 2017-12-14 17:37:56 CST;
> 1min 47s ago
> >
> > Dec 14 17:37:56 tevlfs6 systemd[1]: Starting Import ZFS pools by device
> scanning...
> > Dec 14 17:37:56 tevlfs6 modprobe[1515]: modprobe: FATAL: Module zfs not
> found.
> > Dec 14 17:37:56 tevlfs6 systemd[1]: zfs-import-scan.service: control
> process exited, code=exited status=1
> > Dec 14 17:37:56 tevlfs6 systemd[1]: Failed to start Import ZFS pools by
> device scanning.
> > Dec 14 17:37:56 tevlfs6 systemd[1]: Unit zfs-import-scan.service entered
> failed state.
> > Dec 14 17:37:56 tevlfs6 systemd[1]: zfs-import-scan.service failed.
> >
> > ● zfs-mount.service - Mount ZFS filesystems
> >    Loaded: loaded (/usr/lib/systemd/system/zfs-mount.service; enabled;
> vendor preset: enabled)
> >    Active: active (exited) since Thu 2017-12-14 17:38:03 CST; 1min 40s
> ago
> >   Process: 2845 ExecStart=/sbin/zfs mount -a (code=exited,
> status=0/SUCCESS)
> >  Main PID: 2845 (code=exited, status=0/SUCCESS)
> >    CGroup: /system.slice/zfs-mount.service
> >
> > Dec 14 17:38:03 tevlfs6 systemd[1]: Starting Mount ZFS filesystems...
> > Dec 14 17:38:03 tevlfs6 systemd[1]: Started Mount ZFS filesystems.
> >
> > ● zfs-share.service - ZFS file system shares
> >    Loaded: loaded (/usr/lib/systemd/system/zfs-share.service; enabled;
> vendor preset: enabled)
> >    Active: active (exited) since Thu 2017-12-14 17:38:04 CST; 1min 39s
> ago
> >   Process: 3099 ExecStart=/sbin/zfs share -a (code=exited,
> status=0/SUCCESS)
> >   Process: 2974 ExecStartPre=/bin/rm -f /etc/dfs/sharetab (code=exited,
> status=0/SUCCESS)
> >  Main PID: 3099 (code=exited, status=0/SUCCESS)
> >    CGroup: /system.slice/zfs-share.service
> >
> > Dec 14 17:38:04 tevlfs6 systemd[1]: Starting ZFS file system shares...
> > Dec 14 17:38:04 tevlfs6 systemd[1]: Started ZFS file system shares.
> >
> > ● zfs-zed.service - ZFS Event Daemon (zed)
> >    Loaded: loaded (/usr/lib/systemd/system/zfs-zed.service; enabled;
> vendor preset: enabled)
> >    Active: active (running) since Thu 2017-12-14 17:38:04 CST; 1min 39s
> ago
> >      Docs: man:zed(8)
> >  Main PID: 3044 (zed)
> >    CGroup: /system.slice/zfs-zed.service
> >            └─3044 /sbin/zed -F
> >
> > Dec 14 17:38:04 tevlfs6 systemd[1]: Started ZFS Event Daemon (zed).
> > Dec 14 17:38:04 tevlfs6 systemd[1]: Starting ZFS Event Daemon (zed)...
> > Dec 14 17:38:04 tevlfs6 zed[3044]: ZFS Event Daemon 0.7.4-1 (PID 3044)
> > Dec 14 17:38:04 tevlfs6 zed[3044]: Processing events since eid=0
> >
> > ● zfs.target - ZFS startup target
> >    Loaded: loaded (/usr/lib/systemd/system/zfs.target; enabled; vendor
> preset: enabled)
> >    Active: active since Thu 2017-12-14 17:38:04 CST; 1min 39s ago
> >
> > Dec 14 17:38:04 tevlfs6 systemd[1]: Reached target ZFS startup target.
> > Dec 14 17:38:04 tevlfs6 systemd[1]: Starting ZFS startup target.
> > #
>
> Alex.
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20171215/aa4659f7/attachment.html>


More information about the zfs-discuss mailing list