this post was submitted on 05 Jul 2023
5 points (100.0% liked)

Linux

8049 readers
87 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 year ago (2 children)

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

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 1 points 1 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.