X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmmp.sh;h=17496739ace6500f0765c99484179c8e6d8f47f3;hb=326341889117faa5e7cbb05de66d759200405525;hp=2ac19dfeb4f3661b5de650f49cda39747a15c70e;hpb=c14194fd33ccb3a5a6f3899a111f72dfaad52c11;p=fs%2Flustre-release.git diff --git a/lustre/tests/mmp.sh b/lustre/tests/mmp.sh index 2ac19df..1749673 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" @@ -183,7 +185,8 @@ mmp_init() { # which did not use failover. mmp_fini() { - if [ -z "$mdsfailover_HOST" ]; then + local var=${MMP_MDS}failover_HOST + if [ -z "${!var}" ]; then log "Failover is not used on MDS, disabling MMP manually..." disable_mmp $MMP_MDS $MMP_MDSDEV || \ error "failed to disable MMP on $MMP_MDSDEV on $MMP_MDS" @@ -191,7 +194,8 @@ mmp_fini() { error "MMP was not disabled 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, disabling MMP manually..." disable_mmp $MMP_OSS $MMP_OSTDEV || \ error "failed to disable MMP on $MMP_OSTDEV on $MMP_OSS" @@ -348,7 +352,7 @@ mount_after_reboot() { if [ "$FAILURE_MODE" = "HARD" ]; then shutdown_facet $facet reboot_facet $facet - wait_for $facet + wait_for_facet $facet else replay_barrier_nodf $facet fi