Syncoid does not see mbuffer & lzop on SmartOS global zone

Hi,

I’m just running syncoid for the first time, very nice experience so far, thanks for the software!

I’m migrating from znapzend so I’m not super familiar with the setup yet. One thing I noticed is that it complains about not finding mbuffer and lzop even though both commands work fine on the root shell in my SmartOS global zone.

Is it possible that it can’t be found because it’s in /opt/local/bin/ and that is maybe not set in the ssh shell syncoid is using? If so, any ideas on how I could fix that?

regards

Adrian

1 Like

I’m not really familiar with SmartOS, but could you enable the user environment in ~/.ssh/environment?

1 Like

I did not know about that SSH feature, thanks. It looks like I have to enable that in sshd as well via the option PermitUserEnvironment. If I could do that without that would be great but that might indeed be the plan B.

And it indeed seems to be the problem:

ssh root@host 'which mbuffer && which lzop'
no mbuffer in /usr/ccs/bin /usr/bin /bin /usr/sbin /sbin

So ssh can’t see them in /opt/local

For those who need that:

  • PermitUserEnvironment yes in sshd_config
  • svcadm restart svc:/network/ssh:default
  • PATH=/opt/local/bin and whatever else you need in ~/.ssh/environment
  • chmod 600 on `~/.ssh/environment

And now:

ssh host 'which mbuffer && which lzop'
/usr/local/bin/mbuffer
/usr/local/bin/lzop
1 Like