Re: prefered way to update mdadm/mdadm.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday April 17, tlenz@xxxxxxxxxx wrote:
> There seems to be 2 ways to update mdadm.conf. One puts a little more info in and both create duplicate info that msut be removed.
> Which is the better way:
> 
> mdadm --examine --scan >> /etc/mdadm/mdadm.conf
> mdadm --detail --scan >> /etc/mdadm/mdadm.conf

The best way to create mdadm.conf is with an editor.
Understand the syntax of the file, understand what you want mdadm to
do to assemble/monitor arrays.  And create a file that suits.
The two commands are useful for pre-populating the file but should not
be considered a 'final' answer.
They are useful in different contexts.

> 
> Also, is there a way to check if mdadm "damenised" at boot for
> sending email alerts? mdstat only list the arrays, not any kind of 
> monitoring level.

"ps axgu  | grep mdadm"

is a good way.

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux