Project

General

Profile

Actions

Bug #68954

closed
JC JC

cephfs-journal-tool: check the headers in dump file after journal recovery

Bug #68954: cephfs-journal-tool: check the headers in dump file after journal recovery

Added by Jos Collin about 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
tools
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.0.0-1628-gbbed733090
Released In:
v20.2.0~523
Upkeep Timestamp:
2026-08-28T01:35:04+00:00

Description

Check the headers in dump file after journal recovery. Otherwise, importing a file with Invalid Header, would lead to 'Journal not readable'.

$  ./bin/cephfs-journal-tool --rank a:0 journal export ./file1 
journal is 4194304~940
wrote 940 bytes at offset 4194304 to ./file1
NOTE: this is a _sparse_ file; you can
    $ tar cSzf ./file1.tgz ./file1
      to efficiently compress it while preserving sparseness.

# Edit file1 to have an invalid header.

$ ./bin/cephfs-journal-tool --rank a:0  journal import file1
undump file1
start 4194304 len 940 write_pos 4194304 format 1 trimmed_pos 4194304 stripe_unit 4194304 stripe_count 1 object_size 4194304
writing header 200.00000000
Purging 2 objects from 1
 writing 4194304~940
2024-11-14T10:49:58.964+0530 7f13452c9300 -1 Failed to write header: (22) Invalid argument
Error ((22) Invalid argument)

$ rm file1

$  ./bin/cephfs-journal-tool --rank a:0 journal export ./file1 
2024-11-14T10:50:42.591+0530 7f9e60adf300 -1 Missing object 200.00000001
Error ((5) Input/output error)
2024-11-14T10:50:42.592+0530 7f9e60adf300 -1 journal_export: Journal not readable, attempt object-by-object dump with `rados`

$  ./bin/cephfs-journal-tool --rank a:0 journal export ./file1 
2024-11-14T10:50:42.591+0530 7f9e60adf300 -1 Missing object 200.00000001
Error ((5) Input/output error)
2024-11-14T10:50:42.592+0530 7f9e60adf300 -1 journal_export: Journal not readable, attempt object-by-object dump with `rados`


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #71036: reef: cephfs-journal-tool: check the headers in dump file after journal recoveryResolvedJos Collin

Actions
Copied to CephFS - Backport #71037: squid: cephfs-journal-tool: check the headers in dump file after journal recoveryResolvedJos Collin

Actions

JC Updated by Jos Collin about 2 years ago Actions #1

  • Project changed from Ceph to CephFS
  • Category set to Administration/Usability
  • Source set to Community (dev)

JC Updated by Jos Collin about 2 years ago Actions #2

  • Status changed from New to In Progress
  • Pull request ID set to 60731

VS Updated by Venky Shankar about 2 years ago Actions #3

  • Status changed from In Progress to Fix Under Review
  • Assignee set to Jos Collin
  • Target version set to v20.0.0
  • Backport set to quincy,reef,squid
  • Component(FS) tools added

KS Updated by Konstantin Shalygin almost 2 years ago Actions #4

  • Backport changed from quincy,reef,squid to reef,squid

RD Updated by Rishabh Dave over 1 year ago Actions #5

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot over 1 year ago Actions #6

  • Copied to Backport #71036: reef: cephfs-journal-tool: check the headers in dump file after journal recovery added

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Copied to Backport #71037: squid: cephfs-journal-tool: check the headers in dump file after journal recovery added

UB Updated by Upkeep Bot over 1 year ago Actions #8

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #9

  • Merge Commit set to bbed733090899ea97435ea3c4403d152af7454dd
  • Fixed In set to v20.0.0-1628-gbbed7330908
  • Upkeep Timestamp set to 2025-07-08T18:34:05+00:00

JC Updated by Jos Collin over 1 year ago Actions #10

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #11

  • Fixed In changed from v20.0.0-1628-gbbed7330908 to v20.0.0-1628-gbbed733090
  • Upkeep Timestamp changed from 2025-07-08T18:34:05+00:00 to 2025-07-14T17:10:37+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #12

  • Released In set to v20.2.0~523
  • Upkeep Timestamp changed from 2025-07-14T17:10:37+00:00 to 2025-11-01T01:27:54+00:00

UB Updated by Upkeep Bot 3 months ago Actions #13

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:27:54+00:00 to 2026-08-28T01:35:04+00:00
Actions

Also available in: PDF Atom