Show information about the current Ceph Scrub situation
This script shows information about the current Scrubbing in Ceph. It is useful to determine how many deep scrubs are working or waiting and what they are currently doing. You can see which PGs have not been scrubbed for the longest time and highlighted in color which OSD is blocking the PG that has been waiting for deep-scrub the longest.
This script is a Perl Rewrite of an AWK script published by Frank Schilder on the Ceph Users mailing list: https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/YUHWQCDAKP5MPU6ODTXUSKT7RVPERBJF/
I wanted to expand the script and do not speak AWK.
The Future Is Here: https://github.com/frans42/ceph-goodies
This is a heuristic that can be used to selectively request a few PG to perform a deep scrub soon. Use sparingly, as the flags set the cluster to HEALTH_WARN.