Solution

As mentioned by @[email protected], information can be found here.

TL;DR: mdadm can be configured to notify you, via email, if you are having any hard drive issues.

From the shared link, see “Monitoring RAID Arrays”:

You can run mdadm as a daemon by using the follow-monitor mode. If needed, that will make mdadm send email alerts to the system administrator when arrays encounter errors or fail.

Original Post

I would like to set up RAID 1 for a server of mine, but I am wondering if its possible for some form of notification system for that can be set up.

Perhaps a push notification to my desktop, or a prompt when I log in via SSH or some other method. I just don’t want to have to run diagnostic commands constantly to check drive health.

  • @AbominableSlinky
    link
    English
    61 year ago

    I’d also suggest looking at ZFS. Works great on Linux and it’s super powerful.

    • @PlasticExistence
      link
      English
      11 year ago

      Not only that, but replacing a failed drive is easy. The resilvering process is dead simple.

    • @ScottE
      link
      English
      11 year ago

      ZFS also directly addresses this issue in that a scrub can be setup in cron, which will detect any data issues and send email. One could do that with smartctl too, but that can be too late, where a ZFS scrub is more likely to let you know of issues before data loss.