ZFS on RHEL

RHEL does not support ZFS on GNU/Linux natively. Therefore, we need to install it from a third-party repository.

Here is the link to the original OpenZFS documentation.

Further, I’ll provide the steps required to install ZFS on the RHEL 10 distro.

DKMS variant

subscription-manager repos --enable codeready-builder-for-rhel-10-$(arch)-rpms

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm

dnf install https://zfsonlinux.org/epel/zfs-release-3-0$(rpm --eval "%{dist}").noarch.rpm

yum install -y kernel-devel

yum install -y zfs

echo zfs >/etc/modules-load.d/zfs.conf

kABI-tracking kmod

Alternatively, there is a kABI-tracking kmod variant of the ZFS module. Still, I’ve faced a situation where the kABI kmod didn’t keep up with the upstream when upgrading to newer minor distro versions. Thereby I recommend to stick to the DKMS option.