求助:nebula备份

  • nebula 版本:3.1.0
  • 部署方式:集群:三个节点(21.142,21.143,21.144)
  • 安装方式:Docker
  • 是否上生产环境:Y
  • nebula备份,设置了nfs共享目录,142为服务端,root用户调用br工具,备份报错权限不对,143节点是挂载点,目录权限都是777,为什么会报错创建目录权限错误?求帮助

报错内容:

:{"level":"fatal","msg":"upload storage failed upload /usr/local/nebula/data/storage/nebula/3/checkpoints/BACKUP_2024_01_22_17_28_59 to local:///bak/nebula_bak/BACKUP_2024_01_22_17_28_59/data/192.168.21.143:9779/data0/3 failed:rpc error: code = Unknown desc = copy from /usr/local/nebula/data/storage/nebula/3/checkpoints/BACKUP_2024_01_22_17_28_59 to /bak/nebula_bak/BACKUP_2024_01_22_17_28_59/data/192.168.21.143:9779/data0/3 error failed to create directory: '/bak/nebula_bak/BACKUP_2024_01_22_17_28_59/data/192.168.21.143:9779/data0/3', error: mkdir /bak/nebula_bak/BACKUP_2024_01_22_17_28_59/data/192.168.21.143:9779: permission denied","time":"2024-01-22T17:29:01.535Z"}

您好,可以检查下agent的权限,也可能是nfs设置的问题。by the way, docker环境还不支持用br工具进行恢复

2 个赞

感谢答复,我这是在备份,使用的都是root用户,21.142nfs服务器配置是:

/bak/nebula_bak 192.168.21.143(rw,sync,no_subtree_check) 192.168.21.144(rw,sync,no_subtree_check)

21.143,21.144nfs客户端配置是:

192.168.21.142:/bak/nebula_bak /bak/nebula_bak nfs defaults 0 0

并且每个服务器上/bak/nebula都是777权限,还是报无法创建,没使用nfs共享目录时,可以备份,但每个节点上都是片段,这是为什么?求解

您好,可以参考下这个nfs配置,我在本地测试是可以的
/path/to/shared/folder *(rw,sync,no_root_squash,no_all_squash)