Remove the "SparesMissing event"
Description
If you receive an "SparesMissing event", here´s how to remove it by @SerErris.
Example "SparesMissing event":
QuoteDisplay More
SparesMissing event on /dev/md/storage:openmediavault
This is an automatically generated mail message from mdadm
running on openmediavault
A SparesMissing event had been detected on md device /dev/md/storage.
Faithfully yours, etc.
P.S. The /proc/mdstat file currently contains the following:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : active raid5 sda[0] sdd[4] sdc[2] sdb[1]
5860540032 blocks super 1.2 level 5, 128k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>
The Problem
In /etc/mdadm/mdadm.conf you can find the entry for your md ARRAY:
# definitions of existing MD arrays
ARRAY /dev/md/storage metadata=1.2 [color=#FF0000][b]spares=1[/b] [/color]name=openmediavault:storage UUID=6a35a589:d9c8a30b:a61a95bf:XXXXXXXX
As long as this line states "spares=1" the message will arrive, as mdadm looks after a spare disk.
Solution
- Set the parameter to spares=0
- Done.
For example:
Before | ARRAY /dev/md/storage metadata=1.2 spares=1 name=openmediavault:storage UUID=6a35a589:d9c8a30b:a61a95bf:XXXXXXXX |
After | ARRAY /dev/md/storage metadata=1.2 spares=0 name=openmediavault:storage UUID=6a35a589:d9c8a30b:a61a95bf:XXXXXXXX |
Questions / Problems / Discussions
Click HERE to get to the diskussions thread.
Version 1.0 // 16.09.2014