zfs`vdev_online() needs better notification about state changes
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.
Updated by Electric Monk over 2 years ago
- % Done changed from 50 to 100
- Status changed from New to Closed
commit 5f368aef86387d6ef4eda84030ae9b402313ee4c Author: Yuri Pankov <email@example.com> Date: 2017-04-25T02:51:34.000Z 7786 zfs`vdev_online() needs better notification about state changes Reviewed by: Matthew Ahrens firstname.lastname@example.org Reviewed by: George Wilson email@example.com Approved by: Albert Lee <firstname.lastname@example.org>