ZFS replication between FreeNAS and Ubuntu

PUSH side: FreeNAS 9.10.2-U2
PULL side: Ubuntu Xenial

I have set up the ssh keys, so that root from PUSH can log into PULL without a password but the replication kept failing because of unknown reasons. The documentation is not so long-winded about this, and how to debug. On the PULL side I could see successful but short logins from root in the auth.log. The debug.log on the PUSH side held the key information:

Replication result: /usr/bin/env: �lz4c�: Nincs ilyen fájl vagy könyvtár
cannot receive: failed to read from stream
Failed to write to stdout: Broken pipe
Error 35 : Write error : cannot write compressed block

To solve the replication problem I had to install liblz4-tool on Ubuntu. I enabled Replication Stream Compression, and the tools on Ubuntu were missing. 😦

I am still waiting for compressed zfs replication to be a thing.


Author: Gajdos Tamás

A "barefoot physicist" with some IT skills in system administration.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s