- Call the right function to shutdown the osts
- just sleep when powering off the machine.
- use checkstat, instead of ls -ld
NETTYPE=${NETTYPE:-tcp}
TIMEOUT=${TIMEOUT:-30}
-PTLDEBUG=${PTLDEBUG:-'"ha|info|ioctl|malloc"'}
+PTLDEBUG=${PTLDEBUG:-0}
MOUNT=${MOUNT:-"/mnt/lustre"}
#CLIENT_UPCALL=${CLIENT_UPCALL:-`pwd`/client-upcall-mdev.sh}
UPCALL=${CLIENT_UPCALL:-`pwd`/replay-single-upcall.sh}
[ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
wait_for mds
start mds $MDSLCONFARGS ${REFORMAT}
- while ! $PDSH $HOST "ls -ld $LUSTRE"; do sleep 5; done
+ while ! $PDSH $HOST "$CHECKSTAT -t dir $LUSTRE"; do sleep 5; done
do_node $CLIENTS lconf --node client_facet \
--select mds_service=$ACTIVEMDS $XMLCONFIG
}
#OST Portion
echo "Failing OST"
- shutdown_node ost2
+ shutdown_facet ost2
reboot_facet ost2
#Check FS
#OST Portion
echo "Failing OST"
- shutdown_node ost1
+ shutdown_facet ost1
reboot_facet ost1
#Check FS
#OST Portion
echo "Failing OST"
- shutdown_node ost1
+ shutdown_facet ost1
reboot_facet ost1
#Check FS
facet=$1
if [ "$FAILURE_MODE" = HARD ]; then
$POWER_DOWN `facet_active_host $facet`
+ sleep 2
elif [ "$FAILURE_MODE" = SOFT ]; then
stop $facet --force --failover --nomod
fi
wait_for_host() {
HOST=$1
check_network $HOST 900
- while ! $PDSH $HOST "ls -ld $LUSTRE"; do sleep 5; done
+ while ! $PDSH $HOST "$CHECKSTAT -t dir $LUSTRE"; do sleep 5; done
}
wait_for() {
facet=$1
echo "Failing $facet node `facet_active_host $facet`"
shutdown_facet $facet
- sleep 2
reboot_facet $facet
client_df &
DFPID=$!