在上一篇 ceph实战之ceph搭建_Mr.Lilh的博客-CSDN博客 介绍了集群搭建
但是没有对ceph-mon节点和ceph-mgr节点进行高可用扩展,那如何实现ceph-mon 和ceph-mgr的高可用呢?
上篇规划的集群架构
本篇规划新添加14.23为新增ceph-mon, 14.27为新增的ceph-mgr
一:添加ceph-mon节点到ceph集群
1)上一篇已经介绍了在节点上如何安装ceph-mon, 在需要添加到ceph集群的mon节点上安装cepn-mon服务
yum install -y ceph-mon
2)在mgr节点ceph用户下把新增加的ceph-mon节点添加到ceph集群
#在mgr节点ceph用户下执行
ceph-deploy mon add cephstore2
3)在mgr节点上切换到root用户下查看集群状态
#切换到root用户下查看集群状态
ceph -s
可以看到services下mon下有2daemons, 分别为cephstore1,cephstore2
二:添加ceph-mgr节点到ceph集群
1)上一篇已经介绍了在节点上如何安装ceph-mgr, 在需要添加到ceph集群的mgr节点上安装cepn-mon服务
#在cephstore1上安装ceph-mgr服务
yum install -y ceph-mgr
2)在mgr节点ceph用户下把新增加的ceph-mgr节点添加到ceph集群
#在mgr节点ceph用户下执行
ceph-deploy mgr create cephstore1
3)在mgr节点上切换到root用户下查看集群状态
# 在mgr节点切换到root用户下执行
ceph -s
可以看到services下 mgr节点信息,cephmgr为active状态,cephstore1为standbys状态
4)验证测试:把cephmgr节点上的mgr服务停掉查看集群状态
systemctl stop ceph-mgr.target
可以看到mgr节点状态之前的cephstore1有standbys变为acive
以上内容为扩展ceph集群的ceph-mon 和 ceph-mgr 为高可用架构,接下来准备写写ceph集群的维护和管理。ceph实战之ceph集群的管理(一)_Mr.Lilh的博客-CSDN博客