You are not logged in.

#1 2021-05-06 04:44:19

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

UPDATE:

Once I realized my mistake I decided to reinstall with the LTS kernel which works great.

***

Just tried upgrading from Linux 5.11.16 to 5.12.1 on my OpenZFS system and now I am having to reinstall.

Others may have a better experience but the OpenZFS web site states that Linux up to 5.11 is supported.

Last edited by lenhuppe (2022-03-07 22:50:05)

Offline

#2 2021-05-06 07:43:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,020

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

The archzfs repo that exists for this purpose does only ship 5.11 packages, you probably want to use a kernel from there if you rely on ZFS.  https://wiki.archlinux.org/title/ZFS#Installation

Offline

#3 2021-05-06 07:43:25

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,418

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

I believe OpenZFS will eventually catch up with the newer kernel. It just lags behind support.
It is one reason I personally stopped using ZFS as I had issues with kernel upgrades.

Offline

#4 2021-05-06 12:01:06

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

V1del wrote:

The archzfs repo that exists for this purpose does only ship 5.11 packages, you probably want to use a kernel from there if you rely on ZFS.  https://wiki.archlinux.org/title/ZFS#Installation

I'm trying to switch to the lts kernel but mkinitcpio fails. When everything is in sync I can do  the following:

# packstrap /mnt base linux linux-headers
... later in chroot after enabling the archzfs repo
# pacman -S zfs-dkms
... I then do my mods to /etc/mkintcpio.conf
# mkinitcpio -p linux

Here is what I get:

# mkinitcpio -p linux
/usr/bin/mkinitcpio: line 268: /etc/mkinitcpio.d/linux.preset: No such file or directory
==> ERROR: Failed to load preset: '/etc/mkinitcpio.d/linux.preset'

I have tried several modifications to mkinitcpio

# mkinitcpio -P linux
# mkinitcpio -P
# mkinitcpio

These all run but the system will not boot. There is something about the lts kernel that I am missing.

The question is what?

Offline

#5 2021-05-06 12:48:55

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,418

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

# packstrap /mnt base linux linux-headers

There is no lts kernel here.
Also you didn't have to reinstall. You could've just downgraded to the old kernel and still install the lts kernel.

Offline

#6 2021-05-06 13:34:57

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

d_fajardo wrote:
# packstrap /mnt base linux linux-headers

There is no lts kernel here.
Also you didn't have to reinstall. You could've just downgraded to the old kernel and still install the lts kernel.

My apologies if I was not completely clear.

I am trying to switch from:

# packstrap /mnt base linux linux-headers

to:

# packstrap /mnt base linux-lts linux-lts-headers

That change is what caused the 'mkinitcpio -p' to fail

Offline

#7 2021-05-06 13:36:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,553

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

If you don't have the 'linux' kernel installed, why are you trying to use it's preset?

Offline

#8 2021-05-06 14:14:39

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

Scimmia wrote:

If you don't have the 'linux' kernel installed, why are you trying to use it's preset?


I tried the the following:

# mkinitcpio -p linux-lts

There were no errors but the system will not boot

Offline

#9 2021-05-06 14:15:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,553

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

You have to give a lot more information than that.

Offline

#10 2021-05-06 14:40:46

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

Scimmia wrote:

You have to give a lot more information than that.

I have an installation script that I created for myself and I need to switch to the linux-lts kernel.

In my script I am able to pacstrap:

 # pacstrap /mnt base linux linux-headers linux-firmware

Later after enabling the archzfs repo in chroot I install zfs:

# pacman -S zfs-dkms

Once the module compile is finished I modify mkinitcpio.conf and run it:

# mkinitcpio -p linux

That works as expected.

Today I tried to make the following modifcations:

 # pacstrap /mnt base linux linux-headers linux-firmware
--> # pacstrap /mnt base linux-lts linux-lts-headers linux-firmware
# mkinitcpio -p linux
--> # mkinitcpio -p linux-lts

I get no error messages but the system will not boot

I don't know what step I am missing

Last edited by lenhuppe (2021-05-06 14:42:33)

Offline

#11 2021-05-06 14:47:27

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,418

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

This is probably what you need:
https://aur.archlinux.org/packages/zfs-linux-lts/
It's in V1del's link above.

Offline

#12 2021-05-06 14:49:35

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

d_fajardo wrote:

This is probably what you need:
https://aur.archlinux.org/packages/zfs-linux-lts/
It's in V1del's link above.

I tried that and got the same results as with zfs-dkms ... no error messages but the system will not boot.

Offline

#13 2021-05-06 15:25:18

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

d_fajardo wrote:

I believe OpenZFS will eventually catch up with the newer kernel. It just lags behind support.
It is one reason I personally stopped using ZFS as I had issues with kernel upgrades.

I can relate to what you are saying. I got really tired of dealing with the zfs-linux and kernel packages going out of sync. Then I switched from zfs-linux to zfs-dkms and that problem went away. I have to wait a few minutes for the zfs module to compile but its better than waiting a few days for the zfs-linux package to update. The next step is to use the linux-lts kernel since its supported by OpenZFS. In my case I really don't need to run the bleeding edge kernel. I'm a graduate student and I really depend upon my Arch box.

I suggest you give Arch Linux on OpenZFS another look. I have an install script that I created which makes installation a breeze. That is once I get beyond this hurdle.

Offline

#14 2021-05-06 15:29:38

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,418

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

I suggest you give Arch Linux on OpenZFS another look.

It's ok. I'm happy.

Offline

#15 2021-05-06 15:32:31

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,418

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

Offline

#16 2021-05-06 16:52:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,553

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

You missed my point. You keep saying that it will not boot, but that doesn't tell us anything. Tell us what you're actually seeing.

Offline

#17 2021-05-06 18:15:49

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

Scimmia wrote:

If you don't have the 'linux' kernel installed, why are you trying to use it's preset?

You lead me to the answer. Once I changed that parameter I only needed to change my bootloader entry accordingly.

I needed to use 'mkinitcpio -p linux-lts'

I will close the post and provide an explanation of what I learned for others to see.

Thanks

Offline

#18 2021-05-06 18:20:02

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

Scimmia wrote:

You missed my point. You keep saying that it will not boot, but that doesn't tell us anything. Tell us what you're actually seeing.

My apologies for being difficult to understand sometimes.
I am autistic and don't always communicate very well.
I came here because I knew I could count on the community.
We are up and running again.



You all rock !

Offline

#19 2021-05-06 18:56:08

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

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

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

#20 2021-05-06 20:41:45

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

The 5.12 kernel should work fine now that I pushed a couple of backports to the AUR package for zfs-dkms which fix compilation.

Users of the archzfs repository will need to wait on archzfs to separately update, I guess.

More generally, see https://github.com/openzfs/zfs/pull/12009

Last edited by eschwartz (2021-05-06 20:42:21)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#21 2022-02-22 20:19:42

cheeseburger
Member
Registered: 2021-12-28
Posts: 9

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

lenhuppe wrote:

I got really tired of dealing with the zfs-linux and kernel packages going out of sync. Then I switched from zfs-linux to zfs-dkms and that problem went away. I have to wait a few minutes for the zfs module to compile but its better than waiting a few days for the zfs-linux package to update. The next step is to use the linux-lts kernel since its supported by OpenZFS.

Sorry for bumping this old thread, but what combination would you suggest using to get the most stability, given that I don't care about compile times? Using the LTS kernel with zfs-linux-lts or with zfs-dkms? I imagine using zfs-linux-lts would cause delays in kernel updates, but I'm not sure how that would play out. Would the upgrade fail altogether or would zfs fail to compile or install after upgrading linux-lts?

Offline

#22 2022-02-22 21:02:22

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 188
Website

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

cheeseburger wrote:
lenhuppe wrote:

I got really tired of dealing with the zfs-linux and kernel packages going out of sync. Then I switched from zfs-linux to zfs-dkms and that problem went away. I have to wait a few minutes for the zfs module to compile but its better than waiting a few days for the zfs-linux package to update. The next step is to use the linux-lts kernel since its supported by OpenZFS.

Sorry for bumping this old thread, but what combination would you suggest using to get the most stability, given that I don't care about compile times? Using the LTS kernel with zfs-linux-lts or with zfs-dkms? I imagine using zfs-linux-lts would cause delays in kernel updates, but I'm not sure how that would play out. Would the upgrade fail altogether or would zfs fail to compile or install after upgrading linux-lts?

I can tell you that since standardizing on the LTS kernel I have had no out-of-sync issues with Linux and OpenZFS. When the LTS kernel went from 5.10.x to 5.15.x zfs-dkms compiled with no issues. However there was a time when the LTS kernel versioned, and there was an issue with dkms support which prevented me from upgrading. I found this out on my test system so it did not cause me any down time. In that case switching from zfs-dkms to zfs-linux-lts may have saved the day. If you are not concerned with compile times go ahead and use the zfs-dkms package. If you create your own recovery system like I did you can always switch back and fourth between zfs-dkms and zfs-linux-lts to see which you prefer. The LTS kernel is well supported by OpenZFS so getting updates to zfs-linux-lts should not take a long time the way that it sometimes did when I used zfs-linux.

Offline

#23 2022-04-16 22:29:26

cheeseburger
Member
Registered: 2021-12-28
Posts: 9

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

If anybody ends up in this thread for my same reason and like me they prefer using prebuilt modules instead of zfs-dkms, they can just follow the instructions listed here after enabling the archzfs repo. The kernel won't be able to be upgraded sometimes because ZFS packages are lagging behind, for me it's not a big deal.
You can then use these commands to upgrade your system:

pacman -Syu
INST_LINVAR=$(sed 's|.*linux|linux|' /proc/cmdline | sed 's|.img||g' | awk '{ print $1 }')
pacman -Sy --needed --noconfirm ${INST_LINVAR} ${INST_LINVAR}-headers zfs-${INST_LINVAR} zfs-utils

Packages other than the kernel will be upgraded even if ZFS packages are not up to date, whereas the kernel will fail to upgrade until ZFS packages are updated.

Offline

#24 2022-04-17 10:47:22

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

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

pacman -Sy

Please give good advice and don't use -Sy .
In case you feel this is one of the very few cases where -Sy is necessary, explain why it is.


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)

Online

#25 2022-04-18 18:43:29

cheeseburger
Member
Registered: 2021-12-28
Posts: 9

Re: SOLVED - Linux 5.12.1 not supported by OpenZFS 2.0.4

Right, I removed that and modified the script to work even when ZFS requires a kernel version newer than the one installed but older than the latest from Arch's repository.

sudo pacman -Syu

INST_LINVAR=$(sed 's|.*linux|linux|' /proc/cmdline | sed 's|.img||g' | awk '{ print $1 }')
INST_LINVER=$(pacman -Si zfs-${INST_LINVAR} | grep 'Depends On' | sed "s|.*${INST_LINVAR}=||" | awk '{ print $1 }')

if [ ${INST_LINVER} = $(pacman -Qi ${INST_LINVAR} | grep Version | awk '{ print $3 }') ]; then
 # kernel version needed by zfs is the same as installed
 sudo pacman -S --needed --noconfirm zfs-${INST_LINVAR} zfs-utils
elif [ ${INST_LINVER} = $(pacman -Si ${INST_LINVAR} | grep Version | awk '{ print $3 }') ]; then
 # kernel version needed by zfs is the latest from arch repos
 sudo pacman -S --needed --noconfirm ${INST_LINVAR} ${INST_LINVAR}-headers zfs-${INST_LINVAR} zfs-utils
else
 # kernel version needed by zfs is newer than installed but older than the latest from arch repos
 # the following command will break dependencies
 sudo pacman -Ud --needed \
 https://archive.archlinux.org/packages/l/${INST_LINVAR}/${INST_LINVAR}-${INST_LINVER}-x86_64.pkg.tar.zst \
 https://archive.archlinux.org/packages/l/${INST_LINVAR}-headers/${INST_LINVAR}-headers-${INST_LINVER}-x86_64.pkg.tar.zst
 sudo pacman -S --needed --noconfirm zfs-${INST_LINVAR} zfs-utils
fi

Offline

Board footer

Powered by FluxBB