We have progressed from Stage 1 of the NAS project, which was building a separate 15.1 boot environment. This was successful, and you can see the blog post about that below.
Stage 2 is transitioning to making the 15.1 BE work. It has been much slower going since, unlike the vermaden blog post, I had two things I had to take into account. First, that I am bridging a fairly vast gulf between 13.0/13.3 and 15.1. The other issue was that I am going from TrueNAS/zVault to stock FreeBSD. TrueNAS tends to throw everything but the kitchen sink in to config files like loader.conf, rc.conf, etc. So I found myself having to weed between what to take from my zVault BE, and what to either generate from scratch or adapt from another 15.1 box on the network.
As an example, the loader.conf on TrueNAS/zVault is nearly 60 lines of settings. I opted to go with something more akin to a stock FreeBSD box:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
coretemp_load="YES"
zfs_load="YES"
I can add parameters if I find that I need later. /etc/rc.conf seems to have a different problem. Based on some of the settings, I think that while it is very extensive, and has several items that are not needed (like vmware_guest items), I don't believe it is used specifically. I suspect that a lot of the settings are manageed by the middleware. So I adapted the rc.conf from one of my 15.1 boxes, adjusted various settings such as the networking, and then added several items that I may or may not need for NAS use:
# Things to enable the plumbing for a NAS, specifically NFS, samba server
nfs_server_enable="YES"
mountd_enable="YES"
rcpbind_server_enable="YES"
#samba_enable="YES"
#ctld_enable="YES"
Since I don't currently use SMB or iSCSI, those bits are commented out.
I also added vfs.zfs.vdev.min_auto_ashift=12 to /etc/sysctl.conf.
I copied the following files from the existing boot environment:
- /etc/hosts
- /etc/fstab
- /etc/exports
- /etc/devfs.rules
- /etc/resolv.conf
At this point, I'm ready to reboot into the new boot environment.