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 2 years ago
- % Done changed from 80 to 100
- Status changed from New to Closed
commit d8cfd210fd5a1952766872e066477af3df22c27c Author: Prashanth Sreenivasa <firstname.lastname@example.org> Date: 2018-02-08T05:16:40.000Z 9064 ZFS test remove_mirror should wait for device removal to complete Reviewed by: Pavel Zakharov <email@example.com> Reviewed by: Matt Ahrens <firstname.lastname@example.org> Reviewed by: John Kennedy <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>