Actions
Bug #69345
closed
MS
MS
For an irreparable hard link scrub is not able to identify the damage
Bug #69345:
For an irreparable hard link scrub is not able to identify the damage
Status:
Backporting
Priority:
Normal
Assignee:
Category:
Administration/Usability
Target version:
Due date:
% Done:
0%
Source:
Community (dev)
Backport:
tentacle,squid,reef
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
scrub
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-3322-g7ce4252964
Released In:
v21.2.0~1962
Upkeep Timestamp:
2026-11-04T01:07:05+00:00
Description
We have a known damage in a production cluster, https://tracker.ceph.com/issues/60986#note-15
We know that damage is irreparable as there has been a data loss.
I am able to reproduce it easily by some hack.
- Create a directory e.g,
/dir - Create a file inside
/dir, e.g./dir/x.txt - Create a link e.g.
/y.txtof/dir/x.txt - remove the associdated inode object of
/dirfrom the meta pool(Just to create the damage forcefully) - Try to stat the
/y.txtand damage will occur. - Remove the damage from the damage list
- Scrub the root directory, damage list will remain empty.
I found in the ScrubStack.cc code,
if (dnl->is_primary()) {
_enqueue(dnl->get_inode(), header, false);
} else if (dnl->is_remote()) {
// TODO: check remote linkage
}
If dnl->is_remote() it is doing nothing, there is TODO marked. What should be ideal in this case as doing scrub will make redundant scrub operations on a single inode. In that case can we just try to open the inode using
MDCache::open_remote_dentry(CDentry *dn, bool projected, MDSContext *fin, bool want_xlocked)(This is they way used for finding damage while path traversal)?
MS Updated by Md Mahamudur Rahaman Sajib almost 2 years ago
- Subject changed from For a irreparable hard link scrub is not able to identify the damage to For an irreparable hard link scrub is not able to identify the damage
MS Updated by Md Mahamudur Rahaman Sajib almost 2 years ago ยท Edited
Scrub the root directory, damage list will remain empty.
Whenever we tried to stat /y.txt damage will re-appear again.
MS Updated by Md Mahamudur Rahaman Sajib almost 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 61173
VS Updated by Venky Shankar almost 2 years ago
- Category set to Administration/Usability
- Target version set to v20.0.0
- Source set to Community (dev)
- Backport changed from reef, quincy, squid to reef,squid
VS Updated by Venky Shankar over 1 year ago
- Target version changed from v20.0.0 to v21.0.0
- Backport changed from reef,squid to tentacle,squid,reedf
VS Updated by Venky Shankar about 1 year ago
- Status changed from Fix Under Review to Pending Backport
- Backport changed from tentacle,squid,reedf to tentacle,squid
UB Updated by Upkeep Bot about 1 year ago
- Merge Commit set to 7ce425296461505a04bb69939b366436230b63c0
- Fixed In set to v20.3.0-3322-g7ce4252964
- Upkeep Timestamp set to 2025-09-29T14:10:50+00:00
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73303: squid: For an irreparable hard link scrub is not able to identify the damage added
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73304: tentacle: For an irreparable hard link scrub is not able to identify the damage added
UB Updated by Upkeep Bot about 1 year ago
- Tags (freeform) set to backport_processed
MS Updated by Md Mahamudur Rahaman Sajib about 1 year ago
- Backport changed from tentacle,squid to tentacle,squid,reef
MS Updated by Md Mahamudur Rahaman Sajib about 1 year ago
- Copied to Backport #73373: reef: For an irreparable hard link scrub is not able to identify the damage added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-09-29T14:10:50+00:00 to 2026-08-27T18:12:54+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1961
- Upkeep Timestamp changed from 2026-08-27T18:12:54+00:00 to 2026-10-24T01:08:37+00:00
UB Updated by Upkeep Bot 30 days ago
- Released In changed from v21.2.0~1961 to v21.2.0~1962
- Upkeep Timestamp changed from 2026-10-24T01:08:37+00:00 to 2026-11-04T01:07:05+00:00
Actions