You are not logged in.

#1 2017-06-01 21:30:54

spacekookie
Member
Registered: 2017-04-30
Posts: 8

ZFS and linux-lts-userns kernel

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 sad Or if I'm even doing this right.


Polar bears are left handed

Offline

#2 2017-06-01 21:48:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: ZFS and linux-lts-userns kernel

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-06-02 10:12:17

XenGi
Member
From: berlin, germany, europe, earth
Registered: 2013-02-23
Posts: 35
Website

Re: ZFS and linux-lts-userns kernel

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

#4 2017-06-03 08:42:15

spacekookie
Member
Registered: 2017-04-30
Posts: 8

Re: ZFS and linux-lts-userns kernel

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 hmm


Polar bears are left handed

Offline

#5 2017-06-03 14:48:52

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: ZFS and linux-lts-userns kernel

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

#6 2017-06-11 01:23:34

franz
Member
Registered: 2017-06-11
Posts: 1

Re: ZFS and linux-lts-userns kernel

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 wink

Offline

Board footer

Powered by FluxBB