Truenas servers communicating over internet

dboulet

Cadet
Joined
Jan 5, 2024
Messages
1
Actual situation.

I have built two Truenas servers when Truenas 12 became available. These have been updated to Truenas 13. One of the servers has (5x) 6TB drives with Raidz2. The other has (3x) 8TB drives with Raidz. Essentially they each have about 15TB of storage. The data on the servers is exactly the same. Both servers are on the same LAN. Each server is seen on a laptop as a mapped network drive. I use FreeFileSync on the laptop to keep both servers identical in content.

Wanted situation.

I want to move one of the servers to a different LAN in another city and still be able to keep them both identical as I do actually.

My question.

Would someone guide me so I can accomplish the wanted situation?

I am self-taught, love to learn and apply what I learned. Right now I see Truenas server to Truenas server over the internet as a series of blackboxes connected together somewhat similar to Server/SSH/LAN/Router/Moden/Internet/Modem/Router/LAN/SSH/Server.

Thanks for your help.
 

somethingweird

Contributor
Joined
Jan 27, 2022
Messages
183
Take a look at "site to site VPN"
 

elorimer

Contributor
Joined
Aug 26, 2019
Messages
194
Four things to take into account. I use replication tasks between two servers over a site to site VPN on my routers to keep the servers in sync.

1. Be very mindful of how your datasets are set up. It is helpful I think to divide data into datasets susceptible of different replication scenarios. For example, my media files change very slowly, so replication only needs to happen every so often. My more current data replicates more often. That also is a little more resilient if the VPN goes down.
2. Be mindful of the direction your replication is going and your upload/download ISP speeds at each location. For example, my US location has a piss-poor 200/10 connection, so while I can download at 200mbps, I can only upload at 10. My Portugal location is symmetric 1gig. But that means a full replication from the US to Portugal would take, um around 150 days, while going the other way would be more like 7 or 8. For that reason also, you may want to create a USB drive as a local pool, replicate to it, export the pool carry the USB drive to the second location, and import it.
3. If you are stuck with crappy upload, be mindful of other uses that need to be taken into account, like zoom calls. You may need to limit the replication speed accordingly.
4. Give some consideration to power; if you are in only one location at time, it may be advantageous to turn off the other server.

I'm on Cobia but Core would be the same, I think.
 
Last edited:
Top