Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eacead7
)
added test of /proc/fs/lustre/health_check
author
cliffw
<cliffw>
Wed, 3 Aug 2005 19:18:30 +0000
(19:18 +0000)
committer
cliffw
<cliffw>
Wed, 3 Aug 2005 19:18:30 +0000
(19:18 +0000)
lustre/scripts/lustre
patch
|
blob
|
history
diff --git
a/lustre/scripts/lustre
b/lustre/scripts/lustre
index
24061bc
..
72a744d
100755
(executable)
--- a/
lustre/scripts/lustre
+++ b/
lustre/scripts/lustre
@@
-131,7
+131,12
@@
status() {
# check for servers in recovery
[ "$MDS$OST" ] && grep -q RECOV $MDS $OST && STATE="recovery"
- [ "`dmesg | grep LBUG`" ] && STATE="LBUG"
+ # check for error in health_check
+ HEALTH="/proc/fs/lustre/health_check"
+ [ -f "$HEALTH" ] && grep -q "NOT HEALTHY" $HEALTH && STATE="unhealthy"
+
+ # check for LBUG
+ [ -f "$HEALTH" ] && grep -q "LBUG" $HEALTH && STATE="LBUG"
echo $STATE
}