Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: ZFS on Artix: install error  (Read 603 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ZFS on Artix: install error

I am trying to install zfs on Artix.  I found a HOWTO for running zfs as /, but this is not what I want. I just want the zfs kernel module and some tools (zfs, zpool) to manage an external pool.

So I used 'pacman -S linux-headers zfs-dkms zfs-utils'
(I use the 'linux' kernel)

DKMS errors out with:
==> dkms install --no-depmod zfs/2.1.9 -k 6.10.2-artix1-1
configure: error:
   *** None of the expected "file_fallocate" interfaces were detected.
   *** This may be because your kernel version is newer than what is
   *** supported, or you are using a patched custom kernel with
   *** incompatible modifications.
   ***
   *** ZFS Version: zfs-2.1.9-1
   *** Compatible Kernels: 3.10 - 6.1
   
Error! Bad return status for module build on kernel: 6.10.2-artix1-1 (x86_64)
Consult /var/lib/dkms/zfs/2.1.9/build/make.log for more information.
==> WARNING: `dkms install --no-depmod zfs/2.1.9 -k 6.10.2-artix1-1' exited 10


The dkms make.log is:
DKMS make.log for zfs-2.1.9 for kernel 6.10.2-artix1-1 (x86_64)
Wed Jul 31 09:24:36 EDT 2024
make: Entering directory '/var/lib/dkms/zfs/2.1.9/build/module'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'


It makes sense, since it looks like supported kernels are up to 6.1, and tke headers are 6.10.
Is the zfs-dkms package outdated? it looks like version 2.1.9, which is old. On further thought that may create compatibility problems of its own since the pool I want to run was created with zfs 2.2.4 and it probably has features not compatible with 2.1.9.

Any advice appreciated.


Re: ZFS on Artix: install error

Reply #2
Actually before I saw that reply I installed zfs from the openzfs git. Seems to work, I'll just have to remember reinstalling it every time there's a kernel update.Needed to do a little manual configuration but that's more or less expected.

Re: ZFS on Artix: install error

Reply #3
I'll give the package from AUR a try once I rebuild my test server. Still playing with a little toy machine so far (optiplex 3050 micro). To get a better feeling for Artix. Been using this distro for less than a week. :)

Re: ZFS on Artix: install error

Reply #4
Any advice appreciated.
You can try with zfs-dkms 2.2.4-3 from aur.


That didn't work. I installed the zfs-utils and zfs-dkms-2.2.4-3 from AUR, but the latter gives ne error:

==> dkms install --no-depmod zfs/2.2.4 -k 6.10.2-artix1-1
configure: error:
   *** Cannot build against kernel version 6.10.2-artix1-1.
   *** The maximum supported kernel version is 6.8.


So kernel 6.10 is too new for that AUR package.
I guess for now I'm stuck with using the OpenZFS git code directly.


Re: ZFS on Artix: install error

Reply #6
FWIW on a fresh install that I did this morning I did use https://aur.archlinux.org/packages/zfs-dkms-staging-git and it worked for the current kernel 6.10.2-artix1-1.

(the only problem being that does not install the OpenRC scripts like zfs-import, zfs-mount etc so these need to be copied manually from the zfs source tree to their appropriate locations; that does not need to be done when installing from the OpenZFS source code as it's done automatically. Just leaving this here as a comment for reference)

(edit: and actually the OpenRC scripts need to be adjusted and edited because the zfs-dkms-staging-git package installs binaries in nonstandard locations so services fail to start correctly; overall on a frustration/annoyance scale I would rate this package from AUR higher than installing ZFS directly from the OpenZFS git repository, even including the fact that the latter needs to be reinstalled manually with each kernel update)

Thank you.
This can be marked solved