[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 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 |