How to migrate from UFS to ZFS

I have working FreeBSD 15.0-RELEASE installation on a disk which is using UFS.

How would I go about converting it to ZFS?

Can I back it up elsewhere and then restore it? Or do I need to install FreeBSD to create a ZFS system on the disk first in the first place?
 
Or do I need to install FreeBSD to create a ZFS system on the disk first in the first place?
That's the cleanest and easiest to do. It's all doable by hand but there's a lot of ZFS datasets (with specific options) that should be created and the installer does it all automagically for you. And it's always nice to start with a fresh new install every once in a while. Definitely create a backup of the old system, you can selectively restore some items from it, like specific configuration files. Files from your home directory perhaps.
 
I encountered the same situation.
I backed up my data.
The system configuration /usr/local/* & co.
I reinstalled the system in new filesystem zfs and restored datas and the third-party packages from a .txt list
 
Back
Top