OPNsense Forum

English Forums => Hardware and Performance => Topic started by: hushcoden on March 23, 2022, 01:51:18 PM

Title: Adding a second SDD
Post by: hushcoden on March 23, 2022, 01:51:18 PM
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.
Title: Re: Adding a second SDD
Post by: Patrick M. Hausen on March 23, 2022, 02:10:09 PM
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
Title: Re: Adding a second SDD
Post by: hushcoden on March 24, 2022, 10:20:46 AM
Thanks Patrick, will keep you posted once it's done.
Title: Re: Adding a second SDD
Post by: hushcoden on May 28, 2022, 02:26:09 PM
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.