Is it possible for a Linux system to notify you if a RAID drive fails?

Solution

As mentioned by @AbominableSlinky, 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 ,

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

PlasticExistence ,

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

ScottE ,

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.

AbominableSlinky ,
Kalcifer OP ,

Thank you so much!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines