]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add clear_shards_repaired command
authorDanWritesCode <github@dann.me>
Mon, 18 Dec 2023 21:09:07 +0000 (16:09 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 3 Jul 2025 10:06:07 +0000 (17:06 +0700)
commit69e75cd622bf013be095f50224bdb6fbed0cf7ca
tree314d7d55df74883889e8f0c8b5b4b3248472834a
parenta238e3c46507c87cac7e23e7a459552953ccd87d
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)
doc/rados/operations/health-checks.rst
qa/standalone/osd/osd-rep-recov-eio.sh
src/osd/OSD.cc
src/osd/OSD.h