HomeFreeBSD

zed: unclean disk attachment faults the vdev

Description

zed: unclean disk attachment faults the vdev

If the attached disk already contains a vdev GUID, it
means the disk is not clean. In such a scenario, the
physical path would be a match that makes the disk
faulted when trying to online it. So, we would only
want to proceed if either GUID matches with the last
attached disk or the disk is in a clean state.

Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Nov 15 2022, 12:59 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 5 2023, 7:09 PM
Parents
rGfbbc375d43c6: FreeBSD: Fix potential boot panic with bad label
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2f2d6bece852: zed: unclean disk attachment faults the vdev (authored by Ameer Hamza <ahamza@ixsystems.com>).Jan 5 2023, 7:09 PM