4 LMC=${LMC-../utils/lmc}
14 # NOTE - You can't have different MDS/OST nodes and also have clients on the
15 # MDS/OST nodes without using --endlevel and --startlevel during lconf.
16 # You can put both MDS/OST on one node and client can be there too.
17 # CLIENTS is a space-separated list of client nodes.
19 # The rule is that both the MDS and the OST must be set up before any
20 # of the clients can be started, so plan accordingly.
22 # Three separate systems
27 # Single system with additional clients
30 #CLIENTS="$MDSNODE client"
32 # Two systems with client on MDS, and additional clients (set up OST first)
35 #CLIENTS="$MDSNODE client"
37 # Two systems with client on OST, and additional clients (set up MDS first)
40 #CLIENTS="$OSTNODES client"
45 for NODE in $MDSNODE $OSTNODES $CLIENTS; do
46 eval [ \$$NODE ] && continue
47 ${LMC} -m $config --add net --node $NODE --nid $NODE --nettype tcp || exit 1
51 # configure mds server
52 ${LMC} -m $config --add mds --format --node $MDSNODE --mds mds1 --dev $MDSDEV --size $MDSSIZE ||exit 10
55 ${LMC} -m $config --add lov --lov lov1 --mds mds1 --stripe_sz 65536 --stripe_cnt 0 --stripe_pattern 0 || exit 20
57 for NODE in $OSTNODES; do
58 eval OSTDEV=\$OSTDEV$COUNT
59 ${LMC} -m $config --add ost --node $NODE --lov lov1 --dev $OSTDEV --size $OSTSIZE || exit 21
60 COUNT=`expr $COUNT + 1`
63 # create client config(s)
64 for NODE in $CLIENTS; do
65 ${LMC} -m $config --add mtpt --node $NODE --path /mnt/lustre --mds mds1 --lov lov1 || exit 30