Whamcloud - gitweb
b=12005
[fs/lustre-release.git] / lustre / tests / cfg / local.sh
1 FSNAME=${FSNAME:-lustre}
2
3 # facet hosts
4 mds_HOST=${mds_HOST:-`hostname`}
5 mdsfailover_HOST=${mdsfailover_HOST}
6 mgs_HOST=${mgs_HOST:-$mds_HOST}
7 ost_HOST=${ost_HOST:-`hostname`}
8 ostfailover_HOST=${ostfailover_HOST}
9
10 TMP=${TMP:-/tmp}
11
12 MDSDEV=${MDSDEV:-$TMP/${FSNAME}-mdt}
13 MDSSIZE=${MDSSIZE:-400000}
14 MDSOPT=${MDSOPT:-"--mountfsoptions=acl"}
15
16 OSTCOUNT=${OSTCOUNT:-2}
17 OSTDEVBASE=${OSTDEVBASE:-$TMP/${FSNAME}-ost}
18 OSTSIZE=${OSTSIZE:-300000}
19 OSTOPT=${OSTOPT:-""}
20 # Can specify individual ost devs with
21 # OSTDEV1="/dev/sda"
22 # on specific hosts with
23 # ost1_HOST="uml2"
24
25 NETTYPE=${NETTYPE:-tcp}
26 MGSNID=${MGSNID:-`h2$NETTYPE $mgs_HOST`}
27 FSTYPE=${FSTYPE:-ldiskfs}
28 STRIPE_BYTES=${STRIPE_BYTES:-1048576}
29 STRIPES_PER_OBJ=${STRIPES_PER_OBJ:-0}
30 TIMEOUT=${TIMEOUT:-20}
31 PTLDEBUG=${PTLDEBUG:-0x33f1504}
32 SUBSYSTEM=${SUBSYSTEM:- 0xffb7e3ff}
33
34 MKFSOPT=""
35 MOUNTOPT=""
36 [ "x$MDSJOURNALSIZE" != "x" ] &&
37     MKFSOPT=$MKFSOPT" -J size=$MDSJOURNALSIZE"
38 [ "x$MDSISIZE" != "x" ] &&
39     MKFSOPT=$MKFSOPT" -i $MDSISIZE"
40 [ "x$MKFSOPT" != "x" ] &&
41     MKFSOPT="--mkfsoptions=\"$MKFSOPT\""
42 [ "x$mdsfailover_HOST" != "x" ] &&
43     MOUNTOPT=$MOUNTOPT" --failnode=`h2$NETTYPE $mdsfailover_HOST`"
44 [ "x$STRIPE_BYTES" != "x" ] &&
45     MOUNTOPT=$MOUNTOPT" --param lov.stripesize=$STRIPE_BYTES"
46 [ "x$STRIPES_PER_OBJ" != "x" ] &&
47     MOUNTOPT=$MOUNTOPT" --param lov.stripecount=$STRIPES_PER_OBJ"
48 MDS_MKFS_OPTS="--mgs --mdt --fsname=$FSNAME --device-size=$MDSSIZE --param sys.timeout=$TIMEOUT $MKFSOPT $MOUNTOPT $MDSOPT"
49
50 MKFSOPT=""
51 MOUNTOPT=""
52 [ "x$OSTJOURNALSIZE" != "x" ] &&
53     MKFSOPT=$MKFSOPT" -J size=$OSTJOURNALSIZE"
54 [ "x$MKFSOPT" != "x" ] &&
55     MKFSOPT="--mkfsoptions=\"$MKFSOPT\""
56 [ "x$ostfailover_HOST" != "x" ] &&
57     MOUNTOPT=$MOUNTOPT" --failnode=`h2$NETTYPE $ostfailover_HOST`"
58 OST_MKFS_OPTS="--ost --fsname=$FSNAME --device-size=$OSTSIZE --mgsnode=$MGSNID --param sys.timeout=$TIMEOUT $MKFSOPT $MOUNTOPT $OSTOPT"
59
60 MDS_MOUNT_OPTS=${MDS_MOUNT_OPTS:-"-o loop"}
61 OST_MOUNT_OPTS=${OST_MOUNT_OPTS:-"-o loop"}
62
63 #client
64 MOUNT=${MOUNT:-/mnt/${FSNAME}}
65 MOUNT1=${MOUNT1:-$MOUNT}
66 MOUNT2=${MOUNT2:-${MOUNT}2}
67 MOUNTOPT=${MOUNTOPT:-"user_xattr,acl"}
68 DIR=${DIR:-$MOUNT}
69 DIR1=${DIR:-$MOUNT1}
70 DIR2=${DIR2:-$MOUNT2}
71
72 PDSH=${PDSH:-no_dsh}
73 FAILURE_MODE=${FAILURE_MODE:-SOFT} # or HARD
74 POWER_DOWN=${POWER_DOWN:-"powerman --off"}
75 POWER_UP=${POWER_UP:-"powerman --on"}