Linux 6.6 and zfsUnstable

Hi All,

not so much seeking help just documenting my errors for if I find a solution.

checking whether bops->release() is void... configure: error: 
        *** None of the expected "bops->release()" interfaces were detected.
        *** This may be because your kernel version is newer than what is
        *** supported, or you are using a patched custom kernel with
        *** incompatible modifications.
        ***
        *** ZFS Version: zfs-2.1.12-1
        *** Compatible Kernels: 3.10 - 6.3
        
error: builder for '/nix/store/267frdwfcpzff3dzm7lygyhdqayfka19-zfs-kernel-2.1.12-6.6.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/6khp3bqj4dqhrcsyb8dnp95q5cp093n1-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5vapc9lyp6xnhvnb9kkgcw23m3nlnvqp-X-Restart-Triggers.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c6lkh3z81apc9a2xik6pm5cdgxr0ss9h-dbus-1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yaxrg54hvk5igg2plgivqm4xkb3hl43r-etc-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xywxa2p27fvnaiww6fwfpdm6wwxr5ha7-set-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nlpkz24jjgr08d7jwz6xqp0qqwnhgili-unit-accounts-daemon.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jmmjd0caj7a2c1n200xgsirnfq5xwrc6-unit-systemd-fsck-.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0cvlm276fhi44h1kkg3saaz4b05qlh2b-X-Restart-Triggers.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lwa4x8jhsaack6wp0vgkzjln7rsayp77-etc-profile.drv' failed to build
error: 1 dependencies of derivation '/nix/store/55x5c62av4zvgcpchjh06nlzrswpfhv7-etc-zshenv.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qp0ywwai5k8fb6aa7lxbxpbyd3pwr12f-unit-polkit.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1bira30jp0z621pfzymfjhbgv0a1nmh1-unit-dbus.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/43bddzr27d400jgfnnbxxs3jw9cmn02z-unit-dbus.service.drv' failed to build
error: 4 dependencies of derivation '/nix/store/j6x9nbsad2hika0xmlxlrhkpa30h8a05-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k56ys5ajdxsr75s72z36qnri3bacryz0-user-units.drv' failed to build
error: 8 dependencies of derivation '/nix/store/9shw1bwpacnkhbm9axvikfp47raixr4d-etc.drv' failed to build
error: 2 dependencies of derivation '/nix/store/qjwn4vndw5x2szlr38s5k68gw0142d96-nixos-system-valhalla-23.05.4720.78f3a4ae19f0.drv' failed to build

Expected causes:

boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.zfs.enableUnstable = true;
pkgs.linuxKernel.packages.linux_latest_libre.zfs

Known knowledge issues:

  • Not yet sure the meaning between linuxKernel libre, zen, and the other label. could be an issue.

Hardware:

Motherboard: ASUSTeK COMPUTER INC. TUF GAMING B660-PLUS WIFI D4
Kernel: 6.5.9
CPU: CPU: 13th Gen Intel i7-13700K (24) @ 5.300GHz
GPU: AMD ATI Device 747e | this is Radeon Sapphire 7700 XT PULSE
GPU: Intel Raptor Lake-S GT1 [UHD Graphics 770]
Memory: 21413MiB / 64051MiB

and so begins my decent into figuring out what is causing the conflict.

channels include unstable

What are you trying to achieve here?

You seem to be trying to use ZFS with a kernel that is not supported by ZFS yet. Don’t, it doesn’t work.

Your snippet is not valid Nix syntax. Just post your entire config, that makes things easier.

My recommendation is to use the regular Linux kernel (don’t set boot.linuxPackages, the default is the correct one) and then simply put "zfs" in boot.supportedFilesystems.

As you can see, 6.6 won’t cut it.

Nice, I have found the reference to the wrong nixpkg version for zfs and will attempt to create my own package that pulls the correct version as I compile against Linux 6.6

expect this to fail but it is all part of experimental fun for me.

Attempting to debug zfs issues on the 6.6 kernel to find any issues for future deployments. prior to rollout of changes if they get added to nixos unstable.

my first issue is trying to find out which reference to the zfs commands are triggering the not recent version as zfs should be using 2.2 not 2.1 in zfsUnstable.

Even with using 2.2, I can already tell you that ZFS won’t work on 6.6. I think the 6.6 compatibility code is only in master, you are free to deploy it on your machine, just want to ensure you understand that deploying filesystem code that is untested can eat your data and we cannot do anything about it, neither the ZFS developers. If this is clear for you, please proceed and enjoy the journey! :slight_smile:

1 Like

yeah I know this is running in a vm with unused zpool