Bug #24644
closed
cephfs-journal-tool: wrong layout info used
Added by cory gu almost 6 years ago.
Updated over 5 years ago.
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.
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
- Project changed from Ceph to CephFS
- 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
- Status changed from New to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #24933: mimic: cephfs-journal-tool: wrong layout info used added
- Copied to Backport #24934: luminous: cephfs-journal-tool: wrong layout info used added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF