-gen_config() {
- rm -f $XMLCONFIG
- add_mds mds --dev $MDSDEV --size $MDSSIZE --journal-size $MDSJOURNALSIZE
-
- if [ ! -z "$mdsfailover_HOST" ]; then
- add_mdsfailover mds --dev $MDSDEV --size $MDSSIZE
- fi
-
- add_lov lov1 mds --stripe_sz $STRIPE_BYTES\
- --stripe_cnt $STRIPES_PER_OBJ --stripe_pattern 0
- for i in `seq $NUMOST`; do
- dev=`printf $OSTDEV $i`
- add_ost ost$i --lov lov1 --dev $dev --size $OSTSIZE \
- --journal-size $OSTJOURNALSIZE
- done
-
-
- add_client client mds --lov lov1 --path $MOUNT
-}
-
-setup() {
- rm -rf logs/*
- for i in `seq $NUMOST`; do
- wait_for ost$i
- start ost$i ${REFORMAT} $OSTLCONFARGS
- done
- [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
- wait_for mds
- start mds $MDSLCONFARGS ${REFORMAT}
- while ! do_node $CLIENTS "ls -d $LUSTRE" > /dev/null; do sleep 5; done
- zconf_mount $CLIENTS $MOUNT
-
-}
-
-cleanup() {
- zconf_umount $CLIENTS $MOUNT
-
- stop mds ${FORCE} $MDSLCONFARGS || :
- for i in `seq $NUMOST`; do
- stop ost$i ${REFORMAT} ${FORCE} $OSTLCONFARGS || :
- done