1 #need to get the functions defined in the cluster's .sh configuration
2 . $LTESTDIR/harness/config/$MACHINENAME/config.sh
3 # comma_list and friends
4 . $LTESTDIR/harness/config/common/utility_functions.sh
6 all_but_one_clients() {
9 for client in ${CLIENTS//,/ }; do
11 # don't include first client
12 clients="$clients $client"
19 # make sure client list is a comma separated list
20 CLIENTS=`comma_list $CLIENTS`
21 # could probably set this to $CLIENT1
22 #FAIL_CLIENT=${CLIENT1}
24 mds_HOST=${mds_HOST:-${MDSNODE1}}
25 mdsfailover_HOST=${mdsfailover_HOST:-${MDSNODE2}}
26 ost1_HOST=${ost1_HOST:-${OSTNODE1}}
27 ost2_HOST=${ost2_HOST:-${OSTNODE2}}
28 EXTRA_OSTS=${EXTRA_OSTS:-""}
29 client_HOST=${CLIENT1}
30 LIVE_CLIENT=${LIVE_CLIENT:-${CLIENT1}}
31 # This should always be a list, not a regexp
32 FAIL_CLIENTS=${FAIL_CLIENTS:-"`all_but_one_clients`"}
33 SINGLEMDS=${SINGLEMDS:-"mds"}
35 NETTYPE=${NETTYPE:-${NETTYPE}}
37 TIMEOUT=${TIMEOUT:-30}
38 PTLDEBUG=${PTLDEBUG:-0}
39 SUBSYSTEM=${SUBSYSTEM:-0}
40 MOUNT=${MOUNT:-${MOUNTPT}}
41 #UPCALL=${CLIENT_UPCALL:-"${LUSTRE_TESTS}/replay-single-upcall.sh"}
43 mdsdev1=${MDSDEV[1]:-$MDSDEVBASE}
44 MDSDEV=${MDSDEV:-${mdsdev1}}
46 # need to pull off the --size
47 if [ -n "$MDSSIZE" ]; then
48 MDSSIZE=`echo $MDSSIZE | awk '{print $2}'`
52 MDSJOURNALSIZE=${MDSJOURNALSIZE:-0}
54 ostdev1=${OSTDEV[1]:-$OSTDEVBASE}
55 OSTDEV=${OSTDEV:-${ostdev1}}
57 # need to pull off the --size
58 if [ -n "$OSTSIZE" ]; then
59 OSTSIZE=`echo $OSTSIZE | awk '{print $2}'`
63 OSTJOURNALSIZE=${OSTJOURNALSIZE:-0}
65 FSTYPE=${FSTYPE:-ext3}
66 STRIPE_BYTES=${STRIPE_BYTES:-1048576}
67 STRIPES_PER_OBJ=${STRIPES_PER_OBJ:-0}
69 FAILURE_MODE=${FAILURE_MODE:-HARD} # or HARD
70 #POWER_DOWN=${POWER_DOWN:-"powerman --off"}
71 #POWER_UP=${POWER_UP:-"powerman --on"}