Whamcloud - gitweb
current branches now use lnet from HEAD
[fs/lustre-release.git] / lustre / tests / replay-ost-upcall.sh
1 #!/bin/sh
2
3
4 TESTDIR=`dirname $0`
5 LUSTRE=$TESTDIR/..
6
7 exec >> $TESTDIR/recovery-`hostname`.log
8 exec 2>&1
9
10 set -xv
11
12 failed_import() {
13 #    $LUSTRE/utils/lctl --device %$3 recover ||
14 #        logger -p kern.info recovery failed: $@
15
16     if [ -f $LUSTRE/tests/ostactive ] ; then
17         source $LUSTRE/tests/ostactive
18     else
19         ostactive=ost
20     fi
21
22     $LUSTRE/utils/lconf --verbose --recover --node client_facet  \
23       --select ost1=${ostactive}_facet\
24      --tgt_uuid $2 --client_uuid $3 --conn_uuid $4 $TESTDIR/replay-ost-single.xml
25
26 }
27
28 recovery_over() {
29     logger -p kern.info upcall: $@
30 }
31
32
33 case "$1" in
34 FAILED_IMPORT) failed_import $@
35                ;;
36 RECOVERY_OVER) recovery_over $@
37                ;;
38 esac