Emit ESC_ZFS_VDEV_REMOVE_AUX after removing an aux device
ZFS does not do a config_sync after removing an aux (spare, log, or cache) device. AFAICT this isn't being done because it is slow and was deemed unnecessary. However, it should be such a rare operation that speed doesn't matter, and not doing it results in two problems:
1) It is theoretically possible to remove an aux device from one pool and attach it to another, then lose power. When power is restored, both pools would think that they own the aux device.
2) Removal of the aux device doesn't send any useful sysevents to userland.
Updated by Alan Somers about 6 years ago
In the discussion at https://github.com/openzfs/openzfs/pull/99 we decided not to do a config_sync when removing an aux device. Instead, we'll create a new sysevent type and emit that when removing an aux device. The issue title, which I do not have permissions to change, should say "Emit ESC_ZFS_VDEV_REMOVE_AUX after removing an aux device"
Updated by Electric Monk almost 6 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 63364b0ee2604783e7a55f8425888867768eafa4 Author: Alan Somers <email@example.com> Date: 2016-05-24T00:19:51.000Z 6922 Emit ESC_ZFS_VDEV_REMOVE_AUX after removing an aux device Reviewed by: George Wilson <firstname.lastname@example.org> Reviewed by: Matthew Ahrens <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>