]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add clear_shards_repaired command 60567/head
authorDanWritesCode <github@dann.me>
Mon, 18 Dec 2023 21:09:07 +0000 (16:09 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 22 Nov 2025 12:01:45 +0000 (19:01 +0700)
commitd27afb44e6c6c9fb71e83f18531f5ac4b3825294
treedcecd8e39f2c49462a92bb9309867c7e252d2573
parent4eb0fc979231d49b134b47b050f2c85a2d875844
osd: add clear_shards_repaired command

This command will allow us to clear the OSD_TOO_MANY_REPAIRS alert
by setting the shard repair count to 0. This will help in cases where
the alert was a false positive, or a condition that has since cleared
at the disk level. Often, zeroing out the repair count is
better than muting the alert or restarting the OSD.

Fixes: https://tracker.ceph.com/issues/54182
Co-authored-by: David Zafman <dzafman@redhat.com>
Signed-off-by: Daniel Radjenovic <dradjenovic@digitalocean.com>
(cherry picked from commit 78d6bfe54c3b9b60fab36a640b1ce77c8f022fa9)

osd: remove unnecessary return statements

Signed-off-by: Daniel Radjenovic <dradjenovic@digitalocean.com>
(cherry picked from commit b01453b1c1b8e9034a17d05ce6ed41102c8d9c65)
doc/rados/operations/health-checks.rst
qa/standalone/osd/osd-rep-recov-eio.sh
src/osd/OSD.cc
src/osd/OSD.h