if [[ $(uname -m) = aarch64 ]]; then
# bug number: LU-11596 (all below)
ALWAYS_EXCEPT+=" 42d 42e 63a 63b 64a 64b 64c"
- # bug number: LU-11671 LU-11665 LU-11594 LU-11667
- ALWAYS_EXCEPT+=" 45 101c 103a 317"
+ # bug number: LU-11671 LU-11665 LU-11594 LU-11667 LU-11729
+ ALWAYS_EXCEPT+=" 45 101c 103a 317 810"
fi
# Check Grants after these tests
[ $RUNAS_ID -eq $UID ] &&
skip_env "RUNAS_ID = UID = $UID -- skipping"
- chmod 666 /dev/obd
denied_cnt=$(($($RUNAS $LFS check servers 2>&1 |
grep "Permission denied" | wc -l)))
if [ $denied_cnt -ne 0 ]; then
local old_jobenv=$($LCTL get_param -n jobid_var)
[ $old_jobenv != $JOBENV ] && jobstats_set $JOBENV
- if [[ $PERM_CMD = *"set_param -P"* ]]; then
+ if [[ $PERM_CMD == *"set_param -P"* ]]; then
stack_trap "do_facet mgs $PERM_CMD jobid_var=$old_jobenv" EXIT
else
stack_trap "do_facet mgs $PERM_CMD \
}
run_test 230k "file data not changed after dir migration"
+test_230l() {
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.11.56) ] &&
+ skip "Need MDS version at least 2.11.56"
+
+ $LFS mkdir -i 0 -c 1 $DIR/$tdir || error "mkdir failed"
+ createmany -o $DIR/$tdir/f___________________________________ 1000 ||
+ error "create files under remote dir failed $i"
+ $LFS migrate -m 1 $DIR/$tdir || error "migrate failed"
+}
+run_test 230l "readdir between MDTs won't crash"
+
test_231a()
{
# For simplicity this test assumes that max_pages_per_rpc
done
sync; sleep 3
+ wait_delete_completed # ensure old test cleanups are finished
echo "before create:"
$LFS df -i $MOUNT
local before_used=$($LFS df -i | grep MDT0000_UUID | awk '{print $3}')
- for ((i=0; i<10; i++)); do
+ for i in {1..10}; do
$LFS mkdir -c 1 -i 1 $DIR/$tdir/foo$i ||
error "Fail to create $DIR/$tdir/foo$i"
done
$LFS df -i $MOUNT
local after_used=$($LFS df -i | grep MDT0000_UUID | awk '{print $3}')
- [ $after_used -ge $((before_used + 10)) ] ||
+ # allow for an llog to be cleaned up during the test
+ [ $after_used -ge $((before_used + 10 - 1)) ] ||
error "before ($before_used) + 10 > after ($after_used)"
- for ((i=0; i<10; i++)); do
+ for i in {1..10}; do
rm -rf $DIR/$tdir/foo$i ||
error "Fail to remove $DIR/$tdir/foo$i"
done
wait_delete_completed
echo "after unlink:"
$LFS df -i $MOUNT
- before_used=$after_used
after_used=$($LFS df -i | grep MDT0000_UUID | awk '{print $3}')
- [ $after_used -le $((before_used - 8)) ] ||
- error "before ($before_used) - 8 < after ($after_used)"
+ # allow for an llog to be created during the test
+ [ $after_used -le $((before_used + 1)) ] ||
+ error "after ($after_used) > before ($before_used) + 1"
}
run_test 803 "verify agent object for remote object"
local offset=0
local i
- echo "Test SOM for single client muti-threaded($num) write"
+ echo "Test SOM for single client multi-threaded($num) write"
$TRUNCATE $DIR/$tfile 0
for ((i = 0; i < $num; i++)); do
$MULTIOP $DIR/$tfile Oz${offset}w${bs}c &
offset=0
i=0
- echo "Test SOM for muti-client ($num) writes"
+ echo "Test SOM for multi-client ($num) writes"
$TRUNCATE $DIR/$tfile 0
for client in ${CLIENTS//,/ }; do
do_node $client $MULTIOP $DIR/$tfile Oz${offset}w${bs}c &
local offset=0
local i=0
- echo "Test SOM for muti-client ($num) writes"
+ echo "Test SOM for multi-client ($num) writes"
touch $DIR/$tfile || error "touch $tfile failed"
$TRUNCATE $DIR/$tfile 0
for client in ${CLIENTS//,/ }; do