Project

General

Profile

Bug #24644

cephfs-journal-tool: wrong layout info used

Added by cory gu 6 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
06/25/2018
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
tools
Labels (FS):
Pull request ID:

Description

when cephfs-journal-tool import journal, it uses default layout
to get object_size, this is wrong. Because default objetct_size
can be changed by Config option change mds_log_segment_size when
cluster initialized.


Related issues

Copied to fs - Backport #24933: mimic: cephfs-journal-tool: wrong layout info used Resolved
Copied to fs - Backport #24934: luminous: cephfs-journal-tool: wrong layout info used Resolved

History

#1 Updated by cory gu 6 months ago

The fix is save the layout info to header during journal export,
When improt journal, first try to get layout from cluster, if failed,
then get layout info from dumped journal file, if still failed, set
layout to default.

https://github.com/ceph/ceph/pull/22211

#2 Updated by Patrick Donnelly 6 months ago

  • Project changed from Ceph to fs
  • Subject changed from cephfs-journal-tool use wrong layout info to cephfs-journal-tool: wrong layout info used
  • Assignee set to cory gu
  • Target version set to v14.0.0
  • Source set to Community (dev)
  • Backport set to mimic,luminous
  • Component(FS) tools added

#3 Updated by Patrick Donnelly 6 months ago

  • Status changed from New to Need Review

#4 Updated by Patrick Donnelly 5 months ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #24933: mimic: cephfs-journal-tool: wrong layout info used added

#6 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #24934: luminous: cephfs-journal-tool: wrong layout info used added

#7 Updated by Patrick Donnelly about 1 month ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF