Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Alert for ZFS Degraded pool

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    3 Posts 3 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pfBasic Banned
      last edited by

      On my VM I tried booting after removing disks in the pool from the VM. Everything works fine, and zpool status shows the pool being degraded as it should.

      Can a feature be added to get a system alert (and e-mail if configured) when the zpool is degraded?

      1 Reply Last reply Reply Quote 0
      • curtisgriceC
        curtisgrice
        last edited by

        I too would like to see this. That or if we can get confirmation that this would appear in SNMP and preferable generate a trap.

        Slow code? Sounds like a good reason to buy more hardware!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          It's possible but needs some work.

          At the moment I don't have anything setup with ZFS and multiple disks, but I imagine it could be adapted from the gmirror code or perhaps changing the gmirror code so it checks gmirror and zfs rather than just one.

          https://github.com/pfsense/pfsense/blob/master/src/etc/pfSense-rc#L399
          https://github.com/pfsense/pfsense/blob/master/src/usr/local/sbin/gmirror_status_check.php

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.