[LU-2376] Need a sanity check to ensure readable proc files are readable Created: 21/Nov/12  Updated: 10/Mar/13  Resolved: 10/Mar/13

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: John Hammond Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 5642

 Description   

Lustre proc has gotten a little out of whack (see LU-2358, LU-2359, LU-2360, LU-2263). It seems worthwhile to add something like the following to sanity:

for dir in /proc/{fs/{lustre,ldiskfs},sys/{lustre,lnet}} ...; do
  if [ -d $dir ]; then
    find $dir -type f -readable -print -exec cat {} \; > /dev/null
  fi
done

It would be even better if the test failed when one of the reads returned an error. Of course before such a test can be landed the four issues listed above need to be addressed.



 Comments   
Comment by John Hammond [ 30/Nov/12 ]

Also we should check for broken symlinks.

Comment by John Hammond [ 29/Jan/13 ]

Also we should not test for readable, but just try to cat every regular file.

Comment by John Hammond [ 31/Jan/13 ]

A test that excludes req_history and fldb has been attached to http://review.whamcloud.com/5234.

Comment by John Hammond [ 10/Mar/13 ]

Landed with LU-2724.

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