############### Second Failure Mode ###############
test_2() {
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
client_df
shutdown_facet $SINGLEMDS
test_3() {
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
#MDS Portion
facet_failover $SINGLEMDS
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
client_df
#OST Portion
#Create files
echo "Verify Lustre filesystem is up and running"
- client_df || return 1
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
+ client_df
client_touch testfile || return 2
#OST Portion
wait $DFPIDA
wait $DFPIDB
echo "Verifying mount"
- client_df || return 3
+ [ -z "$(mounted_lustre_filesystems)" ] && return 3
+ client_df
}
run_test 6 "Sixth Failure Mode: OST/CLIENT `date`"
###################################################
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
client_df
client_touch testfile || return 1
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && return 2
+
client_df
client_rm testfile
#Reintegration
echo "Reintegrating CLIENTs"
- reintegrate_clients
- client_df || return 2
+ reintegrate_clients || return 2
+ client_df
#Sleep
echo "wait 1 minutes"
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
client_df
client_touch testfile
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
client_df
client_touch testfile
#Reintegration
echo "Reintegrating CLIENTs/OST"
- reintegrate_clients
+ reintegrate_clients || return 3
wait_for ost1
start_ost 1
wait $DFPID
#Create files
echo "Verify Lustre filesystem is up and running"
+ [ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
+
client_df
client_touch testfile || return 1
#Reintegration
echo "Reintegrating CLIENTs/CLIENTs"
- reintegrate_clients
- client_df || return 7
+ reintegrate_clients || return 7
+ client_df
#Sleep
echo "Wait 1 minutes"