【发布时间】:2015-03-10 14:41:30
【问题描述】:
我正在尝试使用选项 -AX 通过 NFSv4 挂载到启用了 acl 和 user_xattr 的 ext4 驱动器进行 rsync。命令
rsync -aAX /data/ /mnt/back/data
结果
rsync: rsync_xal_set: lsetxattr(""/mnt/back/data/Users/user/Documents/Desktop"","security.NTACL") failed: Operation not supported (95)
连同所有其他文件。 对本地文件夹运行相同的命令非常完美,因此它必须与服务器端的 NFS4 或 EXT4 相关。
我的 fstab 挂载
UUID=732683f0-e6ac-42d6-a492-e07643d7719c /media/back ext4 defaults,acl,user_xattr,barrier=1 0 0
我的 nfs 导出文件
/media/back 10.111.106.3(fsid=0,rw,async,no_root_squash,no_subtree_check)
我的挂载命令
mount -t nfs4 -o proto=tcp,port=2049 10.111.106.12:/ /mnt/back
版本信息:
服务器
Ubuntu 14.04.2
客户
Ubuntu 14.04.2
rsync 3.1.0
感谢您的任何建议!
【问题讨论】:
-
访问
security.*属性不是免费的。 man attr 说:“对安全属性的读写访问权限取决于安全模块为每个安全属性实现的策略。当没有加载安全模块时,所有进程都具有对扩展安全属性的读取权限,而写入权限仅限于具有 CAP_SYS_ADMIN 功能的进程。"