Good day,
I have the following scenario.
I set up a file storage server with SAMBA and LXC. It works absolutely fine. I have now around 8 TB of data on my storage.
I use a ZFS dataset for the storage, and a bind mount to the LXC. This works phantastically well.
However I now have a new problem. I would like to replicate the SMB server. I know there is the possibility of clustered SAMBA, but it seems to me a bit complicated.
But I have already set up a ZFS replication task that runs every 10 min and uses zfs send / zfs receive to synchronize the entire 8 TB dataset to a second server I have.
I wonder, can I also set up a replication task for the LXC container that copies the LXC to the other server? will that work with the bind mount? I see that Proxmox does not let me create a replication task for this particular LXC, because it uses a bind mount. Can I fix this somehow?
But then I still have the problem that, in case of a failure of the first SAMBA server, the replicated one would come into play and the files would be modified on the 2nd dataset. So I would need some sort of bidirectional replication. But I am not sure if such a thing is possible.
How should I address the problem of a redundant file server? any good ideas?
I have the following scenario.
I set up a file storage server with SAMBA and LXC. It works absolutely fine. I have now around 8 TB of data on my storage.
I use a ZFS dataset for the storage, and a bind mount to the LXC. This works phantastically well.
However I now have a new problem. I would like to replicate the SMB server. I know there is the possibility of clustered SAMBA, but it seems to me a bit complicated.
But I have already set up a ZFS replication task that runs every 10 min and uses zfs send / zfs receive to synchronize the entire 8 TB dataset to a second server I have.
I wonder, can I also set up a replication task for the LXC container that copies the LXC to the other server? will that work with the bind mount? I see that Proxmox does not let me create a replication task for this particular LXC, because it uses a bind mount. Can I fix this somehow?
But then I still have the problem that, in case of a failure of the first SAMBA server, the replicated one would come into play and the files would be modified on the 2nd dataset. So I would need some sort of bidirectional replication. But I am not sure if such a thing is possible.
How should I address the problem of a redundant file server? any good ideas?
Last edited: