From: Jonathan Tripathy Subject: Re: Resync Every Sunday Date: Sun, 01 Jul 2012 22:57:20 +0100 Message-ID: <4FF0C7C0.7020706@abpni.co.uk> References: <4FF0328B.5080103@abpni.co.uk> <58p6c9xfag.ln2@goaway.wombat.san-francisco.ca.us> <4FF0B6B2.1080808@abpni.co.uk> <4FF0BFF9.4020207@nuclearwinter.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FF0BFF9.4020207@nuclearwinter.com> Sender: linux-raid-owner@vger.kernel.org To: Larkin Lowrey Cc: Keith Keller , linux-raid@vger.kernel.org List-Id: linux-raid.ids On 01/07/2012 22:24, Larkin Lowrey wrote: > There was a fedora bug in the raid-check script would only queue an > array for check if the array_state was 'clean'. Unfortunately, when the > array is busy performing normal I/O its array_state is 'active'. So, any > arrays which were servicing I/O at the time raid-check was run would not > be checked. > > It is quite possible that your CentOS version does not include the fix. > > https://bugzilla.redhat.com/show_bug.cgi?id=679843 > > If it's fixed you should see something like: > > # Only perform the checks on idle, healthy arrays, but delay > # actually writing the check field until the next loop so we > # don't switch currently idle arrays to active, which happens > # when two or more arrays are on the same physical disk > array_state=`cat /sys/block/$dev/md/array_state` > if [ "$array_state" != "clean" -a "$array_state" != "active" ]; then > continue > fi > > The fix, iirc, was simply the inclusion of '-a "$array_state" != > "active"' in the 'if' statement above. > > --Larkin Hi Larkin, This sounds like exactly what I'm experiencing. Is this 'if' statement supposed to be in the raid-check script? I don't have any if statement in my raid-check script Thanks