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}
13 DAEMONSIZE=${DAEMONSIZE:-500}
14 MDSCOUNT=${MDSCOUNT:-1}
15 MDSDEVBASE=${MDSDEVBASE:-$TMP/${FSNAME}-mdt}
16 MDSSIZE=${MDSSIZE:-200000}
18 # Format options of facets can be specified with these variables:
22 # Arguments for "--mkfsoptions" shall be specified with these
25 # - <fstype>_MKFS_OPTS
26 # - <facet_type>_FS_MKFS_OPTS
28 # A number of other options have their own specific variables. See
32 MDS_FS_MKFS_OPTS=${MDS_FS_MKFS_OPTS:-}
33 MDS_MOUNT_OPTS=${MDS_MOUNT_OPTS:-}
35 MGSSIZE=${MGSSIZE:-$MDSSIZE}
37 MGS_FS_MKFS_OPTS=${MGS_FS_MKFS_OPTS:-}
38 MGS_MOUNT_OPTS=${MGS_MOUNT_OPTS:-}
40 OSTCOUNT=${OSTCOUNT:-2}
41 OSTDEVBASE=${OSTDEVBASE:-$TMP/${FSNAME}-ost}
42 OSTSIZE=${OSTSIZE:-200000}
44 OST_FS_MKFS_OPTS=${OST_FS_MKFS_OPTS:-}
45 OST_MOUNT_OPTS=${OST_MOUNT_OPTS:-}
46 # Can specify individual ost devs with
48 # on specific hosts with
51 NETTYPE=${NETTYPE:-tcp}
52 MGSNID=${MGSNID:-`h2$NETTYPE $mgs_HOST`}
55 # Back end file system type(s) of facets can be specified with these
59 # 2. <facet_type>FSTYPE
62 # More specific ones override more general ones. See facet_fstype().
64 FSTYPE=${FSTYPE:-ldiskfs}
66 LDISKFS_MKFS_OPTS=${LDISKFS_MKFS_OPTS:-}
67 ZFS_MKFS_OPTS=${ZFS_MKFS_OPTS:-}
69 LOAD_MODULES_REMOTE=${LOAD_MODULES_REMOTE:-false}
71 STRIPE_BYTES=${STRIPE_BYTES:-1048576}
72 STRIPES_PER_OBJ=${STRIPES_PER_OBJ:-0}
73 SINGLEMDS=${SINGLEMDS:-"mds1"}
74 TIMEOUT=${TIMEOUT:-20}
75 PTLDEBUG=${PTLDEBUG:-"vfstrace rpctrace dlmtrace neterror ha config ioctl super"}
76 SUBSYSTEM=${SUBSYSTEM:-"all -lnet -lnd -pinger"}
78 # promise 2MB for every cpu
79 if [ -f /sys/devices/system/cpu/possible ]; then
80 _debug_mb=$((($(cut -d "-" -f 2 /sys/devices/system/cpu/possible)+1)*2))
82 _debug_mb=$(($(getconf _NPROCESSORS_CONF)*2))
85 DEBUG_SIZE=${DEBUG_SIZE:-$_debug_mb}
87 ENABLE_QUOTA=${ENABLE_QUOTA:-""}
89 QUOTA_USERS=${QUOTA_USERS:-"quota_usr quota_2usr sanityusr sanityusr1"}
90 LQUOTAOPTS=${LQUOTAOPTS:-"hash_lqs_cur_bits=3"}
93 MOUNT=${MOUNT:-/mnt/${FSNAME}}
94 MOUNT1=${MOUNT1:-$MOUNT}
95 MOUNT2=${MOUNT2:-${MOUNT}2}
96 MOUNTOPT=${MOUNTOPT:-"-o user_xattr,flock"}
101 if [ $UID -ne 0 ]; then
102 log "running as non-root uid $UID"
104 RUNAS_GID=`id -g $USER`
107 RUNAS_ID=${RUNAS_ID:-500}
108 RUNAS_GID=${RUNAS_GID:-$RUNAS_ID}
109 RUNAS=${RUNAS:-"runas -u $RUNAS_ID -g $RUNAS_GID"}
113 FAILURE_MODE=${FAILURE_MODE:-SOFT} # or HARD
114 POWER_DOWN=${POWER_DOWN:-"powerman --off"}
115 POWER_UP=${POWER_UP:-"powerman --on"}
117 FAIL_ON_ERROR=${FAIL_ON_ERROR:-true}
119 MPIRUN=$(which mpirun 2>/dev/null) || true
120 MPI_USER=${MPI_USER:-mpiuser}
121 SHARED_DIR_LOGS=${SHARED_DIR_LOGS:-""}
122 MACHINEFILE_OPTION=${MACHINEFILE_OPTION:-"-machinefile"}
124 # This is used by a small number of tests to share state between the client
125 # running the tests, or in some cases between the servers (e.g. lfsck.sh).
126 # It needs to be a non-lustre filesystem that is available on all the nodes.
127 SHARED_DIRECTORY=${SHARED_DIRECTORY:-""} # bug 17839 comment 65