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:
parent
5eae5a88b2
commit
7901b62685
|
@ -259,7 +259,6 @@ maybe = {
|
||||||
'upgrade/upgrade_projectquota_001_pos': ['SKIP', project_id_reason],
|
'upgrade/upgrade_projectquota_001_pos': ['SKIP', project_id_reason],
|
||||||
'user_namespace/setup': ['SKIP', user_ns_reason],
|
'user_namespace/setup': ['SKIP', user_ns_reason],
|
||||||
'userquota/setup': ['SKIP', exec_reason],
|
'userquota/setup': ['SKIP', exec_reason],
|
||||||
'vdev_zaps/vdev_zaps_004_pos': ['FAIL', '6935'],
|
|
||||||
'zvol/zvol_ENOSPC/zvol_ENOSPC_001_pos': ['FAIL', '5848'],
|
'zvol/zvol_ENOSPC/zvol_ENOSPC_001_pos': ['FAIL', '5848'],
|
||||||
'pam/setup': ['SKIP', "pamtester might be not available"],
|
'pam/setup': ['SKIP', "pamtester might be not available"],
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,7 @@ assert_zap_common $TESTPOOL $DISK "top" $orig_top
|
||||||
|
|
||||||
disk2=$(echo $DISKS | awk '{print $2}')
|
disk2=$(echo $DISKS | awk '{print $2}')
|
||||||
log_must zpool attach $TESTPOOL $DISK $disk2
|
log_must zpool attach $TESTPOOL $DISK $disk2
|
||||||
|
log_must zpool wait -t resilver $TESTPOOL
|
||||||
log_must zdb -PC $TESTPOOL > $conf
|
log_must zdb -PC $TESTPOOL > $conf
|
||||||
|
|
||||||
# Ensure top-level ZAP was transferred successfully.
|
# Ensure top-level ZAP was transferred successfully.
|
||||||
|
|
Loading…
Reference in New Issue