Whamcloud - gitweb
adjust krb5 related scripts, add krb5 support in replay-ost-single,
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2 # suggested boilerplate for test script
3
4 export PATH=`dirname $0`/../utils:$PATH
5
6 LCONF=${LCONF:-lconf}
7 NAME=${NAME:-local}
8 LLMOUNT=${LLMOUNT:-llmount}
9 SECURITY=${SECURITY:-"null"}
10
11 config=$(dirname $0)/$NAME.xml
12 mkconfig=$(dirname $0)/$NAME.sh
13
14 . krb5_env.sh
15 start_krb5_kdc || exit 1
16 start_lsvcgssd || exit 2
17 start_lgssd || exit 3
18
19 if [ "$PORTALS" ]; then
20     portals_opt="--portals=$PORTALS"
21 fi
22
23 if [ "$LUSTRE" ]; then
24     lustre_opt="--lustre=$LUSTRE"
25 fi
26
27 if [ "$LDAPURL" ]; then
28     conf_opt="--ldapurl $LDAPURL --config $NAME"
29 else
30     sh $mkconfig $config || exit 4
31     conf_opt="$config"
32 fi    
33
34 [ "$NODE" ] && node_opt="--node $NODE"
35 [ "$DEBUG" ] && debug_opt="--ptldebug=$DEBUG"
36
37 ${LCONF} $NOMOD --sec $SECURITY $portals_opt $lustre_opt $node_opt \
38          ${REFORMAT:---reformat} $@ $conf_opt  || exit 5
39
40 if [ "$MOUNT2" ]; then
41        $LLMOUNT -v -o sec=$SECURITY `hostname`:/mds1/client $MOUNT2 || exit 6
42 fi
43