k8s

longhorn使用nfs备份

要使用nfs备份的话,nfs服务器必须支持NFSv4。
目标URL应如下所示:

nfs://longhorn-test-nfs-svc.default:/opt/backupstore

安装nfs server

yum install -y rpcbind nfs-utils
vim /etc/exports
/data/nfs/ *(insecure,rw,sync,no_root_squash)

mkdir /data/nfs
systemctl enable rpcbind
systemctl enable nfs-server
systemctl start rpcbind
systemctl start nfs-server
exportfs -r

修改longhorn备份目标

  • target:nfs目录地址
  • secret:不用填

file

创建备份

file

查看备份

备份完成后,进入nfs目录,查看备份。

file

分类: k8s
0 0 投票数
文章评分
订阅评论
提醒
guest

0 评论
内联反馈
查看所有评论

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部
0
希望看到您的想法,请您发表评论x