Bug #21040
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
[Adding ceph-devel]
Quoted 10 lines · Igor Fedotov
OK, got it. Thanks!
Here is the initial list of potential breakage cases and repair actions we can start with:
1) Expected(real) vs. tracked StatFS mismatch. Fix action - update KV to the real values.
2) Missed shared blob record (but referring blobs are consistent). Fix - recreate shared blob record
Should double check the existing checks verify the extents are alloctaed by these objects and not any others. (I think this is the case!)
Quoted 7 lines
3) Shared blob record is inconsistent (expected != tracked) with referring blobs but blobs themselves are consistent). Fix - update shared blob record.
4) Bad shared blob record key (
get_key_shared_blob()returns an error) - remove the record5) Stray shared blob record - remove the record
And, again, verify the extents are consistent (not allocated).
Quoted 9 lines
6) Multiple blobs refer the same pextent ("extent or a subset is already allocated") but their
shared_blobsinfo (including shared flag itself) is missed/inconsistent.6.1) Referring blobs have consistent attributes (the same collection(pool?), compression/csum flags, csum values etc). Csum values match the actual data. Fix - attach properly configured
shared_bloband mark blobs as shared.
Quoted 4 lines
6.2) Referring blobs have inconsistent attributes. Don't see the perfect path to fix that. May be something like that: split/duplicate intersected pextents and update corresponding references to them along with csums while leaving other blob attributes as-is?
This is what I was thinking before: allocate new extents and update the blobs to point to those (no longer shared) extents. One or more of the objects may then fail a csum, but at least it is confined to the one object so the OSD repair can clean it up.
Quoted 1 line
What do you think? Anything to add?
This is a great list and a fine start! :)
sage
Quoted 44 lines
Igor
Quoted 37 lines · Sage Weil
Yeah, the bug is fixed, but we don't have a way to repair stores that got into the broken state (due to this or similar bugs). What I think we need is for fsck(repair=true) to be able to fix it when the sharedblob refs are wrong.
In this case, the bug caused all replicas to be corrupted in teh same way, so there was no clear way for them to recover from the situation.
s
Quoted 24 lines · Igor Fedotov
Hi Sage,
AFAIR last week you asked me to take a look at the subj
http://tracker.ceph.com/issues/21040I checked available materials and it looks like your suggestion that it duplicates http://tracker.ceph.com/issues/20983
is valid. Probably except the last notes from Wang Guogin who might experience
a different issue.Would you please clarify if you wanted me to anything else on that bug.
Thanks,
Igor