mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Debug auto_replace_001_pos failures
Reduced the timeout to 60 seconds which should be more than sufficient and allow the test to be marked as FAILED rather than KILLED. Also dump the pool status on cleanup. Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #14829
This commit is contained in:
@@ -54,6 +54,7 @@ fi
|
||||
|
||||
function cleanup
|
||||
{
|
||||
zpool status $TESTPOOL
|
||||
destroy_pool $TESTPOOL
|
||||
sed -i '/alias scsidebug/d' $VDEVID_CONF
|
||||
unload_scsi_debug
|
||||
@@ -99,8 +100,8 @@ block_device_wait
|
||||
insert_disk $SD $SD_HOST
|
||||
|
||||
# Wait for the new disk to be online and replaced
|
||||
log_must wait_vdev_state $TESTPOOL "scsidebug" "ONLINE" $MAXTIMEOUT
|
||||
log_must wait_replacing $TESTPOOL
|
||||
log_must wait_vdev_state $TESTPOOL "scsidebug" "ONLINE" 60
|
||||
log_must wait_replacing $TESTPOOL 60
|
||||
|
||||
# Validate auto-replace was successful
|
||||
log_must check_state $TESTPOOL "" "ONLINE"
|
||||
|
||||
Reference in New Issue
Block a user