Project

General

Profile

Actions

Bug #63301

open

cephfs-data-scan: may remove newest primary link of inode

Added by Patrick Donnelly over 2 years ago. Updated 5 months ago.

Status:
Pending Backport
Priority:
High
Category:
-
Target version:
% Done:

0%

Source:
Support
Backport:
squid,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
tools
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v19.3.0-7392-gaaee9588b9
Released In:
v20.2.0~1187
Upkeep Timestamp:
2025-11-01T00:58:23+00:00

Description

sh-4.4$ cephfs-data-scan scan_links --filesystem <fs>
2023-10-24T08:04:06.078+0000 7f7911f4b440 -1 datascan.scan_links: Remove duplicated ino 0x0x10003afe43a from 0x100003ff439/f1.log
2023-10-24T08:04:06.078+0000 7f7911f4b440 -1 datascan.scan_links: Remove duplicated ino 0x0x10003b10002 from 0x100003ff431/f2.log
2023-10-24T08:04:06.078+0000 7f7911f4b440 -1 datascan.scan_links: Remove duplicated ino 0x0x10003b17eba from 0x100003ff435/f3.log
2023-10-24T08:04:06.090+0000 7f7911f4b440 -1 datascan.scan_links: Unexpected error reading dentry 0x100003ff439/f1.log: (2) No such file or directory

file names sanitized.

The f1.log dentry was removed and then used for updating nlinks.

The error crash caused remaining metadata to not be updated. That should be avoided if necessary in addition to fixing the logic error.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #69853: reef: cephfs-data-scan: may remove newest primary link of inodeDuplicatePatrick DonnellyActions
Copied to CephFS - Backport #69854: squid: cephfs-data-scan: may remove newest primary link of inodeDuplicatePatrick DonnellyActions
Actions #1

Updated by Venky Shankar over 2 years ago

  • Status changed from New to Triaged
  • Assignee set to Venky Shankar
Actions #2

Updated by Venky Shankar about 2 years ago

  • Status changed from Triaged to Fix Under Review
  • Pull request ID set to 54971
Actions #3

Updated by Patrick Donnelly about 1 year ago

  • Status changed from Fix Under Review to In Progress
  • Assignee changed from Venky Shankar to Patrick Donnelly
  • Target version changed from v19.0.0 to v20.0.0
  • Backport changed from reef,quincy to squid,reef
Actions #4

Updated by Patrick Donnelly about 1 year ago

  • Pull request ID changed from 54971 to 61548
Actions #5

Updated by Patrick Donnelly about 1 year ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID changed from 61548 to 61562
Actions #6

Updated by Patrick Donnelly about 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #7

Updated by Upkeep Bot about 1 year ago

  • Copied to Backport #69853: reef: cephfs-data-scan: may remove newest primary link of inode added
Actions #8

Updated by Upkeep Bot about 1 year ago

  • Copied to Backport #69854: squid: cephfs-data-scan: may remove newest primary link of inode added
Actions #9

Updated by Upkeep Bot about 1 year ago

  • Tags (freeform) set to backport_processed
Actions #10

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to aaee9588b91fd14295579e6185dd6dc895804165
  • Fixed In set to v19.3.0-7392-gaaee9588b91
  • Upkeep Timestamp set to 2025-07-09T16:09:12+00:00
Actions #11

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v19.3.0-7392-gaaee9588b91 to v19.3.0-7392-gaaee9588b9
  • Upkeep Timestamp changed from 2025-07-09T16:09:12+00:00 to 2025-07-14T17:41:45+00:00
Actions #12

Updated by Upkeep Bot 5 months ago

  • Released In set to v20.2.0~1187
  • Upkeep Timestamp changed from 2025-07-14T17:41:45+00:00 to 2025-11-01T00:58:23+00:00
Actions

Also available in: Atom PDF