Project

General

Profile

Actions

Bug #7786

closed

zfs`vdev_online() needs better notification about state changes

Added by Yuri Pankov over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2017-01-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Currently, vdev_online() will only post sysevent if previous state was "offline". It should also post the event when the state changes from "removed" or "faulted" to "healthy" or "degraded".

This will fix the following scenario:
- pull disk from slot A
- check that hotspare has taken its place (if available)
- insert disk into slot B
- check that hotspare moved back to "avail" state (if spare was used)

The problem here is that we don't get any ESC_ZFS_VDEV_* notification and fail to update the vdev FRU.

Actions #1

Updated by Electric Monk about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 50 to 100

git commit 5f368aef86387d6ef4eda84030ae9b402313ee4c

commit  5f368aef86387d6ef4eda84030ae9b402313ee4c
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2017-04-25T02:51:34.000Z

    7786 zfs`vdev_online() needs better notification about state changes
    Reviewed by: Matthew Ahrens mahrens@delphix.com
    Reviewed by: George Wilson george.wilson@delphix.com
    Approved by: Albert Lee <trisk@forkgnu.org>

Actions

Also available in: Atom PDF