Delete files created for tests in /tmp after testing has finished.
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I8c3fb62f844cb50d82eba81f274d86c73e3d2e08
Reviewed-on: http://review.whamcloud.com/8615
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
FSNAME=${FSNAME:-lustre}
# facet hosts
-mds_HOST=${mds_HOST:-`hostname`}
+mds_HOST=${mds_HOST:-$(hostname)}
mdsfailover_HOST=${mdsfailover_HOST}
mgs_HOST=${mgs_HOST:-$mds_HOST}
-ost_HOST=${ost_HOST:-`hostname`}
+ost_HOST=${ost_HOST:-$(hostname)}
ostfailover_HOST=${ostfailover_HOST}
CLIENTS=""
# OSTDEV1="/dev/sdb1"
NETTYPE=${NETTYPE:-tcp}
-MGSNID=${MGSNID:-`h2$NETTYPE $mgs_HOST`}
+MGSNID=${MGSNID:-$(h2$NETTYPE $mgs_HOST)}
#
# Back end file system type(s) of facets can be specified with these
ENABLE_QUOTA=${ENABLE_QUOTA:-""}
QUOTA_TYPE="ug3"
QUOTA_USERS=${QUOTA_USERS:-"quota_usr quota_2usr sanityusr sanityusr1"}
+# "error: conf_param: No such device" issue in every test suite logs
+# sanity-quota test_32 hash_lqs_cur_bits is not set properly
LQUOTAOPTS=${LQUOTAOPTS:-"hash_lqs_cur_bits=3"}
#client
. $LUSTRE/tests/cfg/local.sh
-CLIENT1=${CLIENT1:-`hostname`}
+# For multiple clients testing, we need use the cfg/ncli.sh config file, and
+# only need specify the "RCLIENTS" variable. The "CLIENTS" and "CLIENTCOUNT"
+# variables are defined in init_clients_lists(), called from cfg/ncli.sh.
+CLIENT1=${CLIENT1:-$(hostname)}
SINGLECLIENT=$CLIENT1
RCLIENTS=${RCLIENTS:-""}
init_clients_lists
-[ -n "$RCLIENTS" -a "$PDSH" = "no_dsh" ] && \
- error "tests for remote clients $RCLIENTS needs pdsh != do_dsh " || true
+[ -n "$RCLIENTS" -a "$PDSH" = "no_dsh" ] &&
+ error "tests for remote clients $RCLIENTS needs pdsh != do_dsh " || true
[ -n "$FUNCTIONS" ] && . $FUNCTIONS || true
LOADS=${LOADS:-"dd tar dbench iozone"}
for i in $LOADS; do
- [ -f $LUSTRE/tests/run_${i}.sh ] || \
- error "incorrect load: $i"
+ [ -f $LUSTRE/tests/run_${i}.sh ] || error "incorrect load: $i"
done
CLIENT_LOADS=($LOADS)
sleep $TIMEOUT
do_facet client "cmp $TMP/$tfile $DIR/$tfile" || return 2
start_read_ahead
+ rm -f $TMP/$tfile
}
run_test 16 "timeout bulk put, don't evict client (2732)"
rc=0
pgcache_empty || rc=2
$LCTL --device $osc2dev activate
- rm -f $f
+ rm -f $f $TMP/$tfile
return $rc
}
run_test 18a "manual ost invalidate clears page cache immediately"
# cache after the client reconnects?
rc=0
pgcache_empty || rc=2
- rm -f $f
+ rm -f $f $TMP/$tfile
return $rc
}
run_test 18b "eviction and reconnect clears page cache (2766)"
# cache after the client reconnects?
rc=0
pgcache_empty || rc=2
- rm -f $f
+ rm -f $f $TMP/$tfile
return $rc
}
run_test 18c "Dropped connect reply after eviction handing (14755)"
run_test 900 "umount should not race with any mgc requeue thread"
complete $SECONDS
+[ -f $EXT2_DEV ] && rm $EXT2_DEV || true
check_and_cleanup_lustre
if [ "$I_MOUNTED" != "yes" ]; then
lctl set_param debug="$OLDDEBUG" 2> /dev/null || true
[ "$(mount | grep $MOUNT2)" ] && umount $MOUNT2
complete $SECONDS
+rm -f $SAMPLE_FILE
check_and_cleanup_lustre
exit_status
opts+=${L_GETIDENTITY:+" --param=mdt.identity_upcall=$L_GETIDENTITY"}
if [ $fstype == ldiskfs ]; then
+ # Check for wide striping
+ if [ $OSTCOUNT -gt 160 ]; then
+ MDSJOURNALSIZE=${MDSJOURNALSIZE:-4096}
+ fs_mkfs_opts+="-O large_xattr"
+ fi
+
fs_mkfs_opts+=${MDSJOURNALSIZE:+" -J size=$MDSJOURNALSIZE"}
if [ ! -z $EJOURNAL ]; then
fs_mkfs_opts+=${MDSJOURNALSIZE:+" device=$EJOURNAL"}