mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
ZTS: Fix vdev_zaps_004_pos.ksh
When attaching a vdev to a mirror wait for the resilver to complete before invoking `zdb` to inspect the pool. This ensures the pool is essentially idle which allows `zdb` to open the imported pool reliably. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13112 Closes #6935
This commit is contained in:
@@ -50,6 +50,7 @@ assert_zap_common $TESTPOOL $DISK "top" $orig_top
|
||||
|
||||
disk2=$(echo $DISKS | awk '{print $2}')
|
||||
log_must zpool attach $TESTPOOL $DISK $disk2
|
||||
log_must zpool wait -t resilver $TESTPOOL
|
||||
log_must zdb -PC $TESTPOOL > $conf
|
||||
|
||||
# Ensure top-level ZAP was transferred successfully.
|
||||
|
||||
Reference in New Issue
Block a user