OpenZFS

OpenZFS, formerly ZFS on Linux, is a project aimed at bringing the ZFS file system to the Linux kernel.

If using a BSD, ZFS should be supported out of the box.


Installation

Arch

The first step is almost always downgrading the kernel.

version=major.minor.patch-release
sudo pacman -U https://archive.archlinux.org/packages/l/linux-lts/linux-lts-$version-x86_64.pkg.tar.zst https://archive.archlinux.org/packages/l/linux-lts-headers/linux-lts-headers-$version-x86_64.pkg.tar.zst
sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg

To determine which kernel version is supported, try installing ZFS from the unofficial repository.

sudo pacman-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
sudo pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
sudo bash -c 'echo "[archzfs]\nServer = https://archzfs.com/$repo/$arch\n" >> /etc/pacman.conf'
sudo pacman -Syu archzfs-linux

If the last command gives an error about an unsatisfiable dependency involving the kernel, the indicated version is what to use in the above snippet.

With a supported kernel and the ZFS module installed, try booting.


CategoryRicottone