Actions
Feature #39362
openignore osd_max_scrubs for forced repair
Status:
New
Priority:
Normal
Assignee:
David Zafman
Category:
Scrub/Repair
Target version:
-
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Reviewed:
Description
On clusters with quite full PGs, it is common (i.e. ~100% sure) that a `ceph pg repair <pgid>` does not start immediately, because the relevant osds have their osd_max_scrubs (default 1) already reserved by deep scrubs.
The unintuitive workaround is:
ceph osd set nodeep-scrub
ceph osd set noscrub
ceph tell osd.* injectargs -- --osd_max_scrubs=2
ceph pg repair ...
ceph tell osd.* injectargs -- --osd_max_scrubs=1
ceph osd unset nodeep-scrub
ceph osd unset noscrub
It would be more intuitive if forced repairs started immediately irrespective of the osd_max_scrubs configuration.
Updated by David Zafman over 3 years ago
- Related to Feature #41363: Allow user to cancel scrub requests added
Updated by David Zafman over 3 years ago
We probably should only do this if #41363 has been implemented together or beforehand. Since too many repairs could impact performance, the admin might want to cancel repairs he initiated. Note that noscrub/nodeep-scrub doesn't apply to requested repairs.
Actions