当前位置:网站首页>容器化 | 在 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边栏推荐
猜你喜欢

电气成套设备行业如何借助ERP系统,解决企业管理难题?

15 days to upgrade to fight monsters and become a virtual fashion creator

No server is required, teach you to get real-time health code recognition with only 30 lines of code

嵌入式系统驱动初级【6】——内核定时器

shell脚本详解-------循环语句wuile循环和until循环

Mysql Explain

MySQL 性能调优和优化技巧

HCIP WPN 实验

花了半个月,终于把一线大厂高频面试题做成合集了

不需要服务器,教你仅用30行代码搞定实时健康码识别
随机推荐
码蹄集 - MT2094 - 回文之时:第4组数据错误
从-99打造Sentinel高可用集群限流中间件
Minecraft 服务器安装Forge 并添加Mod
Analysis of Http-Sumggling Cache Vulnerability
pygame的freetype模块
电气成套设备行业如何借助ERP系统,解决企业管理难题?
shell脚本详解-------循环语句wuile循环和until循环
HCIP笔记(7)
基本的SELECT语句
【IDEA】idea配置
B站回应HR称核心用户是Loser;微博回应宕机原因;Go 1.19 正式发布|极客头条
gcc7.5.0编译ceres-solver报错‘is_trivially_default_constructible’ is not a member of ‘std’
JVM调优-GC基本原理和调优关键分析
Mobile magic box CM211-1_YS foundry _S905L3B_RTL8822C_wire brush firmware package
华为应用市场“图章链接”功能上线 让APP分发突破机型壁垒
智慧场馆的无人值守怎么做?
LeetCode·84.柱状图中最大的矩形·单调递增栈
xgboost模块param中的一些错误
会话劫持安全攻击
AtCoder Beginner Contest 262 部分题解