Lorenzo Quatrini wrote on 01/21/2010 06:26 AM: > Phil Schaffner ha scritto: >> 2. The command to create /etc/mdadm.conf will result in an extra line >> "spares=1" while the array is still syncing. Adding " | head -1 " to >> the command to create it fixes the problem. > May I suggest to add " | grep -v spares " or " | grep ARRAY " instead? If the > command is issued after the sync the resulting mdadm.conf would be incorrect. The "head -1" still works after the sync for the case of a single array, but your solutions are arguably more general. I like the "grep ARRAY". Thanks, Phil