Project

General

Profile

Feature #21888

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

Added by Ivan Guan about 1 year ago. Updated 8 months ago.

Status:
Need Review
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
10/22/2017
Due date:
10/23/2017
% Done:

0%

Source:
Community (user)
Tags:
Backport:
mimic,luminous
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.

journal_scan.1.png View (4.04 KB) Ivan Guan, 10/22/2017 06:04 AM

journal_scan.2.png View (11.3 KB) Ivan Guan, 10/22/2017 06:04 AM

History

#2 Updated by Jos Collin about 1 year ago

  • Assignee changed from Jos Collin to Ivan Guan

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

#3 Updated by Patrick Donnelly about 1 year ago

  • Project changed from Ceph to fs
  • Category deleted (129)
  • Source set to Community (user)
  • Component(FS) tools added

#4 Updated by Patrick Donnelly 8 months ago

  • Status changed from New to Need Review

#5 Updated by Patrick Donnelly 8 months ago

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

Also available in: Atom PDF