Project

General

Profile

Feature #9951

librados, osd: per-object scrub operation

Added by Sage Weil over 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

librados operation to scrub a single object.

History

#1 Updated by Sage Weil over 9 years ago

  • Description updated (diff)

#2 Updated by Sage Weil over 9 years ago

  • Target version deleted (0.90)

#3 Updated by jianpeng ma over 9 years ago

Hi sage:
I'm interested in this feature(From that i'll know the process of scurb). Is there somebody already did this? If no, i want to do this.
I think we can firstly implement this feature for ceph cli.
The command like: ceph object scrub/deep-scrub/repair poolname objectname namespace.
We can handle this in PGMonitor::handle_command
a:copy code from "ceph osd map poolname objectname" to calc the pgid
b:copy code from "ceph pg scrub/deep-scrub/repair"

In osd side:
a:change struct MOSDScrub which add object info
b:add objects into pgs
c:start pg scrub and pick objects. I think this is the main and relative difficult.

BTY: for osd/pg scrub, we can use rados_mon_command to handle. For object scrub, using the same way or add a new api?

Hope none already did and my thought correct. Thanks!

#4 Updated by Adam Manzanares over 8 years ago

Is this thread still alive.

I have seen the blueprint to allow librados to query scrub info and trigger repair.
https://wiki.ceph.com/Planning/Blueprints/Infernalis/osd%3A_Scrub_and_Repair

Is there any plan to write per object scrub code?

Also available in: Atom PDF