Re: Resync Every Sunday

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


On 7/1/2012 3:44 PM, Jonathan Tripathy wrote:
>
> On 01/07/2012 21:41, Keith Keller wrote:
>> On 2012-07-01, Jonathan Tripathy<jonnyt@xxxxxxxxxxx>  wrote:
>>> What's going on? Am I missing something here? Is data on the arrays at
>>> risk? We're using CentOS 5 with mdadm v2.6.9. Kernel version is
>>> 2.6.18-274.18.1.el5
>> As you are running CentOS, check /etc/sysconfig/raid-check.  Someone may
>> have configured certain arrays not to be checked.
>>
> There is nothing in that file that suggests that some arrays should be
> skipped.
>
> ENABLED=yes
> CHECK=check
> # To check devs /dev/md0 and /dev/md3, use "md0 md3"
> CHECK_DEVS=""
> REPAIR_DEVS=""
> SKIP_DEVS=""
>
> Thanks
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux