Its been a few years since ive had to post on the forum, (went the nas4free/freenas/truenas core/scale route), sad to see the current forum is less usable than the old truenas forum that is now read only.
Search function is less than helpful. So asking here.
Freenas had the ability to replicate both the dataset file perms and export the nfs and SMB share info so that it could be imported as is, this was extremely useful for when you moved data to a new vdev layout and copied the data back.
How is this done in Scale? I just purchased a jbod and some disks and need to redo my vdev layout. Previously i would replicate the production pool to another pool, wipe the production pool, recreate the vdev layout how i want and replicate the dataset back. This seems to work but i havea ton of SMB and NFS shares + iscsi targets configured. How can those be backed up/restored?
Make sure you have a full backup! In my case I replicated my datasets to another Truenas Scale machine.
I have got away with moving the “System Dataset Pool” to my Boot-Pool drive (a separate ssd drive). Reconfigured my drives and vdevs, using the same “pool name”, restored my datasets replication from the second Scale machine, then moved the System Dataset back. . All of my shares and task were still there. In Scale goto System → Advanced → Storage. Remember your pool name and dataset names would need to remain the same. This was for a total drive replacement (YMMV).
I just completed this over the last couple of days going from a RaidZ1 to a RaidZ2 with more drives.
After you replicate your data (if use GUI, be sure to check full file system replication), when you have to disconnect your old pool just not delete configuration… And just set the same name for the new one