]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/mgr/OSDMonitor.cc Add command `ceph osd pool availability-status`
authorKamoltat <ksirivad@redhat.com>
Tue, 10 Oct 2023 15:15:35 +0000 (15:15 +0000)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 24 Apr 2025 14:10:37 +0000 (19:40 +0530)
```
ceph osd pool availability-status
```
outputs:

`POOL`
`UPTIME`
`DOWNTIME`
`NUMFAILURES`
`MTBF`
`MTTR`
`SCORE`
`AVAILABLE`

Fixes: https://tracker.ceph.com/issues/67777
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/mon/MonCommands.h

index 91dd806c6ec174692b267f8a23134342cbacc644..634b17b7ce8213620537640a22192088a6ba284b 100644 (file)
@@ -1243,6 +1243,9 @@ COMMAND("osd pool stretch unset "
                "name=min_size,type=CephInt,range=0 ",
                "unset the stretch mode for the pool",
                "osd", "rw")
+COMMAND("osd pool availability-status", \
+        "obtain availability stats from all pools", \
+        "osd", "r")
 COMMAND("osd utilization",
        "get basic pg distribution stats",
        "osd", "r")