Adding a second SDD

Started by hushcoden, March 23, 2022, 01:51:18 PM

Previous topic - Next topic
I've ordered a second SDD for my appliance and I'd like to set up the ZFS mirror functionality: do I have to re-install OPNsense from scratch or I can do it with some commands?

Tia.

Assuming your present ssd is ada0 and the new one is ada1:
gpart backup ada0 | gpart restore ada1
zpool attach zroot ada0p4 ada1p4


HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thanks Patrick, will keep you posted once it's done.

May 28, 2022, 02:26:09 PM #3 Last Edit: May 28, 2022, 02:36:39 PM by hushcoden
I finally got the second SSD, and should I delete the data on it or gpart will erase it anyway?

Once installed into the appliance, I just reboot it, I log in with SSH and run those commands, and that's it?

Thanks.