HomeFreeBSD

zed: prevent automatic replacement of offline vdevs

Description

zed: prevent automatic replacement of offline vdevs

When an OFFLINE device is physically removed, a spare is automatically
activated. However, this behavior differs in FreeBSD, where we do not
transition from OFFLINE state to REMOVED.
Our support team has encountered cases where customers experienced
unexpected behavior during drive replacements, with multiple spares
activating for the same VDEV due to a single disk replacement. This
patch ensures that a drive in an OFFLINE state remains in that state,
preventing it from transitioning to REMOVED and being automatically
replaced by a spare.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #16751

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Nov 15 2024, 11:08 PM
GitHub <noreply@github.com>Committed on Nov 15 2024, 11:08 PM
Parents
rGfd6e8c1d2a5c: BRT: Rework structures and locks to be per-vdev
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGff3df1211c4a: zed: prevent automatic replacement of offline vdevs (authored by Ameer Hamza <ahamza@ixsystems.com>).Nov 15 2024, 11:08 PM