Glen Baars
Cadet
- Joined
- Mar 13, 2014
- Messages
- 6
Hello,
As a long time user of FreeNAS replication we have always had a few issues with it.
1. Only replicates one job at a time.
2. Slow over WAN links with > 15ms latency
We have been using Solaris or FreeBSD with zrep/bbcp to overcome these issue on other installations. The logical thing to do was to port these changes across to FreeNAS.
At this stage I have this running on a few installs and it is fine. I hope that FreeNAS Dev team will implement these changes as a gui option :) If anyone has any code update for it, let me know.
The reason that BBCP is faster then the current SSH model is that it uses 12 threads to copy the data instead of 1. We went from 20-30mbit/s over 85ms latency to 600mbit/s when these changes.
To install the patch
download attached zip file
Copy autorepl.py.new to /usr/local/www/freenasUI/tools/autorepl.py on source FreeNAS.
Google bbcp-20120520 and download a copy of it. It has to be this old version as FreeBSD IPv6 stack has issues with new versions. I can't attach a copy due to the forum rules.
Copy bbcp to /sbin/bbcp on BOTH servers
Setup replication as per FreeNAS normal
Some important notes!
###does not support encryption###
Always compresses the data regardless of the settings in FreeNAS.
If you want to change the level of compression then find /sbin/bbcp %s -c 1 -s 12 in autorepl.py and increase the -c number at a cost of CPU cycles.
Requires all the BBCP ports to be open between the servers.
Glen
[Moderator's note: the attached zip file included a binary of bbcp. We do not redistribute unknown binaries here because of the security implications. An archive without that binary has been requested from the author.]
I have now attached a copy without the binary file required.
As a long time user of FreeNAS replication we have always had a few issues with it.
1. Only replicates one job at a time.
2. Slow over WAN links with > 15ms latency
We have been using Solaris or FreeBSD with zrep/bbcp to overcome these issue on other installations. The logical thing to do was to port these changes across to FreeNAS.
At this stage I have this running on a few installs and it is fine. I hope that FreeNAS Dev team will implement these changes as a gui option :) If anyone has any code update for it, let me know.
The reason that BBCP is faster then the current SSH model is that it uses 12 threads to copy the data instead of 1. We went from 20-30mbit/s over 85ms latency to 600mbit/s when these changes.
To install the patch
download attached zip file
Copy autorepl.py.new to /usr/local/www/freenasUI/tools/autorepl.py on source FreeNAS.
Google bbcp-20120520 and download a copy of it. It has to be this old version as FreeBSD IPv6 stack has issues with new versions. I can't attach a copy due to the forum rules.
Copy bbcp to /sbin/bbcp on BOTH servers
Setup replication as per FreeNAS normal
Some important notes!
###does not support encryption###
Always compresses the data regardless of the settings in FreeNAS.
If you want to change the level of compression then find /sbin/bbcp %s -c 1 -s 12 in autorepl.py and increase the -c number at a cost of CPU cycles.
Requires all the BBCP ports to be open between the servers.
Glen
[Moderator's note: the attached zip file included a binary of bbcp. We do not redistribute unknown binaries here because of the security implications. An archive without that binary has been requested from the author.]
I have now attached a copy without the binary file required.
Attachments
Last edited: