> For the complete documentation index, see [llms.txt](https://doc.engenius.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.engenius.ai/intel-r-vroc-for-linux-guide/appendix/raid-monitoring-parameters-and-events.md).

# RAID Monitoring Parameters and Events

The following table lists additional command line parameters that can be passed to

mdadm at startup.

**Table C-1. Parameters for mdadm in Monitor Mode**

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Long form</td><td valign="top">Short Form</td><td valign="top">Description</td></tr><tr><td valign="top">--mail</td><td valign="top">-m</td><td valign="top">Provide mail address to email alerts or failures to.</td></tr><tr><td valign="top">--program or --alert</td><td valign="top">-p</td><td valign="top">Provide program to run when an event is detected.</td></tr><tr><td valign="top">--delay</td><td valign="top">-d</td><td valign="top">Seconds of delay between polling state. Default is 60s.</td></tr><tr><td valign="top">--config</td><td valign="top">-c</td><td valign="top">Specify a different config file.</td></tr><tr><td valign="top">--scan</td><td valign="top">-s</td><td valign="top">Find mail-address/program settings in config file.</td></tr><tr><td valign="top">--oneshot</td><td valign="top">-1</td><td valign="top">Check for degraded arrays and then exit.</td></tr><tr><td valign="top">--test</td><td valign="top">-t</td><td valign="top">Generate a <em>Test Message</em> event against each array at startup.</td></tr><tr><td valign="top">--syslog</td><td valign="top">-y</td><td valign="top">Cause all events to be reported through <em>syslog</em>. The messages have facility of ’daemon’ and varying priorities.</td></tr><tr><td valign="top"><p> </p><p>--increment</p></td><td valign="top"><p> </p><p>-r</p></td><td valign="top">Give a percentage increment. <em>mdadm</em> will generate <em>RebuildNN</em> events with the <em>NN</em> indicating the percentage at which the rebuild event had happened.</td></tr><tr><td valign="top">--daemonise</td><td valign="top">-f</td><td valign="top">Run as background daemon if monitoring.</td></tr><tr><td valign="top">--pid-file</td><td valign="top">-i</td><td valign="top">Write the PID of the daemon process to a specified file.</td></tr><tr><td valign="top">--no-sharing</td><td valign="top">N/A</td><td valign="top">This inhibits the functionality for moving spare drives between arrays.</td></tr></tbody></table>

{% hint style="info" %}
Note: The mdmonitor service has to be re-started if mdmonitor.service or the mdadm.conf file is changed.
{% endhint %}

The following table presents all the events that are reported by the mdadm monitor:

**Table C-2. Monitoring Events**

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Event Name</td><td valign="top">Description</td></tr><tr><td valign="top">DeviceDisappeared</td><td valign="top">An MD array previously configured no longer exists.</td></tr><tr><td valign="top">RebuildStarted</td><td valign="top">An MD array started reconstruction.</td></tr><tr><td valign="top">RebuildNN</td><td valign="top"><em>NN</em> is a 2-digit number that indicates rebuild has passed that many percent of the total. For example, Rebuild50 will trigger an event when 50% of rebuild has completed.</td></tr><tr><td valign="top">RebuildFinished</td><td valign="top">An MD array has completed rebuild.</td></tr><tr><td valign="top">Fail<sup>1</sup></td><td valign="top">An active component of an array has been marked faulty.</td></tr><tr><td valign="top">FailSpare<sup>1</sup></td><td valign="top">A spare drive that was being rebuilt to replace a faulty device has failed.</td></tr><tr><td valign="top">SpareActive</td><td valign="top">A spare drive that was being rebuilt to replace a fault device is rebuilt and active.</td></tr><tr><td valign="top">NewArray</td><td valign="top">A new MD array has been detected in /proc/mdstat.</td></tr><tr><td valign="top">DegradedArray<sup>1</sup></td><td valign="top">A newly discovered array appears to be degraded.</td></tr><tr><td valign="top">MoveSpare</td><td valign="top">A spare drive has been moved from one array in a spare group to another array to replace a failed drive. Both arrays are labeled with the same spare group.</td></tr><tr><td valign="top">SparesMissing<sup>1</sup></td><td valign="top">The spare device(s) does not exist in comparison to the config file when the MD array is first discovered.</td></tr><tr><td valign="top">TestMessage<sup>1</sup></td><td valign="top">Discovered new array while the --test flag was used.</td></tr></tbody></table>

{% hint style="info" %}
Note: 1 The events indicated cause an email to be sent. These can also be sent to the syslog file.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.engenius.ai/intel-r-vroc-for-linux-guide/appendix/raid-monitoring-parameters-and-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
