Patch changes parallel-scale tests to use t-f test_mkdir()
instead of mkdir to have the possibility to run these tests on
striped directories.
Test-Parameters: trivial testlist=parallel-scale,parallel-scale-nfsv3
Cray-bug-id: LUS-8291
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Change-Id: I6a0d52d7115668ef2bc7397a9a1012dbcb9e0526
Reviewed-on: https://review.whamcloud.com/37732
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
# for new "test_foo" functions names
# local testdir=$DIR/$tdir
local testdir=$dir/d0.compilebench.$$
# for new "test_foo" functions names
# local testdir=$DIR/$tdir
local testdir=$dir/d0.compilebench.$$
setstripe_getstripe $testdir $cbench_STRIPEPARAMS
local savePWD=$PWD
setstripe_getstripe $testdir $cbench_STRIPEPARAMS
local savePWD=$PWD
print_opts METABENCH clients mbench_NFILES mbench_THREADS
local testdir=$dir/d0.metabench
print_opts METABENCH clients mbench_NFILES mbench_THREADS
local testdir=$dir/d0.metabench
setstripe_getstripe $testdir $mbench_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $mbench_STRIPEPARAMS
# mpi_run uses mpiuser
print_opts SIMUL clients simul_REP simul_THREADS
local testdir=$DIR/d0.simul
print_opts SIMUL clients simul_REP simul_THREADS
local testdir=$DIR/d0.simul
setstripe_getstripe $testdir $simul_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $simul_STRIPEPARAMS
# mpi_run uses mpiuser
print_opts MDTEST mdtest_iteration mdtest_THREADS mdtest_nFiles
local testdir=$DIR/d0.mdtest
print_opts MDTEST mdtest_iteration mdtest_THREADS mdtest_nFiles
local testdir=$DIR/d0.mdtest
setstripe_getstripe $testdir $mdtest_STRIPEPARAMS
chmod 0777 $testdir
setstripe_getstripe $testdir $mdtest_STRIPEPARAMS
chmod 0777 $testdir
zconf_mount_clients $clients $MOUNT$i "$mntopts" ||
error_exit "Failed $clients on $MOUNT$i"
local dir=$DIR$i/d0.mdtest$i
zconf_mount_clients $clients $MOUNT$i "$mntopts" ||
error_exit "Failed $clients on $MOUNT$i"
local dir=$DIR$i/d0.mdtest$i
setstripe_getstripe $dir $mdtest_SETSTRIPEPARAMS
chmod 0777 $dir
testdir="$testdir@$dir"
setstripe_getstripe $dir $mdtest_SETSTRIPEPARAMS
chmod 0777 $dir
testdir="$testdir@$dir"
echo "free space = $space KB"
local testdir=$dir/d0.connectathon
echo "free space = $space KB"
local testdir=$dir/d0.connectathon
setstripe_getstripe $testdir $cnt_STRIPEPARAMS
local savePWD=$PWD
setstripe_getstripe $testdir $cnt_STRIPEPARAMS
local savePWD=$PWD
print_opts IOR ior_THREADS ior_DURATION MACHINEFILE
print_opts IOR ior_THREADS ior_DURATION MACHINEFILE
# mpi_run uses mpiuser
chmod 0777 $testdir
# mpi_run uses mpiuser
chmod 0777 $testdir
MACHINEFILE
local testdir=$DIR/d0.mib
MACHINEFILE
local testdir=$DIR/d0.mib
setstripe_getstripe $testdir $mib_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $mib_STRIPEPARAMS
# mpi_run uses mpiuser
print_opts CASC_RW clients casc_THREADS casc_REP MACHINEFILE
local testdir=$DIR/d0.cascading_rw
print_opts CASC_RW clients casc_THREADS casc_REP MACHINEFILE
local testdir=$DIR/d0.cascading_rw
setstripe_getstripe $testdir $casc_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $casc_STRIPEPARAMS
# mpi_run uses mpiuser
print_opts clients write_REP write_THREADS MACHINEFILE
print_opts clients write_REP write_THREADS MACHINEFILE
# mpi_run uses mpiuser
setstripe_getstripe $testdir $write_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $write_STRIPEPARAMS
print_opts WRITE_DISJOINT clients wdisjoint_THREADS wdisjoint_REP \
MACHINEFILE
local testdir=$DIR/d0.write_disjoint
print_opts WRITE_DISJOINT clients wdisjoint_THREADS wdisjoint_REP \
MACHINEFILE
local testdir=$DIR/d0.write_disjoint
setstripe_getstripe $testdir $wdisjoint_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $wdisjoint_STRIPEPARAMS
# mpi_run uses mpiuser
print_opts clients parallel_grouplock_MINTASKS MACHINEFILE
local testdir=$DIR/d0.parallel_grouplock
print_opts clients parallel_grouplock_MINTASKS MACHINEFILE
local testdir=$DIR/d0.parallel_grouplock
setstripe_getstripe $testdir $parallel_grouplock_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $parallel_grouplock_STRIPEPARAMS
# mpi_run uses mpiuser
mdsrate_cleanup $((num_clients * 32)) $MACHINEFILE \
$statahead_NUMFILES $testdir 'f%%d' --ignore
mdsrate_cleanup $((num_clients * 32)) $MACHINEFILE \
$statahead_NUMFILES $testdir 'f%%d' --ignore
setstripe_getstripe $testdir $statahead_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $statahead_STRIPEPARAMS
# mpi_run uses mpiuser
local rr_alloc_MNTPTS=${rr_alloc_MNTPTS:-11}
local total_MNTPTS=$((rr_alloc_MNTPTS * num_clients))
local mntpt_root="${TMP}/rr_alloc_mntpt/lustre"
local rr_alloc_MNTPTS=${rr_alloc_MNTPTS:-11}
local total_MNTPTS=$((rr_alloc_MNTPTS * num_clients))
local mntpt_root="${TMP}/rr_alloc_mntpt/lustre"
- if [ $MDSCOUNT -lt 2 ]; then
- [ -e $DIR/$tdir ] || mkdir -p $DIR/$tdir
- else
- [ -e $DIR/$tdir ] || $LFS mkdir -i 0 $DIR/$tdir
- fi
setstripe_getstripe $DIR/$tdir $rr_alloc_STRIPEPARAMS
chmod 0777 $DIR/$tdir
setstripe_getstripe $DIR/$tdir $rr_alloc_STRIPEPARAMS
chmod 0777 $DIR/$tdir
print_opts FS_TEST clients fs_test_threads fs_test_objsize MACHINEFILE
print_opts FS_TEST clients fs_test_threads fs_test_objsize MACHINEFILE
setstripe_getstripe $testdir $fs_test_STRIPEPARAMS
# mpi_run uses mpiuser
setstripe_getstripe $testdir $fs_test_STRIPEPARAMS
# mpi_run uses mpiuser
[ x$FIO = x ] && skip_env "FIO not found"
[ x$FIO = x ] && skip_env "FIO not found"
setstripe_getstripe $testdir $fio_STRIPEPARAMS
# use fio job file if exists,
setstripe_getstripe $testdir $fio_STRIPEPARAMS
# use fio job file if exists,
print_opts XDD clients xdd_queuedepth xdd_blocksize xdd_reqsize \
xdd_mbytes xdd_passes xdd_rwratio
print_opts XDD clients xdd_queuedepth xdd_blocksize xdd_reqsize \
xdd_mbytes xdd_passes xdd_rwratio
setstripe_getstripe $testdir $xdd_STRIPEPARAMS
local files=""
setstripe_getstripe $testdir $xdd_STRIPEPARAMS
local files=""
[ $# -eq 1 ] || error "Only creating single directory is supported"
path="$*"
[ $# -eq 1 ] || error "Only creating single directory is supported"
path="$*"
+ local parent=$(dirname $path)
if [ "$p_option" == "-p" ]; then
if [ "$p_option" == "-p" ]; then
- local parent=$(dirname $path)
-
[ -d $path ] && return 0
if [ ! -d ${parent} ]; then
mkdir -p ${parent} ||
[ -d $path ] && return 0
if [ ! -d ${parent} ]; then
mkdir -p ${parent} ||
- if [ $MDSCOUNT -le 1 ]; then
+ if [ $MDSCOUNT -le 1 ] || ! is_lustre ${parent}; then
mkdir $path || error "mkdir '$path' failed"
else
local mdt_index
mkdir $path || error "mkdir '$path' failed"
else
local mdt_index