System: Proxmox VE 6.0-6 (upgraded from 5.4)
Hey guys!
I've had to resetup zed, since the config file got overwritten at the upgrade. And Notifications work fine, except, that I don't get en email if I remove a drive. Finished scrubs and resilvering cause an email. But the fact, that a hard drive went offline didn't.
In the zedlet statechange-notify.sh it seems, there are only trigger for 'DEGRADED', 'FAULTED' or 'REMOVED' drives.
Is that somehow by purpose? Or am I just missing something? The fact, that a drive went offline in my system is quite critical (imho).
Part of statechange-notify.sh
Hey guys!
I've had to resetup zed, since the config file got overwritten at the upgrade. And Notifications work fine, except, that I don't get en email if I remove a drive. Finished scrubs and resilvering cause an email. But the fact, that a hard drive went offline didn't.
In the zedlet statechange-notify.sh it seems, there are only trigger for 'DEGRADED', 'FAULTED' or 'REMOVED' drives.
Is that somehow by purpose? Or am I just missing something? The fact, that a drive went offline in my system is quite critical (imho).
Code:
Aug 30 2019 14:47:17.040921375 resource.fs.zfs.statechange
version = 0x0
class = "resource.fs.zfs.statechange"
pool = "hdd"
pool_guid = 0x79d541d265310a54
pool_state = 0x0
pool_context = 0x0
vdev_guid = 0xedfa949ff5bf4746
vdev_state = "OFFLINE" (0x2)
vdev_path = "/dev/sdb1"
vdev_devid = "ata-WDC_WD5000AAKX-XXXXXXXXXXX-part1"
vdev_physpath = "pci-0000:00:1f.2-ata-2"
vdev_laststate = "ONLINE" (0x7)
time = 0x5d691ad5 0x270691f
eid = 0x5c
Part of statechange-notify.sh
Code:
#
# Send notification in response to a fault induced statechange
#
# ZEVENT_SUBCLASS: 'statechange'
# ZEVENT_VDEV_STATE_STR: 'DEGRADED', 'FAULTED' or 'REMOVED' <==== !!
#
# Exit codes:
# 0: notification sent
# 1: notification failed
# 2: notification not configured
# 3: statechange not relevant
# 4: statechange string missing (unexpected)