Paolo Simonetto
Cadet
- Joined
- Feb 11, 2018
- Messages
- 4
Hello,
I have been trying to collect information on threads on individual topics, but I am afraid I am not seeing clearly the big picture with my installation.
I have two (possibly more in the future) locations, each one with its own FreeNAS server. In all locations, I have both Windows and Linux machines. The locations are connected with a site-to-site VPN, but the connection speed is only decent (let's say 10-15 Mb/s). Except in rare occasions, files are not added or modified very frequently, and are almost never modified synchronously in both locations.
Ideally, I would like the two NAS to give quick read and write access to the data, transferring in the background the changes to NAS in the other location for backup and later usage of the files. More simply, I would like the system to act as Dropbox synchronising the files in a NAS rather that individually on each computer. For conflict resolution, I would gladly accept a read-only lock on the non-currently-used NAS that last as long as all the modifications are not fully transferred.
I tried to create Linux datasets, shared with NFS, but I did not manage to make them work on Windows. Since then, I created Windows datasets shared with SMB and things are working well. This thread https://forums.freenas.org/index.php?threads/dataset-share-type-purpose.34809/ contains an interesting discussion on using different sharing protocol (for example NFS and SMB) on the same dataset, but it is not very clear to me whether that is OK or not, and how permissions would be handled in that case. First question. Should I stick to ACL and SMB for all systems, or ACL shared with SMB for windows and with NFS for linux, or away from ACL for what is explained in the following point?
Since I need two-ways synchronisation, I first thought to use an rsync task, hoping that it would not take too long to run (https://forums.freenas.org/index.php?threads/replicating-data-between-2-freenas-installs.57785/, https://forums.freenas.org/index.php?threads/best-way-to-sync-two-servers.48064/). Unfortunately, I recently realised from the documentation that ACL permissions are not preserved. Second question. Could this be a satisfactory solution, and should therefore migrate the existing datasets away from ACL (see previous point) to try it out?
As discussed in the previous links, the best way to synchronise datasets would be through the replication task, which unfortunately is one-way only. Let's give a few names for simplicity. Imagine a work location, with a work dataset, and a home location with a home dataset. Clearly work dataset would be replicated in the home NAS and work dataset in the work NAS. Third question. Should I share home in the home location, work in the work location, and have that access to the off-site dataset is done through the network (no conflicts, but poor throughput). Should I instead create a read-only share for home on the work NAS, so that I can read quickly, while still having to go through the network for editing (no conflicts, high read throughput, poor write throughput, confusing for the user)?
Final question. Is there no better options than:
- rsync on non ACL partitions
- replication and having to access shares through the network
Thanks a lot.
I have been trying to collect information on threads on individual topics, but I am afraid I am not seeing clearly the big picture with my installation.
I have two (possibly more in the future) locations, each one with its own FreeNAS server. In all locations, I have both Windows and Linux machines. The locations are connected with a site-to-site VPN, but the connection speed is only decent (let's say 10-15 Mb/s). Except in rare occasions, files are not added or modified very frequently, and are almost never modified synchronously in both locations.
Ideally, I would like the two NAS to give quick read and write access to the data, transferring in the background the changes to NAS in the other location for backup and later usage of the files. More simply, I would like the system to act as Dropbox synchronising the files in a NAS rather that individually on each computer. For conflict resolution, I would gladly accept a read-only lock on the non-currently-used NAS that last as long as all the modifications are not fully transferred.
I tried to create Linux datasets, shared with NFS, but I did not manage to make them work on Windows. Since then, I created Windows datasets shared with SMB and things are working well. This thread https://forums.freenas.org/index.php?threads/dataset-share-type-purpose.34809/ contains an interesting discussion on using different sharing protocol (for example NFS and SMB) on the same dataset, but it is not very clear to me whether that is OK or not, and how permissions would be handled in that case. First question. Should I stick to ACL and SMB for all systems, or ACL shared with SMB for windows and with NFS for linux, or away from ACL for what is explained in the following point?
Since I need two-ways synchronisation, I first thought to use an rsync task, hoping that it would not take too long to run (https://forums.freenas.org/index.php?threads/replicating-data-between-2-freenas-installs.57785/, https://forums.freenas.org/index.php?threads/best-way-to-sync-two-servers.48064/). Unfortunately, I recently realised from the documentation that ACL permissions are not preserved. Second question. Could this be a satisfactory solution, and should therefore migrate the existing datasets away from ACL (see previous point) to try it out?
As discussed in the previous links, the best way to synchronise datasets would be through the replication task, which unfortunately is one-way only. Let's give a few names for simplicity. Imagine a work location, with a work dataset, and a home location with a home dataset. Clearly work dataset would be replicated in the home NAS and work dataset in the work NAS. Third question. Should I share home in the home location, work in the work location, and have that access to the off-site dataset is done through the network (no conflicts, but poor throughput). Should I instead create a read-only share for home on the work NAS, so that I can read quickly, while still having to go through the network for editing (no conflicts, high read throughput, poor write throughput, confusing for the user)?
Final question. Is there no better options than:
- rsync on non ACL partitions
- replication and having to access shares through the network
Thanks a lot.