From d7eab67e1ae3c7901098a173e2244da27ca59227 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Thu, 29 Jun 2023 23:01:35 +0800 Subject: [PATCH] EX-7752 test: hot-pools test_59: not expected flag 'stale' Make the 1st mirror preferable for write for the test purpose. Test-Parameters: trivial env=ONLY=59 testlist=hot-pools Signed-off-by: Bobi Jam Change-Id: I06c33badfc10ff9743df83a6e421e27afc9b6dbd Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51502 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Colin Faber Reviewed-by: Andreas Dilger --- lustre/tests/hot-pools.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/tests/hot-pools.sh b/lustre/tests/hot-pools.sh index 8085404..941a3f0 100755 --- a/lustre/tests/hot-pools.sh +++ b/lustre/tests/hot-pools.sh @@ -2008,8 +2008,10 @@ test_59() { # create a regular file in source pool mkdir $td || error "mkdir $td failed" - $LFS setstripe -c -1 -p $LAMIGO_SRC $tf || error "cannot create file" - $LFS mirror extend -N -c -1 -p $LAMIGO_TGT $tf || error "cannot create mirror" + $LFS setstripe -N -c-1 --flags=prefer -p $LAMIGO_SRC $tf || + error "cannot create file" + $LFS mirror extend -N -c-1 -p $LAMIGO_TGT $tf || + error "cannot create mirror" $LFS df -h free_MB=$(($(lfs_df -p $LAMIGO_SRC $DIR | -- 1.8.3.1