You are not logged in.

#1 2020-11-17 02:24:09

Gekume123
Member
Registered: 2020-09-19
Posts: 15

ZFS Kernel modules not loaded

I'm running ZFS as root on archlinux. I was using the default linux kernel package, with linux-headers and zfs-dkms installed. However, I wanted to try out a custom kernel, Linux-Xanmod from the AUR. I compiled it, ran mkinitcpio, and installed it. When I attempt to boot with this kernel, I get a kernel panic, no keyboard input, and a message after the ZFS hook runs that "zfs kernel modules are not loaded. Use modprobe zfs to load them". However I obviously can't type anything to fix it because kernel panic.

When I type dkms status when booted to linux kernel, I see that the zfs module is loaded for both kernels, same zfs version and linux kernel version. So the module should be working. I also have /etc/modules-load.d/zfs.conf to make it load automatically as well.

Any help would be greatly appreciated, thanks smile

Offline

#2 2020-11-17 02:30:25

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 8,047

Re: ZFS Kernel modules not loaded

I'm guessing your bootloader is misconfigured and loading the wrong initramfs?

Offline

#3 2020-11-17 02:45:54

Gekume123
Member
Registered: 2020-09-19
Posts: 15

Re: ZFS Kernel modules not loaded

Thanks, I had forgotten to switch vmlinuz to the right one, but i still get the "zfs modules are not loaded" message and then kernel panic.

Offline

#4 2020-11-17 02:57:37

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 8,047

Re: ZFS Kernel modules not loaded

And you're sure it built when you installed the kernel headers for the custom kernel?

Offline

#5 2020-11-17 03:05:30

Gekume123
Member
Registered: 2020-09-19
Posts: 15

Re: ZFS Kernel modules not loaded

Yes, i even just reinstalled the headers, it runs

dkms remove --no-depmod -m zfs -a 0.8.5 -m 5.9.8-xanmod1-1

  and then the same command but dkms install.

And dkms status shows:
zfs, 0.8.5, 5.9.8-xanmod1-1, x86_64: installed
zfs, 0.8.5, 5.9.8-arch1-1, x86_64: installed

So they're essentially identical. Doesn't make sense why one works and one doesn't.

Offline

#6 2020-11-17 03:06:15

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 8,047

Re: ZFS Kernel modules not loaded

Then post your bootloader config, I still suspect something there

Offline

#7 2020-11-17 03:14:20

Gekume123
Member
Registered: 2020-09-19
Posts: 15

Re: ZFS Kernel modules not loaded

I hope this is what you're looking for:

(efi/loader/entries/xanmod.conf)
https://paste.centos.org/view/91f36e27

(efi/loader/entries/default.conf)
https://paste.centos.org/view/7976b8b0

Thanks

Last edited by Gekume123 (2020-11-17 03:14:50)

Offline

#8 2020-11-17 13:56:07

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 8,047

Re: ZFS Kernel modules not loaded

That does look fine.

Take a look at what's in the initramfs (lsinitcpio), is the zfs module there?

Offline

#9 2020-11-17 16:45:41

Gekume123
Member
Registered: 2020-09-19
Posts: 15

Re: ZFS Kernel modules not loaded

Hi, i checked the normal linux initramfs and then xanmod initramfs and grepped for zfs and the output is identical, they both have the exact same zfs related things loaded.

https://paste.centos.org/view/7ec73006

Offline

#10 2020-11-17 17:18:12

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,076
Website

Re: ZFS Kernel modules not loaded

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2020-11-17 18:48:59

loqs
Member
Registered: 2014-03-06
Posts: 12,093

Re: ZFS Kernel modules not loaded

If you add the boot parameter break=postmount or break=premount does that drop you to a shell loaded from the initrd?

Offline

#12 2020-11-17 19:00:00

Gekume123
Member
Registered: 2020-09-19
Posts: 15

Re: ZFS Kernel modules not loaded

Hi, yes with pre-mount break I get shell access. If i type /sbin/modprobe zfs it says loaded module.

However typing exit gives me "importing pool zroot. Cannot import zroot no such pool or dataset"


Edit: i noticed that in /dev/disk/by-id my samsung sata ssd does not show up. Not sure why that is.

Last edited by Gekume123 (2020-11-17 19:14:27)

Offline

#13 2020-11-17 20:16:49

loqs
Member
Registered: 2014-03-06
Posts: 12,093

Re: ZFS Kernel modules not loaded

Offline

#14 2020-11-17 21:05:28

Gekume123
Member
Registered: 2020-09-19
Posts: 15

Re: ZFS Kernel modules not loaded

Thanks, i tried that but it still didn't work. sad I'm not sure what would be different between these 2 kernels for my drive to not show up.

Last edited by Gekume123 (2020-11-17 21:10:38)

Offline

Board footer

Powered by FluxBB