build_test_filter
-assert_env mds_HOST MDS_MKFS_OPTS MDSDEV
+assert_env mds_HOST MDS_MKFS_OPTS
assert_env ost_HOST OST_MKFS_OPTS OSTCOUNT
assert_env LIVE_CLIENT FSNAME
echo "Starting Test 17 at `date`"
test_0() {
- facet_failover mds
+ facet_failover $SINGLEMDS
echo "Waiting for df pid: $DFPID"
wait $DFPID || { echo "df returned $?" && return 1; }
echo "Verify Lustre filesystem is up and running"
client_df
- shutdown_facet mds
- reboot_facet mds
+ shutdown_facet $SINGLEMDS
+ reboot_facet $SINGLEMDS
# prepare for MDS failover
- change_active mds
- reboot_facet mds
+ change_active $SINGLEMDS
+ reboot_facet $SINGLEMDS
client_df &
DFPID=$!
wait_for ost1
start_ost 1 || return 2
- wait_for mds
- start mds $MDSDEV $MDS_MOUNT_OPTS || return $?
+ wait_for $SINGLEMDS
+ start $SINGLEMDS `mdsdevname 1` $MDS_MOUNT_OPTS || return $?
#Check FS
wait $DFPID
echo "Verify Lustre filesystem is up and running"
#MDS Portion
- facet_failover mds
+ facet_failover $SINGLEMDS
wait $DFPID || echo df failed: $?
#Check FS
reintegrate_clients || return 1
client_df || return 3
+ sleep 2 # give it a little time for fully recovered before next test
}
run_test 3 "Thirdb Failure Mode: MDS/CLIENT `date`"
###################################################
sleep 5
#MDS Portion
- shutdown_facet mds
- reboot_facet mds
+ shutdown_facet $SINGLEMDS
+ reboot_facet $SINGLEMDS
# prepare for MDS failover
- change_active mds
- reboot_facet mds
+ change_active $SINGLEMDS
+ reboot_facet $SINGLEMDS
client_df &
DFPIDB=$!
wait_for ost1
start_ost 1
- wait_for mds
- start mds $MDSDEV $MDS_MOUNT_OPTS
+ wait_for $SINGLEMDS
+ start $SINGLEMDS `mdsdevname 1` $MDS_MOUNT_OPTS
#Check FS
wait $DFPIDA
client_rm testfile
#MDS Portion
- facet_failover mds
+ facet_failover $SINGLEMDS
#Check FS
echo "Test Lustre stability after MDS failover"
}
run_test 10 "Running Availability for 6 hours..."
-equals_msg "Done, cleaning up"
+equals_msg `basename $0`: test complete, cleaning up
$CLEANUP
-echo "$0: completed"
-
+[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true