[CentOS-docs] Install On Partitionable RAID1

Phil Schaffner Philip.R.Schaffner at NASA.gov
Thu Jan 21 15:21:21 UTC 2010


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


More information about the CentOS-docs mailing list