1.查看当前集群full以及nearfull的设置值,在Mon节点查询Mon配置

ceph --admin-daemon /run/ceph/ceph-mon.IP.asok config show | grep full_ratio

2.查看当前集群full以及nearfull的设置值,在其他节点查询osd配置

ceph --admin-daemon /run/ceph/ceph-osd.0.asok config show | grep full

3.遇到集群full的告警,并且存储不能写入数据了,紧急配置步骤

1)设置OSD禁止读写

ceph osd pause

2)通知Mon修改nearfull及full的阈值

ceph tell mon.* injectargs "--mon-osd-nearfull-ratio 0.96"

ceph tell mon.* injectargs "--mon-osd-full-ratio 0.97"

ceph tell osd.* injectargs "--mon-osd-nearfull-ratio 0.96"

ceph tell osd.* injectargs "--mon-osd-full-ratio 0.97"

3)通知PG修改nearfull及full的阈值

ceph pg set_nearfull_ratio 0.96

ceph pg set_full_ratio 0.97

4)解除OSD的禁止读写

ceph osd unpause

5)整理集群,删除一些无用的数据,扩容集群

6)还原集群的默认配置

ceph tell mon.* injectargs "--mon-osd-nearfull-ratio 0.85"

ceph tell mon.* injectargs "--mon-osd-full-ratio 0.95"

ceph tell osd.* injectargs "--mon-osd-nearfull-ratio 0.85"

ceph tell osd.* injectargs "--mon-osd-full-ratio 0.95"

ceph pg set_nearfull_ratio 0.85

ceph pg set_full_ratio 0.95