Project

General

Profile

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

Added by Md Mahamudur Rahaman Sajib almost 2 years ago. Updated 30 days ago.

Status:
Backporting
Priority:
Normal
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):
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.

  1. Create a directory e.g, /dir
  2. Create a file inside /dir , e.g. /dir/x.txt
  3. Create a link e.g. /y.txt of /dir/x.txt
  4. remove the associdated inode object of /dir from the meta pool(Just to create the damage forcefully)
  5. Try to stat the /y.txt and damage will occur.
  6. Remove the damage from the damage list
  7. 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)?

Related issues 3 (1 open — 2 closed)

Copied to CephFS - Backport #73303: squid: For an irreparable hard link scrub is not able to identify the damageFix Under ReviewMd Mahamudur Rahaman Sajib

Actions
Copied to CephFS - Backport #73304: tentacle: For an irreparable hard link scrub is not able to identify the damageResolvedJos Collin

Actions
Copied to CephFS - Backport #73373: reef: For an irreparable hard link scrub is not able to identify the damageRejectedMd Mahamudur Rahaman Sajib

Actions

MS Updated by Md Mahamudur Rahaman Sajib almost 2 years ago Actions #1

  • 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 Actions #2

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 Actions #3

  • Status changed from New to Fix Under Review
  • Pull request ID set to 61173

VS Updated by Venky Shankar almost 2 years ago Actions #4

  • 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 Actions #5

  • 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 Actions #6

  • 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 Actions #7

  • 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 Actions #8

  • 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 Actions #9

  • 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 Actions #10

  • Tags (freeform) set to backport_processed

MS Updated by Md Mahamudur Rahaman Sajib about 1 year ago Actions #11

  • Backport changed from tentacle,squid to tentacle,squid,reef

MS Updated by Md Mahamudur Rahaman Sajib about 1 year ago Actions #12

  • 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 Actions #13

  • 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 Actions #14

  • 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 Actions #15

  • 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

Also available in: PDF Atom