Whamcloud - gitweb
b=22296 Fix script problem for recovery-double-scale
authorWang Di <Tom.Wang@sun.com>
Thu, 22 Apr 2010 19:15:20 +0000 (12:15 -0700)
committerRobert Read <robert.read@oracle.com>
Thu, 22 Apr 2010 19:15:20 +0000 (12:15 -0700)
Force the test threads stopped before shutdown the clients in
recovery-double-scale.

i=Jack.Chen
i=WangDi

lustre/tests/recovery-double-scale.sh

index 73d96f9..f88afae 100644 (file)
@@ -77,6 +77,9 @@ reboot_recover_node () {
                 [ "$SERIAL" ] && wait_recovery_complete $item $((timeout * 4)) || true
                 ;;
        clients) for c in ${item//,/ }; do
+                      # make sure the client loads die
+                      do_nodes $c "set -x; test -f $TMP/client-load.pid && \
+                             { kill -s TERM \$(cat $TMP/client-load.pid) || true; }"
                       shutdown_client $c
                       boot_node $c
                       echo "Reintegrating $c"