Hello, this is a non-production friendly guide to how to get proxmox to work with ZFS2.0 and persistent L2ARC cache for those of you who use GPU passthrough and use proxmox as basis for a workstation that is shutdown every day.
Please read it all before you venture down this path.
It can be noted, I have been down this path since RC2 any issues or crashes.
Please read it all before you venture down this path.
It can be noted, I have been down this path since RC2 any issues or crashes.
Code:
Notes: For Debian 10: it is not required to remove packages prior to install of 2.0 unless a previous version of ZFS was installed on the machine. Read the last command of this guide before continuing.
Note2: If you are using your proxmox host for GPU passthrough it is adviced to set options zfs l2arc_mfuonly = 1 to not fill the cache with all sorts of crap if you are doing backups. It will most likely trash your SSD unless it is enterprise grade SLC within a few weeks.
Note3: This does NOT work for a proxmox or debian install with a root zfs pool!!!!!!!!!
WARNING: NOT SAFE FOR PRODUCTION
Here are the commands to enter in order for persistent l2arc to work with proxmox (debian based)
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev pve-headers python3 python3-dev python3-setuptools python3-cffi libffi-dev git
Note: Beware of apt-get upgrade upgrading ZFS modules... If upgrade does upgrade ZFS modules it is adviced to reinstall the packages custom to ZFS 2.0 BEFORE rebooting! This also applies to Proxmox kernel upgrades.
Enjoy!
git clone https://github.com/zfsonlinux/zfs
cd zfs
git checkout zfs-2.0.0-rc7
sh autogen.sh
./configure
make deb
apt-get remove zfsutils-linux
rm kmod-zfs-devel_2.0.0-0_amd64.deb
dpkg -i *.deb
apt-get install zfsutils-linux
Last command removes some of the 2.0 installed packages but without this the pool wont mount on reboot. It does not limit the functionality of ZFS2 to my knowledge. Press Y
Read this for reason: https://github.com/openzfs/zfs/issues/10941
Last edited: