Whamcloud - gitweb
b=23382 t-f: do_nodes(): wrong sed RE
[fs/lustre-release.git] / lustre / tests / run-llog.sh
index aa41fa1..e8d1826 100644 (file)
@@ -21,8 +21,8 @@ load_llog_test() {
 PATH=`dirname $0`:$LUSTRE/utils:$PATH
 TMP=${TMP:-/tmp}
 
-MGS=`lctl dl | awk '/mgs/ { print $4 }'`
-[ -z "$MGS" ] && echo "$0: SKIP: no MGS available, skipping llog test" && exit 0
+MDS=`lctl dl | grep mds | awk '{print $4}' | head -n 1`
+[ -z "$MDS" ] && echo "$0: SKIP: no MDS available, skipping llog test" && exit 0
 
 load_llog_test || exit 0
 lctl modules > $TMP/ogdb-`hostname`
@@ -31,7 +31,7 @@ echo "NOW reload debugging syms.."
 RC=0
 lctl <<EOT || RC=2
 attach llog_test llt_name llt_uuid
-setup $MGS
+setup $MDS
 EOT
 
 # Using ignore_errors will allow lctl to cleanup even if the test fails.