Whamcloud - gitweb
EX-7752 test: hot-pools test_59: not expected flag 'stale'
authorBobi Jam <bobijam@whamcloud.com>
Thu, 29 Jun 2023 15:01:35 +0000 (23:01 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Jul 2023 09:59:41 +0000 (09:59 +0000)
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 <bobijam@whamcloud.com>
Change-Id: I06c33badfc10ff9743df83a6e421e27afc9b6dbd
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51502
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Colin Faber <cfaber@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/hot-pools.sh

index 8085404..941a3f0 100755 (executable)
@@ -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 |