New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Your question is a bit too generic. Are you using hardware RAID or software? If hardware, what controller(s)?
You're oversimplifying this whole thing. It sounds like you probably need to read up on how things work in general and if a solution isn't out there to meet your need, how about write something and share it with the rest of us?
Well, you do not need a script.
Linux software variant has build in notifications, just configure it and have a local mailserver running.
with linux you can do something simple, like:
mdadm --detail /dev/md<deviceid> | grep -i 'fail*\|inpersistent\|critical' | mail -s "Software raid failure on "`date +\%D` [email protected]
There is no one single script you can run for this.
Look into solutions for your device, such as iDrac notifications in hardware... IPMI probably has something similar.
@Neoon's comment is correct for this in regards to linux software raids.
I'd suggest looking into SMART Monitoring of your drives, as that is a better indicator of pending failures.