Score:0

How to configure notification on degraded RAID?

ru flag

I am planning a RAID1(mirror) array in a NAS using either a Hardware or Software RAID controller using Linux.

Though I did not find any documentation in which way the system will notify me that the RAID is degraded.

I dont want to actively check for degration. I suppose there is some way to configure a "mail to root" when degration is noticed ?

How does a HW raid communicate a degraded disk to the system at all ? Do I need to install raidcard-specific software to know ?

in flag
That depends on the raid controller.
djdomi avatar
za flag
and please decide if it's a software raid or hw raid, don't tag both, and please update the question to be precise as possible
ru flag
Well it is nothing currently. I want to decide which one to go for, HW or SW, based on the possibility to notify on degration. Should I better ask two separate questions than ?
djdomi avatar
za flag
this platform will not help you to utilize what platform would be the best due to the opinion bases answers. however, in most cases, hw raid will be the option and the better solution and choice
Score:2
la flag

In most cases the raid itself will not notify you. You will have to use software or a script to poll the status of the raid periodically and notify you via email or other ways.

For the mdraid based software raids you can use mdadm for monitoring and for others there are different ways.

You can get inspiration from check_raid which is commonly used with nagios/naemon monitoring, but you can use it as a standalone script.

check_raid

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.