Project

General

Profile

Actions

Feature #21888

open

Adding [--repair] option for cephfs-journal-tool make it can recover all journal as much as possible.

Added by Ivan Guan over 6 years ago. Updated over 4 years ago.

Status:
Fix Under Review
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
tools
Labels (FS):
Pull request ID:

Description

As described in the document if a journal is damaged or for any reason an MDS is incapable of replaying it, attempt to recover what file metadata we can like so:
"cephfs-journal-tool event recover_dentries summary". I found a risk when research related code rencently which may lost journal log if it's damaged.The worse
case is if the length of journal is corrupt we may lost many journal.

Sample Graph

Of course if a journal data is corrupt we can throw it away, but if only the length or trailling is corrupt we should repair it as much as possible, in case of losting event.


Files

journal_scan.1.png (4.04 KB) journal_scan.1.png Ivan Guan, 10/22/2017 06:04 AM
journal_scan.2.png (11.3 KB) journal_scan.2.png Ivan Guan, 10/22/2017 06:04 AM
Actions #2

Updated by Jos Collin over 6 years ago

  • Assignee changed from Jos Collin to Ivan Guan

Assigning to Ivan, as he had already submitted a PR for this Feature.

Actions #3

Updated by Patrick Donnelly over 6 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (129)
  • Source set to Community (user)
  • Component(FS) tools added
Actions #4

Updated by Patrick Donnelly about 6 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Patrick Donnelly almost 6 years ago

  • Priority changed from Normal to High
  • Target version changed from v13.0.0 to v14.0.0
  • Backport set to mimic,luminous
Actions #6

Updated by Patrick Donnelly about 5 years ago

  • Target version changed from v14.0.0 to v15.0.0
Actions #7

Updated by Patrick Donnelly about 5 years ago

  • Backport changed from mimic,luminous to nautilus,mimic,luminous
  • Pull request ID set to 18465
Actions #8

Updated by Patrick Donnelly over 4 years ago

  • Target version deleted (v15.0.0)
  • Backport deleted (nautilus,mimic,luminous)
Actions

Also available in: Atom PDF