summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
28bac98)
currently ha.sh has the ability to create the clients
striped directories with different stripe parameters.
We also need the ability to create working striped
directory (ha_test_dir) to have the chance to replicate
the issues hit on directory tree where child directory
stripe settings differ from parent ones.
Test-Parameters: trivial
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-9621
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Vladimir Saveliev <vladimir.saveliev@hpe.com>
Change-Id: I77612c360f0bf407bd0298f827b409b4a288540f
Reviewed-on: https://review.whamcloud.com/43216
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
declare ha_failback_delay=${DELAY:-5}
declare ha_failback_cmd=${FAILBACK:-""}
declare ha_stripe_params=${STRIPEPARAMS:-"-c 0"}
declare ha_failback_delay=${DELAY:-5}
declare ha_failback_cmd=${FAILBACK:-""}
declare ha_stripe_params=${STRIPEPARAMS:-"-c 0"}
+declare ha_test_dir_stripe_count=${TDSTRIPECOUNT:-"1"}
+declare ha_test_dir_mdt_index=${TDMDTINDEX:-"0"}
+declare ha_test_dir_mdt_index_random=${TDMDTINDEXRAND:-false}
declare ha_dir_stripe_count=${DSTRIPECOUNT:-"1"}
declare ha_mdt_index=${MDTINDEX:-"0"}
declare ha_mdt_index_random=${MDTINDEXRAND:-false}
declare ha_dir_stripe_count=${DSTRIPECOUNT:-"1"}
declare ha_mdt_index=${MDTINDEX:-"0"}
declare ha_mdt_index_random=${MDTINDEXRAND:-false}
"START: $0: $(date +%H:%M:%S' '%s)"
trap ha_trap_exit EXIT
mkdir "$ha_tmp_dir"
"START: $0: $(date +%H:%M:%S' '%s)"
trap ha_trap_exit EXIT
mkdir "$ha_tmp_dir"
- ha_on ${ha_clients[0]} mkdir "$ha_test_dir"
+
+ local mdt_index
+ if $ha_test_dir_mdt_index_random &&
+ [ $ha_test_dir_mdt_index -ne 0 ]; then
+ mdt_index=$(ha_rand $ha_test_dir_mdt_index)
+ else
+ mdt_index=$ha_test_dir_mdt_index
+ fi
+ ha_on ${ha_clients[0]} "$LFS mkdir -i$mdt_index \
+ -c$ha_test_dir_stripe_count $ha_test_dir"
+ ha_on ${ha_clients[0]} $LFS getdirstripe $ha_test_dir
ha_on ${ha_clients[0]} " \
$LFS setstripe $ha_stripe_params $ha_test_dir"
ha_on ${ha_clients[0]} " \
$LFS setstripe $ha_stripe_params $ha_test_dir"