Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ceph storage pool full and other processing methods

Shulou Source: shulou.com Published: 2022-06-02 01:11:47 10月01日 Update

1. Check the settings of the current cluster full and nearfull, and query the Mon configuration on the Mon node.

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

two。 Check the setting values of the current cluster full and nearfull, and query the osd configuration on other nodes

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

3. If you encounter an alarm from the cluster full and the storage cannot write data, emergency configuration steps

1) set OSD to prohibit reading and writing

Ceph osd pause

2) notify Mon to modify the threshold of nearfull and 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) notify PG to modify the threshold of nearfull and full

Ceph pg set_nearfull_ratio 0.96

Ceph pg set_full_ratio 0.97

4) remove the ban on reading and writing of OSD

Ceph osd unpause

5) organize the cluster, delete some useless data, and expand the cluster.

6) restore the default configuration of the cluster

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

Tags: Clustering configuration data nodes thresholds queries storage steps methods processing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Docker OPPO Reno Shulou Technology Shulou Tech Info