Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probe vdevs before marking removed #14861

Merged
merged 1 commit into from
May 19, 2023
Merged

Commits on May 15, 2023

  1. Probe vdevs before marking removed

    Before allowing the ZED to mark a vdev as REMOVED due to a
    hotplug event confirm that it is non-responsive with probe.
    Any device which can be successfully probed should be left
    ONLINE to prevent a healthy pool from being incorrectly
    SUSPENDED.  This may occur for at least the following two
    scenarios.
    
    1) Drive expansion (zpool online -e) in VMware environments.
       If, during the partition resize operation, a partition is
       removed and re-created then udev will send a removed event.
    
    2) Re-scanning the namespaces of an NVMe device (nvme ns-rescan)
       may result in a udev remove and add event being delivered.
    
    Finally, update the ZED to only kick in a spare when the
    removal was successful.
    
    Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
    behlendorf committed May 15, 2023
    Configuration menu
    Copy the full SHA
    57f8354 View commit details
    Browse the repository at this point in the history