|
Fedora LinuxIt is a good idea to set this to an email alias, such as raid-alert , and configure the alias in the /etc/ aliases file to send mail to whatever destinations are appropriate: raid-alert: chris, 4165559999@msg.telus.com In this case, email will be sent to the local mailbox chris , as well as to a cell phone. When an event occurs, such as a drive failure, mdadm sends an email message like this: From root@bluesky.fedorabook.com Thu Mar 30 09:43:54 2006 Date: Thu, 30 Mar 2006 09:43:54 -0500 From: mdadm monitoring <root@bluesky.fedorabook.com> To: chris@bluesky.fedorabook.com Subject: Fail event on /dev/md0:bluesky.fedorabook.com This is an automatically generated mail message from mdadm running on bluesky.fedorabook.com A Fail event had been detected on md device /dev/md 0 . It could be related to component device /dev/ sdc1 . Faithfully yours, etc. I like the "Faithfully yours" bit at the end!В If you'd prefer that mdadm run a custom program when an event is detectedperhaps to set off an alarm or other notificationadd a PROGRAM line to /etc/mdadm.conf : # mdadm.conf written out by anaconda DEVICE partitions MAILADDR raid-alert PROGRAM /usr/local/sbin/mdadm-event-handler ARRAY /dev/md0 level=raid1 num-devices=2 uuid=dd2aabd5:fb2ab384:cba9912c:df0b0f4b ARRAY /dev/md1 level=raid1 num-devices=2 uuid=2b0846b0:d1a540d7:d722dd48:c5d203e4 ARRAY /dev/md2 level=raid1 num-devices=2 uuid=31c6dbdc:414eee2d:50c4c773:2edc66f6 Only one program name can be given ...» | Код для вставки книги в блог HTML
phpBB
текст
|
|