From: Elena Gryaznova Date: Mon, 30 Aug 2010 10:02:56 +0000 (+0400) Subject: b=23402 mmp_init() fix X-Git-Tag: 2.0.51.0~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2af44128fc2f69495a2ffa0302671dd337d837c9;p=fs%2Flustre-release.git b=23402 mmp_init() fix i=jian.yu --- diff --git a/lustre/tests/mmp.sh b/lustre/tests/mmp.sh index fe0eafe..ea80120 100755 --- a/lustre/tests/mmp.sh +++ b/lustre/tests/mmp.sh @@ -159,13 +159,15 @@ mmp_init() { # Otherwise, the Lustre administrator has to manually enable # this feature when the file system is unmounted. - if [ -z "$mdsfailover_HOST" ]; then + local var=${MMP_MDS}failover_HOST + if [ -z "${!var}" ]; then log "Failover is not used on MDS, enabling MMP manually..." enable_mmp $MMP_MDS $MMP_MDSDEV || \ error "failed to enable MMP on $MMP_MDSDEV on $MMP_MDS" fi - if [ -z "$ostfailover_HOST" ]; then + var=${MMP_OSS}failover_HOST + if [ -z "${!var}" ]; then log "Failover is not used on OSS, enabling MMP manually..." enable_mmp $MMP_OSS $MMP_OSTDEV || \ error "failed to enable MMP on $MMP_OSTDEV on $MMP_OSS"