K
K
Kenny002022-04-04 14:20:18
ZFS
Kenny00, 2022-04-04 14:20:18

How to get notifications from zed.rc about pool status?

The problem is that notifications from zed.rc about the state of the pool (zfs raid 1) do not come.
Proxmox VE 7.1-7

postfix is ​​configured to forward emails to root and other emails.
Letters go:
echo "Test mail system" | mail -s "PVE SERV" root

Tried by topic:
https://forum.proxmox.com/threads/zed-notification...
https://forum.proxmox.com/threads/zfs-zed-d-not-se...
https ://forum.proxmox.com/threads/no-email-notific...

Nothing comes to mail, no sound in mail.log.

I test like this:

cd /tmp
dd if=/dev/zero of=sparse_file bs=1 count=0 seek=512M
zpool create test /tmp/sparse_file
zpool scrub test

Again, nothing in mail.log

There is actually one line in the documentation, verbatim:

3.8.6. Activate E-Mail Notification
ZFS comes with an event daemon, which monitors events generated by the ZFS kernel module. The daemon can also send emails on ZFS events like pool errors. Newer ZFS packages ship the daemon in a separate package, and you can install it using apt-get:

# apt-get install zfs-zed
To activate the daemon it is necessary to edit /etc/zfs/zed.d/zed.rc with your favorite editor, and uncomment the ZED_EMAIL_ADDR setting:

ZED_EMAIL_ADDR="root"
Please note Proxmox VE forwards mails to root to the email address configured for the root user.

Important	The only setting that is required is ZED_EMAIL_ADDR. All other settings are optional.


My config is /etc/zfs/zed.d/zed.rc
(cat /etc/zfs/zed.d/zed.rc | grep -v '^#')
ZED_EMAIL_ADDR="[email protected]"
ZED_EMAIL_PROG="mail"
ZED_EMAIL_OPTS="-s '@[email protected]' @[email protected]"
ZED_NOTIFY_INTERVAL_SECS=3600
ZED_NOTIFY_VERBOSE=0
ZED_USE_ENCLOSURE_LEDS=1
ZED_SYSLOG_SUBCLASS_EXCLUDE="history_event"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kenny00, 2022-04-18
@Kenny00

As I understand it, it helped - ZED_NOTIFY_VERBOSE=0 to make it more detailed ZED_NOTIFY_VERBOSE=1
Then manipulations with the zpool come to the mail

P
Puma Thailand, 2022-04-04
@opium

So you can look at the mail.log logs whether there was a letter or not and where it was

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question