[LU-14165] llog_reader: Add debugging information for a corrupted llog catalog Created: 01/Dec/20  Updated: 05/Jun/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Etienne Aujames Assignee: Etienne Aujames
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-14098 LustreError: 19003:0:(osp_sync.c:350:... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

When I was working on LU-14158, I have done some changes on llog_reader to understand/debug llog catalog.

So I share my changes here, in case of someone is interested.

Te patches include the following changes:

  • Compute/display the first and last index for a catalog
  • Check if a catallog record index is in range
  • Display records from the first index in catalog
  • Check llh_count with the the llog header bitset
  • In some cases corruption, display the valid records.
  • Add a "print" function for changelog_user records


 Comments   
Comment by Gerrit Updater [ 01/Dec/20 ]

Etienne AUJAMES (eaujames@ddn.com) uploaded a new patch: https://review.whamcloud.com/40817
Subject: LU-14165 utils: debugging corrupted catalog with llog_reader
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c4faae9448e513d021f95ada3eb9f98711f039d3

Comment by Gerrit Updater [ 01/Dec/20 ]

Etienne AUJAMES (eaujames@ddn.com) uploaded a new patch: https://review.whamcloud.com/40818
Subject: LU-14165 utils: llog_reader: display changleog_user records
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8fb9959df38ea651afbacfc51942627f36e1a85a

Comment by Peter Jones [ 01/Dec/20 ]

bzzz this seems to be similar to something that you have been working on recently.

Comment by Alex Zhuravlev [ 11/Dec/20 ]

pjones thanks, eaujames please, have a look at https://review.whamcloud.com/#/c/40754/

Comment by Gerrit Updater [ 15/Oct/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/40818/
Subject: LU-14165 utils: llog_reader: display changleog_user records
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b94d1c8021298158efe72a2d94e6e9d286a8069a

Comment by Gerrit Updater [ 05/Jun/23 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51219
Subject: LU-14165 utils: llog_reader: display changleog_user records
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: a37b3591dbe80314391a5ae847b326ae120d10d9

Generated at Sat Feb 10 03:07:24 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.