Setting up e-mail notifications for Linux Software RAID: Difference between revisions

From csml-wiki.northwestern.edu
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
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.)
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 1: instructions are specific to OpenSuSE.

Note 2: on OpenSuSE Leap 42.1, you need to copy /etc/rc.d/mdadmd from OpenSuSE 13.1 before applying the steps below.


<ol>
<ol>

Revision as of 21:36, 18 August 2016

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 1: instructions are specific to OpenSuSE.

Note 2: on OpenSuSE Leap 42.1, you need to copy /etc/rc.d/mdadmd from OpenSuSE 13.1 before applying the steps below.

  1. Go to YaST -> System -> /etc/sysconfig editor
  2. Within the sysconfig editor, select: System -> File systems -> Mdadm
  3. 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)
  4. Set MDADM_SEND_MAIL_ON_START to 'yes'
  5. Click 'Ok' and quit YaST
  6. From the command line do
    insserv mdadmd
    /etc/rc.d/mdadmd start
    
  7. You should receive a test email for each RAID partition.