Solution
As mentioned by @AbominableSlinky@lemmy.world, 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.
5 Comments
AbominableSlinky@lemmy.world · 6 pts · 3y
I’d also suggest looking at ZFS. Works great on Linux and it’s super powerful.
PlasticExistence@lemmy.world · 1 pts · 3y
Not only that, but replacing a failed drive is easy. The resilvering process is dead simple.
ScottE@lemmy.world · 1 pts · 3y
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@lemmy.world · 3 pts · 3y
https://raid.wiki.kernel.org/index.php/Detecting,_querying_and_testing
Kalcifer@lemmy.world · 1 pts · 3y
Thank you so much!