ZFS test remove_mirror should wait for device removal to complete
the remove_mirror test does a "zpool remove" on a regular vdev.
For regular (non-slog, non-cache) vdevs this operation is asynchronous and so we should wait on it to complete before trying to remove another device or re-adding the same device:
SUCCESS: default_setup_noexit /tmp/dsk1 mirror /tmp/dsk2 /tmp/dsk3 SUCCESS: zpool remove testpool /tmp/dsk1 SUCCESS: zpool remove testpool /tmp/dsk2 exited 1 invalid vdev specification use '-f' to override the following errors: /tmp/dsk1 is part of active pool 'testpool' ERROR: zpool add testpool /tmp/dsk1 exited 1
Updated by Electric Monk over 4 years ago
- Status changed from New to Closed
- % Done changed from 80 to 100
commit d8cfd210fd5a1952766872e066477af3df22c27c Author: Prashanth Sreenivasa <email@example.com> Date: 2018-02-08T05:16:40.000Z 9064 ZFS test remove_mirror should wait for device removal to complete Reviewed by: Pavel Zakharov <firstname.lastname@example.org> Reviewed by: Matt Ahrens <email@example.com> Reviewed by: John Kennedy <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>