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