![]() Running an external program when an event occursĪnother option provided with the /etc/nf file is to run an external application when an error is detected.Īn example application could be something as simple as a script that causes messages to popup on the screen when an event occurs. The MAILADDR line could then be added as well. ![]() If those sections do not exist a new /etc/nf file can be created by using the following command: NOTE: It has been found that mdadm will not send an e-mail if the DEVICE partitions section does not exist in the /etc/nf file. This command could be added to the /etc/init.d/boot.local so that mdadm ran every time the system was started. Utilizing the /etc/nf would simplify the command line and make it look like this: The lines beginning with # were added for this documentation. The following is an example of an nf file: Using mdadm with the /etc/nf file is very similar to the command line, except that the e-mail address is included in the nf file. Specifying an e-mail address using the nf file Verification that mdadm is running can be verified by typing the following in a terminal window: Mdadm -monitor -scan -daemonize command could be put /etc/init.d/boot.local so that it was loaded every time the system was started. The following explains the mdadm command and how to set it up so that it will load every time the system is started. Using the command line simply involves including the e-mail address in the command. Specifying an e-mail address using the mdadm command line NOTE: e-mails are only sent when the following events occur:įail, FailSpare, DegradedArray, and TestMessage Using the /etc/nf file to specify an e-mail address.Steps for setting up e-mail alerting of errors with mdadm:Į-mail error alerting with mdadm can be accomplished in several ways: The setup steps for mdadm are for use after a system has an active software raid setup. This document is not intended to explain software raid setup in SLE Linux. This TID will explain how to use mdadm to monitor and report issues with a software raid configuration in SLE Linux. Mdadm is a command line utility that can be used to create, manage, and monitor Linux software RAID devices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |