Hi all,
I’ve been using OpenSUSE Tumbleweed for many years and have been quite content with the rolling release model. It just works and my software is always fresh. Some days ago, I started upgrading my private storage (to 16 TB), so I wanted to switch from XFS to ZFS as I’ve been collecting a lot of (very positive) ZFS experience on Sun/Oracle Solaris 11.4 at work, especially regarding data integrity. So I know something about Tumbleweed and ZFS, but I don’t have any experience with ZFS on Linux.
Just a little note in advance: I don’t want to boot from ZFS, my boot SSD is (and will stay for now) a plain EXT4 filesystem.
So, in order to get ZFS support on Tumbleweed, I installed it according to the steps mentioned in https://en.opensuse.org/OpenZFS:
zypper addrepo https://download.opensuse.org/repositories/filesystems/openSUSE_Tumbleweed/filesystems.repo
zypper refresh
zypper install zfs
My problem: After issuing a “zypper dup” today, Tumbleweed upgraded to kernel 5.18 and all ZFS support seems to be gone. I even cannot re-install “zfs-kmp-default”:
steffen@magpie:~> sudo zypper in zfs-kmp-default
[sudo] password for root:
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: nothing provides 'kernel-uname-r = 5.17.9-1-default' needed by the to be installed zfs-kmp-default-2.1.4_k5.17.9_1-1.69.x86_64
Solution 1: do not install zfs-kmp-default-2.1.4_k5.17.9_1-1.69.x86_64
Solution 2: break zfs-kmp-default-2.1.4_k5.17.9_1-1.69.x86_64 by ignoring some of its dependencies
**Choose from above solutions by number or cancel [1/2/c/d/?] (c):**
So, obviously, the kernel which has been installed by Tumbleweed’s “zypper dup” (5.18.2-1-default) is too fresh for the most recent version of ZFS on Linux. The older kernel on my system is 5.18.1-1-default. Even compiling zfs-2.1.4 from the sources fails due kernel 5.18.
So I try to install kernel 5.17.9-1-default, but it does not seem to be available in the version of Tumbleweed anymore:
steffen@magpie:~> sudo zypper in kernel-default-5.17.9-1-default
Loading repository data...
Reading installed packages...
'kernel-default-5.17.9-1-default' not found in package names. Trying capabilities.
No provider of 'kernel-default-5.17.9-1-default' found.
Resolving package dependencies...
Nothing to do.
Of course, I might be able to get kernel 5.17 from somewhere (or even compile it) and get access back to my zpool. And even if this didn’t work, my data would still be on the old XFS storage, where I could get everything back, so no actual data loss here. Hence, my question is rather of a generic nature: How can I make sure that a kernel update does not break anything in Tumbleweed regarding ZFS? I just would like to have a consistent ZFS-aware rolling release system as I had before. It is not a problem for me to use a slightly older kernel, but I don’t want to have it in my mind to check it manually with each update. So I would like to know if there is any possibility to tell Tumbleweed’s package manager that it should only install kernels which have a suitable “zfs-kmp-default”?
While I can play with “multiversion.kernels = latest,latest-1,running” in /etc/zypp/zypp.conf" and put a “latest-2” there, I am not sure if it guarantees me to have always ZFS support then.
I am looking forward to reading any helpful insights and experience reports of running ZFS on OpenSUSE Tumbleweed. Thank you very much in advance!
Kind regards,
Steffen