zfs degraded, no mail or any other alert.

  • hello,

    a data cable from one hdd of a 2-disk mirror came off (don't ask me how), and the status of my nas was degraded for weeks...... until i found out by accident.

    it did not show any alert or mail to fix this early on, so I may have just been lucky to find this before anything serious happened......


    why didn't i get any alert ?

    how can i include this kind of error to get an email ?


    thank you in advance.

    • Offizieller Beitrag

    why didn't i get any alert ?

    how can i include this kind of error to get an email ?

    Do you have notifications configured and working in OMV? If yes, do you have the zfs zed notification enabled?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Code
    root@nas:~# systemctl status zed
    ● zfs-zed.service - ZFS Event Daemon (zed)
         Loaded: loaded (/lib/systemd/system/zfs-zed.service; enabled; vendor preset: enabled)
         Active: active (running) since Mon 2024-02-26 09:42:02 EE
    • Offizieller Beitrag

    I wasn't asking about the zed service. I was talking about OMV level notifications:

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    no i don't have this option.

    You must not have the zfs plugin installed then?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Can you post a screenshot of the notification page? Even on OMV 6.x, it should be there.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • sure, here it is.

    The page to show is System-> Notifications-> Events


    What you are showing is the widgets from the Dashboard

    • Offizieller Beitrag

    sure, here it is.

    Those are dashboard widgets not the Notification tab.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Do you have Notifications setup in the Notifications -> Settings tab?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    fwiw, this install was via omv-regen, a couple of months ago.

    ryecoaaron

    In case it helps, the salt modules that omv-regen updates after installing the zfs plugin are:

    zfszed collectd fstab monit quota nfs samba sharedfolders systemd tftpd-hpa

    In that order.

    omv-regen/omv-regen.sh at master · xhente/omv-regen
    Do you need to backup or restore the OMV configuration? This is the solution. - xhente/omv-regen
    github.com


    And the notifications are regenerated later, in phase 5, when the zfs plugin has already been installed and the existing pools have been imported.

    omv-regen/omv-regen.sh at master · xhente/omv-regen
    Do you need to backup or restore the OMV configuration? This is the solution. - xhente/omv-regen
    github.com


    I've never had any problems with it in all the testing I've done and a lot of people use it. I don't think omv-regen is causing this.

    • Offizieller Beitrag

    what is the output of: cat /etc/zfs/zed.d/zed.rc

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • tdriver et al


    Trying this out in a VM seems to indicate ZFS "statechange" event emails my not be created when you might expect. See this old thread too: Degraded ZFS not notifications


    So far I found the default OMV behaviour to be as tdriver described when disk drops out of a ZFS pool.


    TEST PROCEDURE

    =================


    0. Setup notifications ( used dummy email) and checked ZED events


    1. Create a new ZFS mirror pool in a OMV VM.


    2. Live remove scsi type disk from VM.


    3. Check zpool status



    4. Check associated zpool event(s)



    5. Check mailq


    No state change email


    6. Clear mailq with "postsuper -d ALL" and then run a scrub on zpool



    7. Checked mailq again - two emails appear.



    8. Views email.


  • ryecoaaron


    Code
    root@omv7vm:/# cat /etc/zfs/zed.d/zed.rc
    # This file is auto-generated by openmediavault (https://www.openmediavault.org)
    # WARNING: Do not edit this file, your changes will get lost.
    
    ZED_EMAIL_ADDR=dummysmtp@gmail.com
    ZED_NOTIFY_INTERNAL_SECS=3600
    root@omv7vm:/# 

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!