[Pkg-zfsonlinux-devel] Bug#927003: install fails to trigger `modprobe zfs`

Hans-Christoph Steiner hans at eds.org
Sat Apr 13 10:27:47 BST 2019


Package: zfsutils-linux
Version: 0.7.12-2
Severity: important

On a fresh buster install, I installed ZFS based on a Recommends: from
parted or something like that.  The machine only has ext4 filesystems.
I had to manually run `modprobe zfs` to get past it.  It failed to
install in the initial try:

Setting up zfsutils-linux (0.7.12-2) ...
Created symlink
/etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service →
/lib/systemd/system/zfs-import-cache.service.
Created symlink
/etc/systemd/system/zfs-mount.service.wants/zfs-import.target →
/lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target →
/lib/systemd/system/zfs-import.target.
Created symlink
/etc/systemd/system/zfs-share.service.wants/zfs-mount.service →
/lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service →
/lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-share.service →
/lib/systemd/system/zfs-share.service.
Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target →
/lib/systemd/system/zfs.target.
zfs-import-scan.service is a disabled or a static unit, not starting it.
Job for zfs-mount.service failed because the control process exited with
error code.
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled;
vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-04-05 00:30:30
CEST; 5ms ago
     Docs: man:zfs(8)
  Process: 25010 ExecStart=/sbin/zfs mount -a (code=exited,
status=1/FAILURE)
 Main PID: 25010 (code=exited, status=1/FAILURE)

Apr 05 00:30:30 sovatest systemd[1]: Starting Mount ZFS filesystems...
Apr 05 00:30:30 sovatest zfs[25010]: The ZFS modules are not loaded.
Apr 05 00:30:30 sovatest zfs[25010]: Try running '/sbin/modprobe zfs' as
root to load them.
Apr 05 00:30:30 sovatest systemd[1]: zfs-mount.service: Main process
exited, code=exited, status=1/FAILURE
Apr 05 00:30:30 sovatest systemd[1]: zfs-mount.service: Failed with
result 'exit-code'.
Apr 05 00:30:30 sovatest systemd[1]: Failed to start Mount ZFS filesystems.
dpkg: error processing package zfsutils-linux (--configure):
 installed zfsutils-linux package post-installation script subprocess
returned error exit status 1



Then failed to install again when I ran `apt install -f`:


After this operation, 0 B of additional disk space will be used.
Setting up zfsutils-linux (0.7.12-2) ...
zfs-import-scan.service is a disabled or a static unit, not starting it.
Job for zfs-mount.service failed because the control process exited with
error code.
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled;
vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-04-05 09:12:02
CEST; 5ms ago
     Docs: man:zfs(8)
  Process: 20086 ExecStart=/sbin/zfs mount -a (code=exited,
status=1/FAILURE)
 Main PID: 20086 (code=exited, status=1/FAILURE)

Apr 05 09:12:02 sovatest systemd[1]: Starting Mount ZFS filesystems...
Apr 05 09:12:02 sovatest zfs[20086]: The ZFS modules are not loaded.
Apr 05 09:12:02 sovatest zfs[20086]: Try running '/sbin/modprobe zfs' as
root to load them.
Apr 05 09:12:02 sovatest systemd[1]: zfs-mount.service: Main process
exited, code=exited, status=1/FAILURE
Apr 05 09:12:02 sovatest systemd[1]: zfs-mount.service: Failed with
result 'exit-code'.
Apr 05 09:12:02 sovatest systemd[1]: Failed to start Mount ZFS filesystems.
dpkg: error processing package zfsutils-linux (--configure):
 installed zfsutils-linux package post-installation script subprocess
returned error exit status 1
dpkg: dependency problems prevent configuration of zfs-zed:
 zfs-zed depends on zfsutils-linux (>= 0.7.12-2); however:
  Package zfsutils-linux is not configured yet.

dpkg: error processing package zfs-zed (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 zfsutils-linux
 zfs-zed
E: Sub-process /usr/bin/dpkg returned an error code (1)



More information about the Pkg-zfsonlinux-devel mailing list