Setting up e-mail notifications for Linux Software RAID: Difference between revisions
Jump to navigation
Jump to search
(Created page with "It is prudent to set up email notifications that alert you when a RAID is in a degraded state. For a Software RAID on Linux (/dev/md partitions) this is done as follows. (Note...") |
mNo edit summary |
||
Line 19: | Line 19: | ||
</pre> |
</pre> |
||
<li>You should receive a test email for each |
<li>You should receive a test email for each RAID partition.</li> |
||
</ol> |
</ol> |
Revision as of 18:53, 19 June 2014
It is prudent to set up email notifications that alert you when a RAID is in a degraded state. For a Software RAID on Linux (/dev/md partitions) this is done as follows. (Note: instructions are specific to OpenSuSE.)
- Go to YaST -> System -> /etc/sysconfig editor
- Within the sysconfig editor, select: System -> File systems -> Mdadm
- Set MDADM_MAIL (for OpenSuSE 13.1 this can be a comma-separated list, for OpenSuSE 11.1 it must be a single email address)
- Set MDADM_SEND_MAIL_ON_START to 'yes'
- Click 'Ok' and quit YaST
- From the command line do
insserv mdadmd /etc/rc.d/mdadmd start
- You should receive a test email for each RAID partition.