如何进行Ceph集群维护关闭

How to do a Ceph cluster maintenance/shutdown
The following summarize the steps that are necessary to shutdown a Ceph cluster for maintenance.

Stop the clients from using your Cluster
(this step is only necessary if you want to shutdown your whole cluster)

Important – Make sure that your cluster is in a healthy state before proceeding

Now you have to set some OSD flags:

# ceph osd set noout
# ceph osd set nobackfill
# ceph osd set norecover

Those flags should be totally sufficient to safely powerdown your cluster but you
could also set the following flags on top if you would like to pause your cluster completely::

# ceph osd set norebalance
# ceph osd set nodown
# ceph osd set pause

## Pausing the cluster means that you can't see when OSDs come
back up again and no map update will happen
Shutdown your service nodes one by one

Shutdown your OSD nodes one by one

Shutdown your monitor nodes one by one

Shutdown your admin node

After maintenance just do everything mentioned above in reverse order.


如何进行Ceph集群维护/关闭
以下总结了关闭Ceph集群进行维护所需的步骤。

停止客户端使用您的群集
(仅当您要关闭整个群集时才需要执行此步骤)

重要提示 –在继续操作之前,请确保群集处于健康状态

现在,您必须设置一些OSD标志:

# ceph osd set noout
# ceph osd set nobackfill
# ceph osd set norecover

这些标志应该足以安全关闭集群电源,但是您
如果您想完全暂停集群,也可以在顶部设置以下标志::

# ceph osd set norebalance
# ceph osd set nodown
# ceph osd set pause

##暂停群集意味着您看不到OSD何时出现
再次备份,不会发生地图更新
关闭您的服务节点

关闭您的OSD节点

关闭您的监视器节点

关闭您的管理节点

维护后,以相反的顺序进行上述所有操作。

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值