Whamcloud - gitweb
- Refined the DTD futher: 'id' changed to 'name'; tree structure rearranged
[fs/lustre-release.git] / lustre / tests / llxmlsetup.sh
1 SRCDIR="`dirname $0`/"
2 . $SRCDIR/common.sh
3
4 # Setup the portals and lustre RPC bits.  For now
5 # that means we need to set 4 additional variables
6 # here for ptlctl to use during its config.  There
7 # should be some XML aware solution soon.  Also
8 # the code to load only the nessisary modules 
9 # should go in to obdctl.
10
11 NETWORK=tcp
12 LOCALHOST=localhost
13 SERVER=localhost
14 PORT=1234
15
16 setup_portals || exit $?
17 setup_lustre || exit $?
18
19 # Loopback devices are still only supported in the
20 # scripts so we're borrowing that functionality.
21 new_fs ext3 /tmp/mds 25000
22 new_fs ext3 /tmp/ost 10000
23
24 # Configure the node based on the XML provided.
25 $OBDCTL --xml $1 || exit $?
26
27 export DEBUG_WAIT=no
28
29 # The mountpoint information in the XML is currently
30 # neglected so this needs to be done here.
31
32 echo
33 echo "To mount the filesystem:"
34 echo "mount -t lustre_lite -o ost=`$OBDCTL name2dev osc-srv`,mds=`$OBDCTL name2dev mdc-srv` none /mnt/lustre"
35