Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the processing methods of Ceph storage pool full and nearfull

Shulou Source: shulou.com Published: 2022-06-03 04:48:07 10月05日 Update

How are Ceph storage pools handled by full and nearfull? To solve this problem, the editor summarizes this article on Ceph storage pool today, hoping to help more friends who want to solve this problem to find a more simple and easy way.

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

After reading the above, do you have a general idea of how the Ceph storage pool full and nearfull are handled? If you want to know more about the content of the article, welcome to follow the industry information channel, thank you for reading!

Tags: Clusters storage configuration methods processing content data articles more nodes problems thresholds queries easy easy methods friends steps industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Redmi OPPO Reno vpn