Skip to content

Commit

Permalink
ZTS: fix raidz_expand_001_pos and raidz_expand_002_pos
Browse files Browse the repository at this point in the history
Sometimes the pool may start an auto scrub.

Reviewed by: Brian Behlendorf <[email protected]>
Signed-off-by: Tino Reichardt <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes openzfs#16537
  • Loading branch information
mcmilk authored and gamanakis committed Sep 17, 2024
1 parent 8b59015 commit 47f1401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ function test_scrub # <pool> <parity> <dir>

log_must zpool import -o cachefile=none -d $dir $pool

is_pool_scrubbing $pool && wait_scrubbed $pool
log_must zpool scrub -w $pool

log_must zpool clear $pool
log_must zpool export $pool

Expand All @@ -166,6 +168,7 @@ function test_scrub # <pool> <parity> <dir>

log_must zpool import -o cachefile=none -d $dir $pool

is_pool_scrubbing $pool && wait_scrubbed $pool
log_must zpool scrub -w $pool

log_must check_pool_status $pool "errors" "No known data errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ for disk in ${disks[$(($nparity+2))..$devs]}; do
log_fail "pool $pool not expanded"
fi

is_pool_scrubbing $pool && wait_scrubbed $pool
verify_pool $pool

pool_size=$expand_size
Expand Down

0 comments on commit 47f1401

Please sign in to comment.