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="$OSTNODE client"
45 for NODE in $MDSNODE $OSTNODE $CLIENTS; do
46 eval [ \$$NODE ] && continue
47 ${LMC} -m $config --node $NODE --net $NODE tcp || exit 1
51 # configure mds server
52 ${LMC} -m $config --format --node $MDSNODE --mds mds1 $MDSDEV $MDSSIZE ||exit 10
55 ${LMC} -m $config --lov lov1 mds1 65536 0 0 || exit 20
56 ${LMC} -m $config --node $OSTNODE --lov lov1 --ost $OSTDEV1 $OSTSIZE || exit 21
57 ${LMC} -m $config --node $OSTNODE --lov lov1 --ost $OSTDEV2 $OSTSIZE || exit 22
59 # create client config(s)
60 for NODE in $CLIENTS; do
61 ${LMC} -m $config --node $NODE --mtpt /mnt/lustre mds1 lov1 || exit 30