You are not logged in.

#1 2016-01-21 20:53:55

kevdog
Member
Registered: 2013-01-26
Posts: 46

ZFS DKMS with upgrading kernels

So this morning I downloaded a new arch standard kernel, however my dkms zfs packages failed to build.

I following these instructions as in the wiki https://wiki.archlinux.org/index.php/ZFS#DKMS:

DKMS
Users can make use of DKMS Dynamic Kernel Module Support to rebuild the ZFS modules automatically with every kernel upgrade.
Read the Mkinitcpio wiki entry for a general understanding of the initial ramdisk environment, and adding the dkms hook Mkinitcpio#HOOKS.
Install zfs-dkmsAUR or zfs-dkms-gitAUR and apply the post-install instructions given by these packages.

I've installed the zfs-dkms-git AUR packages.
The problem however is that I can't build the new initramfs image.

My /etc/mkinitcpio.conf file contains this:

HOOKS="base udev autodetect modconf block keyboard zfs filesystems fsck"

However when I try to build the image:

$ sudo mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.3.3-3-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [zfs]
Build spl module for 4.3.3-3-ARCH kernel... Done.
Build zfs module for 4.3.3-3-ARCH kernel... Done.
==> ERROR: module not found: `zavl'
==> ERROR: module not found: `znvpair'
==> ERROR: module not found: `zunicode'
==> ERROR: module not found: `zcommon'
==> ERROR: module not found: `zfs'
==> ERROR: module not found: `zpios'
==> ERROR: module not found: `spl'
==> ERROR: module not found: `splat'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.3.3-3-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
  -> Running build hook: [keyboard]
  -> Running build hook: [zfs]
Build spl module for 4.3.3-3-ARCH kernel... Done.
Build zfs module for 4.3.3-3-ARCH kernel... Done.
==> ERROR: module not found: `zavl'
==> ERROR: module not found: `znvpair'
==> ERROR: module not found: `zunicode'
==> ERROR: module not found: `zcommon'
==> ERROR: module not found: `zfs'
==> ERROR: module not found: `zpios'
==> ERROR: module not found: `spl'
==> ERROR: module not found: `splat'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.

I thought the dkms process was supposed to automate this process?  Am I totally wrong on this account? I obviously don't quite understand the process in setting this up.

Offline

#2 2016-01-24 21:49:10

LeoFa
Member
From: Netherlands
Registered: 2014-10-14
Posts: 35

Re: ZFS DKMS with upgrading kernels

it's a pacman issue with dkms, for now you have to do a mkinitcpo -p linux every time after upgrade of the kernel unfortunately, in future pacman releases pacman 5.0 we will have HOOKS so you can automate the process.

Offline

#3 2016-01-25 03:16:46

kevdog
Member
Registered: 2013-01-26
Posts: 46

Re: ZFS DKMS with upgrading kernels

No I did mkinitcpio -p linux during the process listed above -- I still get the message about the modules not being found.  I'm obviously missing a step here for sure.  I just haven't found much information out there that would help me debug this problem, other than just starting over.

Offline

#4 2016-01-25 20:13:03

LeoFa
Member
From: Netherlands
Registered: 2014-10-14
Posts: 35

Re: ZFS DKMS with upgrading kernels

try using the dmz repo for now, for me the dkms packages also failed sad , I've updated the wiki a bit with a warning and a couple of tips ithink might be usefull.

https://wiki.archlinux.org/index.php/ZFS#General

Tip: You can downgrade your linux version to the one from demz-repo-core repo if your current kenel is newer. More info on Downgrading_packages.

Warning: It is advised to use the above methods first before trying the DKMS route. This method currently does not seem to work correctly (at least for me), with pacman not triggering DKMS after a kernel upgrade.

Tip: add an IgnorePkg = package entry to /etc/pacman.conf to prevent these packages from upgrading when doing a regular update.

unfortunately the repo way is tied to a specific kernel,  could not figure out how to use it with linux-grsec or a other kernel; not possible with the repo i think.

Offline

#5 2016-02-01 17:58:01

akgrant0710
Member
Registered: 2015-12-30
Posts: 25

Re: ZFS DKMS with upgrading kernels

kevdog wrote:

...

I thought the dkms process was supposed to automate this process?  Am I totally wrong on this account? I obviously don't quite understand the process in setting this up.

I'm with you in not yet understanding the process, and will soon, nervously, go through my first kernel upgrade since installing zfs, however...

Do you have the dkms service enabled?

sudo systemctl enable dkms.service

Offline

Board footer

Powered by FluxBB