toofull并不严重,pg在恢复过程中可能会出现这个状态,导致集群ERR,但是,这个状态不一定是有问题的,它也不一定是osd容量不够导致的,官方的解释是:
BACK FILLING
When a new OSD joins the cluster, CRUSH will reassign placement groups from OSDs in the cluster to the newly added OSD. Forcing the new OSD to accept the reassigned placement groups immediately can put excessive load on the new OSD. Back filling the OSD with the placement groups allows this process to begin in the background. Once backfilling is complete, the new OSD will begin serving requests when it is ready.
During the backfill operations, you may see one of several states: backfill_wait indicates that a backfill operation is pending, but is not underway yet; backfilling indicates that a backfill operation is underway; and, backfill_toofull indicates that a backfill operation was requested, but couldn’t be completed due to insufficient storage capacity. When a placement group cannot be backfilled, it may be considered incomplete.
The backfill_toofull state may be transient. It is possible that as PGs are moved around, space may become available. The backfill_toofull is similar to backfill_wait in that as soon as conditions change backfill can proceed.
Ceph provides a number of settings to manage the load spike associated with reassigning placement groups to an OSD (especially a new OSD). By default, osd_max_backfills sets the maximum number of concurrent backfills to and from an OSD to 1. The backfill full ratio enables an OSD to refuse a backfill request if the OSD is approaching its full ratio (90%, by default) and change with ceph osd set-backfillfull-ratio command. If an OSD refuses a backfill request, the osd backfill retry interval enables an OSD to retry the request (after 30 seconds, by default). OSDs can also set osd backfill scan min and osd backfill scan max to manage scan intervals (64 and 512, by default).
由此可知,toofull是因为数据的迁出迁入计算方式导致,并不是因为确实用完了osd的空间,无需过分担心,当然,如果容量确实用完了,比如在集群状态中查看到集群的用量告警,就必须采取手段将容量使用降下来。
总的来说说,backfill_toofull可能是短时间的,当其他pg移走后,空间腾出来后,就会变成其他状态了,所以不需要太担心