On Sunday March 10, babydr@baby-dragons.com wrote: > > Hello Neil (& all) , make that > 'mdadm -b --examine --scan /dev/'All devices in the array' > Twyl , JimL > Which gives you (gosh;-) the output being looked for : > > # mdadm -b --examine --scan /dev/sd[b-d]1 > ARRAY /dev/md0 level=raid5 disks=3 UUID=b285b144:ae0b561b:b5b55686:ed216a4c > devices=/dev/sdb1,/dev/sdc1,/dev/sdd1 > You know, it makes life *so* much easier when people answer their own questions ... thanks for that :-) I guess this indicates that the documentation could be improved. mdadm --detail --brief /dev/md0 will print a prototype mdadm.conf line for /dev/md0. mdadm --examine --brief /dev/sda1 will print out a prototype mdadm.conf line for the array that contains /dev/sda1. The array device name (e.g. /dev/md1) will be a guess and should be checked. Also you probably don't want the "devices=" part. In this case it will only contain /dev/sda1 mdadm --examine --scan will scan all devices described in /etc/mdadm.conf and print out prototype mdadm.conf lines for them. This could well list bits of arrays that are no longer active. Use the output with caution. When --scan is used with --examine, it default to --brief (can be overridden with --verbose). But obviously not when you give a device name. I would like mdadm --detail --scan to given mdadm.conf lines for all running arrays, but this really means parsing /proc/mdstat which I have written any code for yet. mdadm --examine --scan /dev/whatever isn't really an intended usage. If you are giving a device, it doesn't need to scan for anything. Thanks for your feedback. NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html