You are not logged in.
My desired setup is in the title: LXD containers with a ZFS backend for easy snapshots, using the linux-lts-userns kernel.
Now, I installed the zfs-dkms package (from AUR), have LXD installed and now when trying to install the lts-userns kernel this happens:
$ makepkg -si
==> Installing linux-lts-userns package group with pacman -U...
[sudo] password for spacekookie:
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (3) linux-lts-userns-4.9.30-1 linux-lts-userns-docs-4.9.30-1 linux-lts-userns-headers-4.9.30-1
Total Installed Size: 156.94 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(3/3) checking keys in keyring [----------------------------------------] 100%
(3/3) checking package integrity [----------------------------------------] 100%
(3/3) loading package files [----------------------------------------] 100%
(3/3) checking for file conflicts [----------------------------------------] 100%
(3/3) checking available disk space [----------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove zfs/0.6.5.9 -k 4.9.30-1-lts-userns
Error! There is no instance of zfs 0.6.5.9
for kernel 4.9.30-1-lts-userns (x86_64) located in the DKMS tree.
==> dkms remove spl/0.6.5.9 -k 4.9.30-1-lts-userns
Error! There is no instance of spl 0.6.5.9
for kernel 4.9.30-1-lts-userns (x86_64) located in the DKMS tree.
:: Processing package changes...
(1/3) reinstalling linux-lts-userns [----------------------------------------] 100%
>>> Updating module dependencies. Please wait ...
(2/3) reinstalling linux-lts-userns-headers [----------------------------------------] 100%
(3/3) reinstalling linux-lts-userns-docs [----------------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Install DKMS modules
==> dkms install zfs/0.6.5.9 -k 4.9.30-1-lts-userns
configure: error:
*** Please make sure the kmod spl devel <kernel> package for your
*** distribution is installed then try again. If that fails you
*** can specify the location of the spl objects with the
*** '--with-spl-obj=PATH' option.
Error! Bad return status for module build on kernel: 4.9.30-1-lts-userns (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.9/build/make.log for more information.
==> dkms install spl/0.6.5.9 -k 4.9.30-1-lts-userns
Error! Bad return status for module build on kernel: 4.9.30-1-lts-userns (x86_64)
Consult /var/lib/dkms/spl/0.6.5.9/build/make.log for more information.
The zfs build log:
DKMS make.log for zfs-0.6.5.9 for kernel 4.9.30-1-lts-userns (x86_64)
Thu Jun 1 22:07:55 CEST 2017
make: *** No targets specified and no makefile found. Stop.
And the spl build log: https://pastebin.com/K3WtN9iw
I'm not really sure why building ZFS and SPL fails Or if I'm even doing this right.
Polar bears are left handed
Offline
Moving to AUR Issues...
Offline
ZFS for Linux is quite new. The error says there is no zfs module for this kernel version you are using. Maybe try to use linux-userns instead of linux-lts-userns. If you don't need the lts kernel, it's always a good idea to use a newer kernel for experimental features like zfs.
Also, you should use the packages from the Arch zfs repo. They are newer then the ones from aur.
# got root?█
Offline
1) The archzfs repo packages don't support dkms and aren't installable with a non-standard kernel
2) I switched to the linux-userns kernel and after installation, dkms building the modules still fails.
When invoking "dkms install zfs/0.6.5.9" manually this is what happens:
checking zfs config... kernel
checking for -Wno-unused-but-set-variable support... yes
checking for -Wno-bool-compare support... yes
checking kernel source directory... /usr/lib/modules/4.11.2-1-userns/build
checking kernel build directory... /usr/lib/modules/4.11.2-1-userns/build
checking kernel source version... 4.11.2-1-userns
checking kernel file name for module symbols... Module.symvers
checking spl source directory... /usr/src/spl-0.6.5.9
checking spl build directory... /var/lib/dkms/spl/0.6.5.9/4.11.2-1-userns/x86_64
configure: error:
*** Please make sure the kmod spl devel <kernel> package for your
*** distribution is installed then try again. If that fails you
*** can specify the location of the spl objects with the
*** '--with-spl-obj=PATH' option.
Building module:
cleaning build area...(bad exit status: 2)
make -j6 KERNELRELEASE=4.11.2-1-userns...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.11.2-1-userns (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.9/build/make.log for more information.
And the log they list has this inside it
DKMS make.log for zfs-0.6.5.9 for kernel 4.11.2-1-userns (x86_64)
Sat Jun 3 10:30:03 CEST 2017
make: *** No targets specified and no makefile found. Stop.
which is bizzare
Polar bears are left handed
Offline
Looks like the problem could be in spl-dkms package, check the aur comments for it.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
I had the same problem with kernel ver. 4.9.30-1-lts-userns
Solution:
1. from AUR install newest package: zfs-dkms-rc (cur. ver. 0.7.0.4-1) with dependencies
2. In console build modules as root:
- first spl by command:
dkms install spl/0.7.0.4 -k 4.9.30-1-lts-userns
- then zfs by command:
dkms install zfs/0.7.0.4 -k 4.9.30-1-lts-userns
ORDER IS MATTER !
After that you can load module by: modprobe zfs
and you can play with ZFS under that kernel verssion
Offline