Viper780 wrote: ↑03 Aug 2020 17:53
I can also use dd from frebsd or a live xigmanas stick.
Do you have a good "How to" or something similar for the Boot Environments? a bit lost and overwhelmed on this topic (read the whole day different stuff and still do't know where to start)
I'm using Bastille (and love it) but my backup and export won't work (don't know why, don't see any errors in the log).
The way you describe needs 4 independent Disks! (the old SSD, which hopfully still boots, a safe Data storage which is large enough, the new Disk and a USB drive to install the new disk)
So there is no simple cloning like every other OS supports?
Hello, you can of course use `dd` command to dump your SSD to an image, then use it again to write the image back to the new SSD, while this may be ok for cloning the OS 1:1 on identical drives, I personally never tried it for cloning a GPT/ZFS drive to a larger one, probably you may get GEOM warnings etc. but again I have never tried, I could test in this during the week as I'm already curious about too and let you know, though during the week.
As for a "good How-To" on FreeBSD Boot Environments, the internet is overloaded on this already and the FreeBSD forums as well, however if you want the "easy go" route you can install the
Extension Boot Environments Manager(recommended) or the less user friendly
CLI/TUI Boot Environments Manager(advanced), all you need is to export the latest/running BE to a
safe/permanent DATA location/pool/mountpoint etc., then after install XigmaNAS on the new SSD as you normally do, simply install again one of the previously mentioned Boot Environments utilities and import the Boot Environments and restart.
At that point the system will boot from the last state with all your scrips and the third parties packages already installed, however since you opted to use a separate dataset rather than simply using all the available disk for the OS + jails it will complicate things a little more since you need to backup said jails either manually of by the built-in export/import from the jail manager in question.
Also I don't know what you meant that
Bastille Jail Manager backup/restore function does not work for you, can you please elaborate a bit more on what makes you suspect it is not working?
P.S. I will strongly advice to install
jails the same way as you install your critical DATA, on a separate ZFS pool, the user dataset option on the
RootOnZFS installer menu is simply for
non critical replaceable data, if this is used for critical Data, just like in Embedded install Data partition, the user must backup this then restore later on, I would rather use and store the jails in the OS "/usr/local/jails" personally on RootOnZFS, though Bastille Jail Manager was designed to enforce the user to always place their jails in a separate data location as previously denoted, however if this is a thin-client like NAS with hardware limited to a single disk then I understand on why you just want to clone it.
And last but not least be aware if this is a dying HDD/SSD with several bad sectors and garbage/corrupted data, you will also restore this to the new SSD as the `dd` command is a 1:1 data clone(sector by sector).
Regards