You are not logged in.
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
Offline
I'm guessing your bootloader is misconfigured and loading the wrong initramfs?
Online
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
And you're sure it built when you installed the kernel headers for the custom kernel?
Online
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
Then post your bootloader config, I still suspect something there
Online
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
That does look fine.
Take a look at what's in the initramfs (lsinitcpio), is the zfs module there?
Online
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.
Offline
Mod note: Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
If you add the boot parameter break=postmount or break=premount does that drop you to a shell loaded from the initrd?
Online
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
Have you tried ZFS#Pool_cannot_be_found_while_booting_from_SAS/SCSI_devices?
Online
Thanks, i tried that but it still didn't work. 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