Linux ext4からFreeBSD ZFSに(SSH経由で)コピーすると、rsyncが失敗または中断されます。

Linux ext4からFreeBSD ZFSに(SSH経由で)コピーすると、rsyncが失敗または中断されます。

Linuxのext4からFreeBSDのZFSに(SSH経由で)ディレクトリをコピーしようとすると、rsync何もコピーされず、すぐに失敗します。

# rsync -haxHAX /mnt/source/ root@lethe:/mnt/dest/ -vvv
opening connection using: ssh -l root lethe rsync --server -vvvlHogDtpAXrxe.iLs . /mnt/dest/  (9 args)
sending incremental file list
[…]
server_recv(2) starting pid=83765
rsync: connection unexpectedly closed (38 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
[sender] _exit_cleanup(code=12, file=io.c, line=226): about to call exit(12)

単一のファイルをコピーしようとすると、rsync「停止」して無期限に停止したり、何もコピーされません。

# rsync -haxHAX /mnt/source/test.txt root@lethe:/mnt/dest/test.txt -vvv
opening connection using: ssh -l root lethe rsync --server -vvvlHogDtpAXrxe.iLs . /mnt/dest/test.txt  (9 args)
sending incremental file list
[sender] make_file(test.txt,*,0)
send_file_list done
send_files starting
server_recv(2) starting pid=83944
recv_file_name(test.txt)
[ hangs indefinitely ]

ベストアンサー1

ext4の目的POSIX ACL(マウントオプションで明示的に有効になっている場合acl
ZFSはNFSv4 ACL(少なくともFreeBSDでは)。

rsyncマニュアルページには次のように記載されています。

-A, --acls
  The source and destination systems must have compatible ACL entries for
  this option to work properly.

この-Aオプションがないと、転送に問題はありません。

おすすめ記事