1 FSNAME=${FSNAME:-lustre}
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}
12 MDSDEV=${MDSDEV:-$TMP/${FSNAME}-mdt}
13 MDSSIZE=${MDSSIZE:-400000}
14 MDSOPT=${MDSOPT:-"--mountfsoptions=acl"}
16 OSTCOUNT=${OSTCOUNT:-2}
17 OSTDEVBASE=${OSTDEVBASE:-$TMP/${FSNAME}-ost}
18 OSTSIZE=${OSTSIZE:-300000}
20 # Can specify individual ost devs with
22 # on specific hosts with
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}
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"
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"
60 MDS_MOUNT_OPTS=${MDS_MOUNT_OPTS:-"-o loop"}
61 OST_MOUNT_OPTS=${OST_MOUNT_OPTS:-"-o loop"}
64 MOUNT=${MOUNT:-/mnt/${FSNAME}}
65 MOUNT1=${MOUNT1:-$MOUNT}
66 MOUNT2=${MOUNT2:-${MOUNT}2}
67 MOUNTOPT=${MOUNTOPT:-"user_xattr,acl"}
73 FAILURE_MODE=${FAILURE_MODE:-SOFT} # or HARD
74 POWER_DOWN=${POWER_DOWN:-"powerman --off"}
75 POWER_UP=${POWER_UP:-"powerman --on"}