I just tried OMV6 on a fresh install but had to find i broke it.
This is what I did:
- install debian bullseye via netinst ISO (11.2.0, amd64)
- install omv with the install script sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
- Log in and
- without any further configuration go to Plugins
- select openmediavault-zfs and click on install
- An error message is displayed, but the plugin is marked as installed
- zfs is not visable in storage menu
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-missing --allow-unauthenticated --reinstall install openmediavault-zfs 2>&1' with exit code '100': Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp-10 dkms dpkg-dev
gcc-10 libasan6 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0
libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libgcc-10-dev libgomp1
libisl23 libitm1 liblsan0 libmpc3 libnsl-dev libnvpair3linux libquadmath0
libtirpc-dev libtsan0 libubsan1 libuutil3linux libzfs4linux libzpool5linux
linux-compiler-gcc-10-x86 linux-headers-5.14.0-0.bpo.2-amd64
linux-headers-5.14.0-0.bpo.2-common linux-headers-amd64 linux-kbuild-5.14
linux-libc-dev make python3-distutils python3-lib2to3 zfs-dkms zfs-zed
zfsutils-linux
Suggested packages:
binutils-doc gcc-10-locales menu debian-keyring gcc-10-multilib gcc-10-doc
glibc-doc manpages-dev git bzr make-doc debhelper zfs-initramfs | zfs-dracut
Recommended packages:
fakeroot build-essential libalgorithm-merge-perl manpages-dev libc-devtools
libfile-fcntllock-perl
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp-10 dkms dpkg-dev
gcc-10 libasan6 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0
libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libgcc-10-dev libgomp1
libisl23 libitm1 liblsan0 libmpc3 libnsl-dev libnvpair3linux libquadmath0
libtirpc-dev libtsan0 libubsan1 libuutil3linux libzfs4linux libzpool5linux
linux-compiler-gcc-10-x86 linux-headers-5.14.0-0.bpo.2-amd64
linux-headers-5.14.0-0.bpo.2-common linux-headers-amd64 linux-kbuild-5.14
linux-libc-dev make openmediavault-zfs python3-distutils python3-lib2to3
zfs-dkms zfs-zed zfsutils-linux
0 upgraded, 45 newly installed, 0 to remove and 1 not upgraded.
Need to get 63.7 MB of archives.
After this operation, 262 MB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian bullseye-backports/contrib amd64 zfs-dkms all 2.1.2-1~bpo11+1 [2286 kB]
....
Get:45 http://deb.debian.org/debian bullseye/main amd64 linux-compiler-gcc-10-x86 amd64 5.10.84-1 [407 kB]
Preconfiguring packages ...
Fetched 63.7 MB in 5s (11.9 MB/s)
Selecting previously unselected package libisl23:amd64.
(Reading database ...
(Reading database ... 5%
...
(Reading database ... 100%
(Reading database ... 39503 files and directories currently installed.)
Preparing to unpack .../00-libisl23_0.23-1_amd64.deb ...
Unpacking libisl23:amd64 (0.23-1) ......
Selecting previously unselected package openmediavault-zfs.
Preparing to unpack .../44-openmediavault-zfs_6.0.3_amd64.deb ...
Unpacking openmediavault-zfs (6.0.3) ...
Setting up libnvpair3linux (2.1.2-1~bpo11+1) ...
...
Setting up zfsutils-linux (2.1.2-1~bpo11+1) ...
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.10.0-10-amd64
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.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.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/zfs-volumes.target.wants/zfs-volume-wait.service → /lib/systemd/system/zfs-volume-wait.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-volumes.target → /lib/systemd/system/zfs-volumes.target.
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-load-module.service failed because the control process exited with error code.
See "systemctl status zfs-load-module.service" and "journalctl -xe" for details.
A dependency job for zfs-import-cache.service failed. See 'journalctl -xe' for details.
Setting up gcc-10 (10.2.1-6) ...
Setting up linux-compiler-gcc-10-x86 (5.10.84-1) ...
Setting up linux-headers-5.14.0-0.bpo.2-amd64 (5.14.9-2~bpo11+1) ...
Setting up dkms (2.8.4-3) ...
Setting up zfs-dkms (2.1.2-1~bpo11+1) ...
Loading new zfs-2.1.2 DKMS files...
Building for 5.10.0-10-amd64
Module build for kernel 5.10.0-10-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up linux-headers-amd64 (5.14.9-2~bpo11+1) ...
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-10-amd64
Processing triggers for openmediavault (6.0.8-1) ...
Restarting engine daemon ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
Setting up zfs-zed (2.1.2-1~bpo11+1) ...
Created symlink /etc/systemd/system/zed.service → /lib/systemd/system/zfs-zed.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-zed.service → /lib/systemd/system/zfs-zed.service.
Setting up openmediavault-zfs (6.0.3) ...
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.10.0-10-amd64
dpkg: error processing package openmediavault-zfs (--configure):
installed openmediavault-zfs package post-installation script subprocess returned error exit status 1
Processing triggers for openmediavault (6.0.8-1) ...
Restarting engine daemon ...
Errors were encountered while processing:
openmediavault-zfs
E: Sub-process /usr/bin/dpkg returned an error code (1) in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:251
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): Engined\Rpc\PluginMgmt->Engined\Rpc\{closure}('/tmp/bgstatusTN...', '/tmp/bgoutputzW...')
#1 /usr/share/openmediavault/engined/rpc/pluginmgmt.inc(255): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\PluginMgmt->install(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('install', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Plugin', 'install', Array, Array, 1)
#6 {main}
What happened:
- After the install debian is on kernel Linux omv6-test 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux
- Install of openmediavault-zfs (or it's dependencies) assume a different kernel and install linux-headers-5.14.0-0.bpo.2-amd64
- this results in the zfs module not being built
- apt marked as dirty module in omv (so will try to salt run deploy apt every time you change something in the UI regaring packages)
How to resolve:
- on the cli
- purge openmediavault-zfs icluding dependencies
apt-get remove --autoremove openmediavault-zfs
- update / upgade to latest kernel (did not work for me on the UI because of a kept back linux-image-amd43)
apt-get update apt-get upgrade (I had to apt-get full-upgrade, as the image was held back, but apt-get install linux-image-amd64 might have worked too
- purge openmediavault-zfs icluding dependencies
- reboot
- In the UI
- install openmediavault-zfs again
How to avoid:
- Do an update to the latest packages before
- reboot
- intall openmediavault-zfs
I wonder what will happen on the next kernel update
ryecoaaron: Probably the install should not run, if the most recent kernel is not used.