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`
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.