Project

General

Profile

Actions

Feature #55414

open

mds:asok interface to cleanup permanently damaged inodes

Added by Venky Shankar about 2 years ago. Updated 7 months ago.

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

0%

Source:
Tags:
Backport:
quincy
Reviewed:
Affected Versions:
Component(FS):
MDS
Labels (FS):
task(medium)
Pull request ID:

Description

There exists a nagging bug in the MDS due to a corrupt on-disk inode causing and assert in the MDS when removing the "corrupted" file. The corruption has been reported in this tracker: https://tracker.ceph.com/issues/38452 and happens when using PostgreSQL with CephFS. The workaround for this is to remove the corrupted inodes omap key/value entry from its corresponding parent rados object. While this workaround the crash MDS, it leaves the non-primary links in a dangling state (since the primary link was removed to workaround the crash) and gets ended up being marked as damaged by the MDS thereby rendering it inaccessible.

At times, these damaged links are not of much interest (as seen in some installations, where the files are a part of a CephFS subvolume which is under deletion), however, one still cannot remove such damaged links. For such occasions, its probably safe to remove the damaged inode metadata ("link" on-disk inode). Provide a mechanism for the administrator to purge damaged metadata for inodes of damage_type "backtrace" (bad remote dentry).

  1. ceph tell mds.<> damage purge <id>

Related issues 1 (1 open0 closed)

Related to CephFS - Bug #54546: mds: crash due to corrupt inode and omap entryNewPatrick Donnelly

Actions
Actions #1

Updated by Venky Shankar about 2 years ago

  • Related to Bug #54546: mds: crash due to corrupt inode and omap entry added
Actions #2

Updated by Patrick Donnelly 7 months ago

  • Target version changed from v18.0.0 to v19.0.0
Actions

Also available in: Atom PDF