diff --git a/lustre/tests/cfg/local.sh b/lustre/tests/cfg/local.sh
index 85649af2cc0506657d66a1d52744467a6ab58b05..f958d585591c4260f049b38d416acc9878b121df 100644
--- a/lustre/tests/cfg/local.sh
+++ b/lustre/tests/cfg/local.sh
@@ -5,7 +5,7 @@ mds_HOST=${mds_HOST:-`hostname`}
 mdsfailover_HOST=${mdsfailover_HOST}
 mds1_HOST=${mds1_HOST:-$mds_HOST}
 mds1failover_HOST=${mds1failover_HOST:-$mdsfailover_HOST}
-mgs_HOST=${mgs_HOST:-$mds_HOST}
+mgs_HOST=${mgs_HOST:-$mds1_HOST}
 ost_HOST=${ost_HOST:-`hostname`}
 ostfailover_HOST=${ostfailover_HOST}
 CLIENTS=""