HomeFreeBSD

Make 'zpool labelclear -f' work on offlined disks

Description

Make 'zpool labelclear -f' work on offlined disks

This patch allows you to clear the label on offlined disks in an active
pool with -f. Previously, labelclear wouldn't let you do that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #12511

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Aug 27 2021, 4:26 PM
GitHub <noreply@github.com>Committed on Aug 27 2021, 4:26 PM
Parents
rG00888c089805: Extend zpool-iostat to account for ZIO_PRIORITY_REBUILD (#12319)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG4dc115328f0f: Make 'zpool labelclear -f' work on offlined disks (authored by Tony Hutter <hutter2@llnl.gov>).Aug 27 2021, 4:26 PM