Migrate from TrueNAS Core to vanilla FreeBSD

Switched off TrueNAS, now running vanilla FreeBSD on my NAS! 🥳
Congrats!

I completed work on my Ansible collection, which I shared here (and also published to Ansible Galaxy) and also recently managed my own migration to vanilla FreeBSD 15.1, away from a very-far-from-trivial TrueNAS CORE deployment, and I just couldn't be happier!

I am, for the time being, maintaining the possibility of booting back into TrueNAS should I find a need to, but I can only imagine that once my upgrade to 15.2 is complete and validated, I'll feel comfortable enough to consider this migration a complete success and, therefore, to finish cleaning up every remaining bit of TrueNAS off my system (deleting its datasets, renaming the boot pool, upgrading all pools, etc.), after, of course, having paid the necessary and ritual respects to that OS which did serve me pretty well for many years.
 
Using Sylve in place of now dead TrueNAS CORE makes a lot of sense - web GUI for managing ZFS pools/datasets/snapshots along with (already implemented or planned) NFS/SMB/other sharing ... not to mention VMs and Jails and even clustering.

Unfortunately zVault - https://zvault.io/ - as much as I liked the idea - I believe stopped the development since some time.

One of my friends uses latest zVault as his home NAS - along with at least two VMs - one for HomeAssistant and something else that I do not remember - and it still works like a charm w/o any issues - but no new releases will make this a problem in the future.

He initially 'upgraded' to TrueNAS Scale as GUI suggested - but he only got instability and problems - so he asked me what to do - I suggested zVault as it was quite 'alive' back then - but in the future I will suggest (and probably help him with migration) to Sylve.
Sylve is sweet.

Homelab is now 2 sylve nodes, all VMs/jails on one, cron:ed zfs snapshots and syncios/victorialogs for snapshot backup to second node.

Creates grandpa-father-child snapshots with 3 months retention with snaps every hour. Works exactly like Netapp did when I had those at work.

To top it off I stuck extra nics in the sylve nodes so transfers go via a SAN on those extra nics, keeping the rest of the network clean.

Using Victorialogs to inspect ok/error and queries that with grafana.

The only thing missing is hot failover in sylve. As it is now it’s warm failover, ie stop/start.

Also I have a qnap on samba used to store documents and pictures for the users in the network, I just added nfs to those shares and added them to syncios and bam, backup done. No need for a jail/vm/physical to run a nas. And, yes, the qnap is dual homed as well.

Grafana picked up the status for the backup immediately as well

/grandpa
 
Congrats! Are you using WebZFS to manage your pools?

I am working on a blog series as I convert:

Part 0 was inital planning for the project
Part 1 was creating a separate FreeBSD15.1 boot env on my zVault NAS
Part 2 was booting in to the new BE, initial setup of the 15.1 BE and copying or creating files
Part 3 was provisioning the BE and installing webzfs, and getting it ready to take over
Part 4 will be to import the data pool, datasets, and start setting up the zfs housekeeping like snapshots and replication
Part 5 will be setting up nfs. I don't use iSCSI or smb in my use case as everything is either FreeBSD or linux.

I am also looking at incorporating jmpalacios ansible setup as well.
I'm glad my comments reached you! I can only hope my work is useful to others pursuing a similar goal; and, if so, that our various ideas on how to approach it can serve as cross-pollination.
 
I'm glad my comments reached you! I can only hope my work is useful to others pursuing a similar goal; and, if so, that our various ideas on how to approach it can serve as cross-pollination.
Agreed. Happy to work with any of y'all that are pursuing this goal.

It will make me so happy to be out from under the spectre of appliances and middleware. I have a Core box at work, that the middlewared will "just die." This can get really obnoxious because when the middleware dies, it takes any scheduled replications with it. And now that ixsystems has "disappeared" Core, it's time to go...
 
Using Sylve in place of now dead TrueNAS CORE makes a lot of sense - web GUI for managing ZFS pools/datasets/snapshots along with (already implemented or planned) NFS/SMB/other sharing ... not to mention VMs and Jails and even clustering.

I can see sylve as a solution (albeit a bit of a heavy solution) to jails/vms on a NAS. I will say that my use case is shaping a lot of this, and I have never needed a VM on my NAS. I have used jails, so I was planning to just install bastille.

Unfortunately zVault - https://zvault.io/ - as much as I liked the idea - I believe stopped the development since some time.

They were working on a 15 release, but there was a lot of plumbing, and I don't know where they are in this process. And it is still truenas middleware underneath...

One of my friends uses latest zVault as his home NAS - along with at least two VMs - one for HomeAssistant and something else that I do not remember - and it still works like a charm w/o any issues - but no new releases will make this a problem in the future.

This is what I am upgrading from. I have also moved most of my work NAS over to it...It has a couple of wrinkles (the version of the syslog-ng.conf is too old, so i have a script that modifies the version from 3.35 to 4.4, and iscsi for whatever reason does not start). But other than that it has been bulletproof.

He initially 'upgraded' to TrueNAS Scale as GUI suggested - but he only got instability and problems - so he asked me what to do - I suggested zVault as it was quite 'alive' back then - but in the future I will suggest (and probably help him with migration) to Sylve.

Yeah, I would not trust scale with my data. I have learned waaay too much "inside baseball" information to trust it...Plus, I really don't want my trust in ZFS on boot on linux to reside solely with ixsystems...
 
I can see Sylve as a solution (albeit a bit of a heavy solution) to jails/vms on a NAS. I will say that my use case is shaping a lot of this, and I have never needed a VM on my NAS. I have used jails, so I was planning to just install bastille.

Its the same what TrueNAS CORE did - Jails/VMs were also possible there - no one forces You to use them - but You can.
 
Switched off TrueNAS, now running vanilla FreeBSD on my NAS! 🥳
Congrats! I am currently organizing my plan of attack on leaving TrueNAS Core to plain ol vanilla boring and awesome FreeBSD. I intend to use snapshots, SMB, jails and byhve. As of this exact moment I do not plan on using Ansible, iocage, Sylve or any other non-core tooling. The reason is simple: I want an uber long term solution rather than regretting months or years later that XYZ project is no longer being maintained and there is no fork or solid reliable way of parting with XYZ. I also don’t want to learn new syntax, ways of doing something, etc. I am boring!
 
Congrats! I am currently organizing my plan of attack on leaving TrueNAS Core to plain ol vanilla boring and awesome FreeBSD. I intend to use snapshots, SMB, jails and byhve. As of this exact moment I do not plan on using Ansible, iocage, Sylve or any other non-core tooling. The reason is simple: I want an uber long term solution rather than regretting months or years later that XYZ project is no longer being maintained and there is no fork or solid reliable way of parting with XYZ. I also don’t want to learn new syntax, ways of doing something, etc. I am boring!
The only two things I'll say in favor of Ansible are that:
  1. It's a rather solid project, with a very large community, so I can only imagine the risk of it disappearing any time soon is rather slim.
  2. With an Ansible-based approach, there's no tooling that hijacks management of the target system away from you, which is what I ended up sorely disliking from the "appliance" approach of TrueNAS and the like. At most, all you do is craft an "inventory", which in the case of Ansible is basically just a fancy YAML manifest of the fleet you want to configure, and executing a "playbook" that takes said inventory as input results, or at the very least should, in off-the-shelf configurations made to your system (e.g. /etc/rc.conf, /etc/sysctl.conf, /boot/loader.conf, package installations, etc.) that you can always tweak by hand at any time to your heart's content (or, preferably, by adjusting your inventory accordingly).
 
Congrats! Are you using WebZFS to manage your pools?

I am working on a blog series as I convert:

Part 0 was inital planning for the project
Part 1 was creating a separate FreeBSD15.1 boot env on my zVault NAS
Part 2 was booting in to the new BE, initial setup of the 15.1 BE and copying or creating files
Part 3 was provisioning the BE and installing webzfs, and getting it ready to take over
Part 4 will be to import the data pool, datasets, and start setting up the zfs housekeeping like snapshots and replication
Part 5 will be setting up nfs. I don't use iSCSI or smb in my use case as everything is either FreeBSD or linux.

I am also looking at incorporating jmpalacios ansible setup as well.
Thanks! I took a different approach: I bought two new NVME drives to finally fill the last two slots on the motherboard and did a fresh install (mirrored) of FreeBSD.

Since the TrueNAS jails were all FreeBSD 13.3 and 13.5 I decided to recreate them from scratch with bastille rather than importing the old ones. My Syncthing jail is very important to me and I took some time to plan out how to migrate all settings from version 1.27 to 2.1.7 but all went perfectly well. I also have a mariadb, a MiniDLNA and an Adminer jail running.

On TrueNAS I did all file serving with nfsv3. To keep things simple, I set it up on FreeBSD accordingly.

I do not need VMs and love bastille for jail management so I do not see any need for Sylve although I tested it in a test VM and liked it. I also tested webzfs and found it perfect for my needs to do a quick check of my NAS once in a while. I am doing all management over the CLI, though. This way, I stay independent and have learned quite a bit.
I really like you blog series and will look there for some tuning tips.

The next steps for me are:
  • setting up mail alerts
  • creating the rest of the users
  • switching from nfs v3 to v4, also using the sharenfs zfs property
  • setting up a Jellyfin jail to replace MiniDLNA and a lycheeorg jail
  • deciding which datasets to migrate to zfs native encrypted datasets and planning how to do that, though I already did some testing and have rough plan
All in all, I couldn't be happier to have finally taken the initiative to make the change and pulled it off!
 
Congrats! I am currently organizing my plan of attack on leaving TrueNAS Core to plain ol vanilla boring and awesome FreeBSD. I intend to use snapshots, SMB, jails and byhve. As of this exact moment I do not plan on using Ansible, iocage, Sylve or any other non-core tooling. The reason is simple: I want an uber long term solution rather than regretting months or years later that XYZ project is no longer being maintained and there is no fork or solid reliable way of parting with XYZ. I also don’t want to learn new syntax, ways of doing something, etc. I am boring!
Thank you! Your thoughts make perfect sense. I wish you the best of luck with this endeavor!
 
Thanks! I took a different approach: I bought two new NVME drives to finally fill the last two slots on the motherboard and did a fresh install (mirrored) of FreeBSD.

Since the TrueNAS jails were all FreeBSD 13.3 and 13.5 I decided to recreate them from scratch with bastille rather than importing the old ones. My Syncthing jail is very important to me and I took some time to plan out how to migrate all settings from version 1.27 to 2.1.7 but all went perfectly well. I also have a mariadb, a MiniDLNA and an Adminer jail running.

On TrueNAS I did all file serving with nfsv3. To keep things simple, I set it up on FreeBSD accordingly.

I do not need VMs and love bastille for jail management so I do not see any need for Sylve although I tested it in a test VM and liked it. I also tested webzfs and found it perfect for my needs to do a quick check of my NAS once in a while. I am doing all management over the CLI, though. This way, I stay independent and have learned quite a bit.
I really like you blog series and will look there for some tuning tips.

The next steps for me are:
  • setting up mail alerts
  • creating the rest of the users
  • switching from nfs v3 to v4, also using the sharenfs zfs property
  • setting up a Jellyfin jail to replace MiniDLNA and a lycheeorg jail
  • deciding which datasets to migrate to zfs native encrypted datasets and planning how to do that, though I already did some testing and have rough plan
All in all, I couldn't be happier to have finally taken the initiative to make the change and pulled it off!
Forgot to add: smartd, scrub and snapshot (sanoid) schedules are already set up.
 
There is now FreeCORE, which is currently at 15.1 release.

 
Back
Top