Page 1 of 1

ZFS Replication from FreeNAS to OS X

PostPosted: Wed May 25, 2016 2:57 am
by henningkessler
Hello,

I am trying to set up a replication task from a FreeNAS server to an OS X server. Everything is working except the lz4 compression.

This is the error messages from the FreeNAS host:
Code: Select all
May 25 12:04:01 SNDHOST autorepl.py: [tools.autorepl:138] Sending zfs snapshot: /sbin/zfs send -V tank01/shares@auto-20160518.1300-1w | /usr/local/bin/lz4c | /usr/local/bin/throttle -K 20000 | /bin/dd obs=1m 2> /dev/null | /bin/dd obs=1m 2> /dev/null | /usr/bin/ssh -i /data/ssh/replication -o BatchMode=yes -o StrictHostKeyChecking=yes -o ConnectTimeout=7 -l sadmin -p 22 RCVHOST "/usr/local/bin/lz4c -d | /sbin/zfs receive -F -d 'backup' && echo Succeeded"
May 25 12:04:02 SNDHOST autorepl.py: [tools.autorepl:157] Replication result: bash: /usr/local/bin/lz4c: No such file or directory


Is there a lz4c binary in OS X so i could create a symbolic link to /usr/local/bin/lz4c?

Regards

Henning

Re: ZFS Replication from FreeNAS to OS X

PostPosted: Wed May 25, 2016 3:29 am
by Brendon

Re: ZFS Replication from FreeNAS to OS X

PostPosted: Wed May 25, 2016 1:17 pm
by henningkessler
Hi Brendon,

thanks for your answer, but as O3X utilizes the lz4 compression as a flag for pools lz4 must be already baked into the system or installed by O3X..

or am I wrong with that?

Henning

Re: ZFS Replication from FreeNAS to OS X

PostPosted: Wed May 25, 2016 1:35 pm
by Brendon
Its in the kernel. You are asking for a userspace utility which we don't have. I think you are getting that utility from your OS, rather than your ZFS implementation.

Cheers
Brendon

Re: ZFS Replication from FreeNAS to OS X

PostPosted: Thu May 26, 2016 2:05 pm
by henningkessler
Hi Brendon,

now i got it :-), Thanks for your help.

Henning