当前位置:网站首页>容器化 | 在 NFS 备份恢复 RadonDB MySQL 集群数据
容器化 | 在 NFS 备份恢复 RadonDB MySQL 集群数据
2022-08-04 16:45:00 【InfoQ】
环境准备
- Kubernetes 集群
- RadonDB MySQL 集群
安装 NFS 服务与资源
方法一:使用 Helm 安装
helm install demo charts/mysql-operator --set nfsBackup.installServer=true --set nfsBackup.volume.createLocalPV=true
helm install demo charts/mysql-operator --set nfsBackup.installServer=true --set nfsBackup.volume.specifiedPVC=XXXX
方法二:使用 kubectl 安装
kubectl apply -f config/samples/nfs_pv.yaml
kubectl apply -f config/samples/nfs_server.yaml
获取 nfsServerAddress
kubectl get svc nfs-server --template={{.spec.clusterIP}}
10.98.253.82
ClusterIP10.96.253.82创建 NFS 备份
配置 NFS 服务的地址
# 文件 config/samples/mysql_v1alpha1_backup.yaml
nfsServerAddress: "10.96.253.82"
创建备份
kubectl apply -f config/samples/mysql_v1alpha1_backup.yaml
验证备份
<cluster name>_<timestamp>kubectl exec -it <pod name of nfs server> -- ls /exports
# 显示结果
index.html initbackup sample_2022419101946
备份恢复
mysql_v1alpha1_cluster.yamlnfsServerAddress...
restoreFrom: "sample_2022419101946"
nfsServerAddress: 10.96.253.82
restoreFromkubectl apply -f config/samples/mysql_v1alpha1_cluster.yaml
sample_2022419101946边栏推荐
- 湖北移动HG680-LV_S905L3B_线刷固件包
- Win10 无线网卡驱动感叹号,显示错误代码56
- 跨域传递数据(iframe)
- 转型阵痛期,好未来减亏容易增收难?
- 广东移动魔百盒M411A _905L3_线刷固件包
- 电气成套设备行业如何借助ERP系统,解决企业管理难题?
- B站回应HR称核心用户是Loser;微博回应宕机原因;Go 1.19 正式发布|极客头条
- 代码重构:面向单元测试
- In-depth analysis of HyperBDR cloud disaster recovery 1: Cloud-native cross-platform disaster recovery, making data flow more flexible
- 屏幕分辨率兼容性
猜你喜欢

8月5日,麒麟信安邀您相约鲲鹏开发者创享日·长沙站!

[TA-Frost Wolf_may-"Hundred Talents Project"] Art 2.7 Metallic and Speculer Process

Real-Time Rendering 4th相关资源整理(无需积分 传火)

Jenkins 如何玩转接口自动化测试?

Minecraft 服务器安装Forge 并添加Mod

开一个羽毛球馆大概需要多少钱?大约15万左右可以搞定!

Mobile Hisense IP102H_905L3-B_wire brush firmware package

黑龙江移动新魔百盒M411A_2+8_S905L3A_线刷固件包

Heilongjiang Mobile New Magic Hundred Box M411A_2+8_S905L3A_wire brush firmware package

软考 --- 软件工程(2)软件开发方法
随机推荐
shell脚本详解 --------循环语句之for循环
Mysql Explain
WEB 渗透之SSTI 模板注入
闭包及闭包的使用
8月5日,麒麟信安邀您相约鲲鹏开发者创享日·长沙站!
LeetCode·85.最大矩形·单调栈
"Distributed cloud best practices" BBS, on August 11, shenzhen
MySQL学习之运算符
shell脚本详解-------循环语句wuile循环和until循环
【IDEA】idea配置
重新审视分布式系统:永远不会有完美的一致性方案……
Check which user permissions are assigned to each database, is there an interface for this?
Jenkins 如何玩转接口自动化测试?
显示和设置系统日期时间的date命令示例
Win10 无线网卡驱动感叹号,显示错误代码56
泰坦尼克号沉船数据之美——起于悲剧,止于浪漫
嵌入式系统驱动初级【6】——内核定时器
B站回应HR称核心用户是Loser;微博回应宕机原因;Go 1.19 正式发布|极客头条
SQL语言的分类以及数据库的导入
不需要服务器,教你仅用30行代码搞定实时健康码识别