NFS Sharing under HAProxy

blckhm

Dabbler
Joined
Sep 24, 2018
Messages
42
Hi guys,

I could not find any proper solution for my nfs sharing. But first, let me introduce our system.

We've 2 different structured freenas systems which named as system1 and system2.

Our main purpose is make them as primary/secondary replication.
system1 always be the active/primary replica on our cabinet and
system2 will be replicated of system1.

But these system's have different raid setups like that;
system1 has 2 pool which named as tank1 and tank2.
system2 has single pool which named as tank1.

And we could replicate all snapshots in system1 (tank1 and tank2) to system2's single pool(tank1).

Everything looks fine until this moment.
When we put these servers under HAProxy (nfs) for active/passive auto failover, nfs sharing paths will be different because of the tank namings.

system1 shares will be seperated like that
*:/mnt/tank1/videos
*:/mnt/tank2/images

system2 shares will be like that because it has single pool.
*:/mnt/tank1/videos
*:/mnt/tank1/images


So if we mount these nfs shares over HAProxy and if any issue occurs on primary, our paths will be broken.

Is there any way to link these paths? or maybe we should create exactly same pool structure on system1 and system2 to keep sharing paths identical.

Or any advice?
 
Top