On Sun, May 20, 2018 at 01:08:42PM +1000, George Georgakis wrote:
> On 20/05/2018 12:54 PM, Rick Moen via luv-main wrote:
>
> > ISTR that mdadm.conf can be fully reconsructed from that stored
> > metadata, even.
>
> mdadm --detail --scan > /etc/mdadm.conf ?
or (on debian at least):
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
The important info about the arrays is the same for both commands, but mkconf
also outputs a template (with sane defaults) for filling in optional stuff
like the HOMEHOST and MAILADDR for mdadm alerts.
One thing you can use mdadm.conf for is to rename md0 back to md0 after mdadm
"helpfully" renames it to md127 or whatever. Technically, it doesn't matter
because you should be using UUIDs or LABEL in your fstab anyway, but I don't
want to see md127, I want to ѕee md0.
Also important: remember to run update-initramfs afer updating mdadm.conf.
craig
--
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main