Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / tests / lustre.cfg
1 #!/bin/sh
2
3 ### REMOVE THE FOLLOWING LINES IN ORDER TO TEST LUSTRE WITH THIS CONFIG ###
4 echo "lustre: edit /etc/lustre/lustre.cfg to enable, exiting" 1>&2
5 exit 1
6
7 # Common configuration options
8 # Config file for setting up a local OST and MDS server
9 NETWORK=tcp
10 LOCALHOST=`hostname`
11 SERVER=$LOCALHOST
12 OSTNODE=$LOCALHOST
13 CLIENTS=*
14 PORT=988
15
16 # Set up the lock manager (required)
17 SETUP_LDLM=y
18
19 #case `echo $LOCALHOST | sed "s/\.[^|]*//"` in
20 case $LOCALHOST in
21 $SERVER)
22         # Config for setting up a metadata server
23         MDSFS=extN
24         MDSDEV=/tmp/mds
25         MDSSIZE=50000
26         SETUP_MDS=y
27         ;;
28 esac
29
30 case $LOCALHOST in
31 $OSTNODE)
32         # Config for setting up an object storage target with obdfilter
33         OSTDEV=/tmp/ost
34         OSTSIZE=200000
35         OSTFS=extN
36         OSTTYPE=obdfilter
37         SETUP_OST=y
38         ;;
39 esac
40
41 case $LOCALHOST in
42 $CLIENTS)
43         # Config for setting up a client filesystem mount
44         SETUP_MDC=y
45         SETUP_OSC=y
46         OSCMT=/mnt/lustre
47         SETUP_MOUNT=y
48         ;;
49 esac