4 mds_HOST=${mds_HOST:-`hostname`}
5 mdsfailover_HOST=${mdsfailover_HOST}
6 mds1_HOST=${mds1_HOST:-$mds_HOST}
7 mds1failover_HOST=${mds1failover_HOST:-$mdsfailover_HOST}
8 mgs_HOST=${mgs_HOST:-$mds_HOST}
9 ost_HOST=${ost_HOST:-`hostname`}
10 ostfailover_HOST=${ostfailover_HOST}
14 DAEMONSIZE=${DAEMONSIZE:-500}
15 MDSDEV=${MDSDEV:-$TMP/${FSNAME}-mdt1}
16 MDSCOUNT=${MDSCOUNT:-1}
17 MDSDEVBASE=${MDSDEVBASE:-$TMP/${FSNAME}-mdt}
18 MDSSIZE=${MDSSIZE:-100000}
19 MDSOPT=${MDSOPT:-"--mountfsoptions=acl"}
21 OSTCOUNT=${OSTCOUNT:-2}
22 OSTDEVBASE=${OSTDEVBASE:-$TMP/${FSNAME}-ost}
23 OSTSIZE=${OSTSIZE:-200000}
25 # Can specify individual ost devs with
27 # on specific hosts with
30 NETTYPE=${NETTYPE:-tcp}
31 MGSNID=${MGSNID:-`h2$NETTYPE $mgs_HOST`}
32 FSTYPE=${FSTYPE:-ldiskfs}
33 STRIPE_BYTES=${STRIPE_BYTES:-1048576}
34 STRIPES_PER_OBJ=${STRIPES_PER_OBJ:-0}
35 SINGLEMDS=${SINGLEMDS:-"mds1"}
36 TIMEOUT=${TIMEOUT:-20}
37 PTLDEBUG=${PTLDEBUG:-0x33f0404}
38 SUBSYSTEM=${SUBSYSTEM:- 0xffb7e3ff}
42 [ "x$MDSJOURNALSIZE" != "x" ] &&
43 MKFSOPT=$MKFSOPT" -J size=$MDSJOURNALSIZE"
44 [ "x$MDSISIZE" != "x" ] &&
45 MKFSOPT=$MKFSOPT" -i $MDSISIZE"
46 [ "x$MKFSOPT" != "x" ] &&
47 MKFSOPT="--mkfsoptions=\\\"$MKFSOPT\\\""
48 [ "x$MDSCAPA" != "x" ] &&
49 MKFSOPT="--param mdt.capa=$MDSCAPA"
50 [ "x$mdsfailover_HOST" != "x" ] &&
51 MOUNTOPT=$MOUNTOPT" --failnode=`h2$NETTYPE $mdsfailover_HOST`"
52 [ "x$STRIPE_BYTES" != "x" ] &&
53 MOUNTOPT=$MOUNTOPT" --param lov.stripesize=$STRIPE_BYTES"
54 [ "x$STRIPES_PER_OBJ" != "x" ] &&
55 MOUNTOPT=$MOUNTOPT" --param lov.stripecount=$STRIPES_PER_OBJ"
56 [ "x$LUSTRE" != "x" ] &&
57 MOUNTOPT=$MOUNTOPT" --param mdt.group_upcall=$LUSTRE/utils/l_getgroups"
58 MDS_MKFS_OPTS="--mgs --mdt --fsname=$FSNAME --device-size=$MDSSIZE --param sys.timeout=$TIMEOUT $MKFSOPT $MOUNTOPT $MDSOPT"
62 [ "x$OSTJOURNALSIZE" != "x" ] &&
63 MKFSOPT=$MKFSOPT" -J size=$OSTJOURNALSIZE"
64 [ "x$MKFSOPT" != "x" ] &&
65 MKFSOPT="--mkfsoptions=\"$MKFSOPT\""
66 [ "x$OSSCAPA" != "x" ] &&
67 MKFSOPT="--param ost.capa=$OSSCAPA"
68 [ "x$ostfailover_HOST" != "x" ] &&
69 MOUNTOPT=$MOUNTOPT" --failnode=`h2$NETTYPE $ostfailover_HOST`"
70 OST_MKFS_OPTS="--ost --fsname=$FSNAME --device-size=$OSTSIZE --mgsnode=$MGSNID --param sys.timeout=$TIMEOUT $MKFSOPT $MOUNTOPT $OSTOPT"
72 MDS_MOUNT_OPTS=${MDS_MOUNT_OPTS:-"-o loop,user_xattr,acl"}
73 OST_MOUNT_OPTS=${OST_MOUNT_OPTS:-"-o loop"}
76 MOUNT=${MOUNT:-/mnt/${FSNAME}}
77 MOUNT1=${MOUNT1:-$MOUNT}
78 MOUNT2=${MOUNT2:-${MOUNT}2}
79 MOUNTOPT=${MOUNTOPT:-"user_xattr,acl"}
80 [ "x$RMTCLIENT" != "x" ] &&
81 MOUNTOPT=$MOUNTOPT",remote_client"
87 FAILURE_MODE=${FAILURE_MODE:-SOFT} # or HARD
88 POWER_DOWN=${POWER_DOWN:-"powerman --off"}
89 POWER_UP=${POWER_UP:-"powerman --on"}