As OpenZFS 2.0 has now been released some people will be interested in getting it up and running to play around with in FreeBSD 12.2 instead of waiting for it being included in FreeBSD 13 by default.
What would be required to get this working? The old ZFS system needs to be disabled and replaced by the OpenZFS kernel mod and the OpenZFS userland tools. Both these ports are slightly outdated at the moment (going by the date it would probably correspond to rc4) but that is presumably only a matter of time.
I understand that the kernel can be recompiled without the legacy ZFS implementation by putting WITHOUT_ZFS in /etc/src.conf. Is that correct?
In /boot/loader.conf we need to remove zfs_load=“YES” and replace it with openzfs_load="YES". Is that correct?
In /etc/rc.conf we need to remove zfs_enable=“YES” and replace it with openzfs_enable="YES”. We also need to add kld_list="openzfs". Is that correct?
The helpful OpenZFS guide on installation on FreeBSD suggests to make sure you correct the setting of PATH as when using the version from ports the ZFS utilities will be in /usr/local/sbin/ and not /sbin/.
Upgrading the pool is obviously an irreversible process so afterwards you can’t take the pool back to stock FreeBSD 12.2 or earlier. Is there some special stuff required to import and/or upgrade the old pool? Can you import but not upgrade the pool and expect it to work (without the new features obviously)?
What is the deal with booting from an OpenZFS volume? The OpenZFS FAQ suggests that booting not available until FreeBSD 13. Is that correct or does the FAQ just say that because it doesn’t want to complicate things by talking about the ports?
What have I missed? Any other things to bear in mind?
What would be required to get this working? The old ZFS system needs to be disabled and replaced by the OpenZFS kernel mod and the OpenZFS userland tools. Both these ports are slightly outdated at the moment (going by the date it would probably correspond to rc4) but that is presumably only a matter of time.
I understand that the kernel can be recompiled without the legacy ZFS implementation by putting WITHOUT_ZFS in /etc/src.conf. Is that correct?
In /boot/loader.conf we need to remove zfs_load=“YES” and replace it with openzfs_load="YES". Is that correct?
In /etc/rc.conf we need to remove zfs_enable=“YES” and replace it with openzfs_enable="YES”. We also need to add kld_list="openzfs". Is that correct?
The helpful OpenZFS guide on installation on FreeBSD suggests to make sure you correct the setting of PATH as when using the version from ports the ZFS utilities will be in /usr/local/sbin/ and not /sbin/.
Upgrading the pool is obviously an irreversible process so afterwards you can’t take the pool back to stock FreeBSD 12.2 or earlier. Is there some special stuff required to import and/or upgrade the old pool? Can you import but not upgrade the pool and expect it to work (without the new features obviously)?
What is the deal with booting from an OpenZFS volume? The OpenZFS FAQ suggests that booting not available until FreeBSD 13. Is that correct or does the FAQ just say that because it doesn’t want to complicate things by talking about the ports?
What have I missed? Any other things to bear in mind?
Last edited: