[LU-5149] Create debug_upcall script which dumps ldlm namespaces to log file Created: 05/Jun/14  Updated: 26/Aug/15  Resolved: 26/Aug/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.8.0

Type: New Feature Priority: Minor
Reporter: Ryan Haasken Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Rank (Obsolete): 14211

 Description   

When Lustre dumps logs (e.g., upon eviction when dump_on_eviction is set), it would also be useful to get a dump of the ldlm namespaces to see which locks are held at the time the dump occurred.

The easiest and least intrusive way to do this would be by providing a script that dumps the ldlm namespaces and appends that dumped information to the log dump file. Then we can use "lctl set_param debug_log_upcall=/path/to/script" to set the debug upcall to call this script whenever libcfs_debug_dumplog is called. Such a script should be provided and packaged with Lustre.



 Comments   
Comment by Peter Jones [ 06/Jun/14 ]

http://review.whamcloud.com/#/c/10617/

Comment by Gerrit Updater [ 26/Aug/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/10617/
Subject: LU-5149 utils: Create debug upcall to dump ldlm namespaces
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: dcb9169ceea7a054760a5536c4197ba20ecf31a8

Comment by Joseph Gmitter (Inactive) [ 26/Aug/15 ]

Landed for 2.8.

Generated at Sat Feb 10 01:48:57 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.