Re: read errors corrected

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Giovanni Tessore
Date: Thursday, December 30, 2010 - 3:13 am

On 12/30/2010 04:20 AM, James wrote:

(a) these errors usually come from defective disk sectors. raid 
recostructs the missing sector from parity from other disks in the 
array, then rewrites the sector on the defective disk; if the sector is 
rewritten without error (maybe the hd remaps the sector into its 
reserved area), then just the log messages is displayed.

(b) with raid-6 it's almost benign; to get troubles you should get a 
read error on same sector for >2 disks; or have 2 disks failed and out 
of the array and get a read error on one of the other disks while 
recostructing the array; or have 1 disk failed and get a read error on 
same sector on >1 disk while recostructing (with raid-5 it's almost 
dangerous instead, as you can have big troubles if a disk fails and you 
get a read error on another disk while recostructing; that happened to me!)

(c) no; it's also a good rule to perform a periodic scrub of the array 
(check of the array), to reveal and correct defective sectors

(d) check smart status of the disks, for "relocated sectors count"; also 
if md superblock is >= 1 there is a persistent count of corrected read 
errors for each device into /sys/block/mdXX/md/dev-XX/errors, when this 
counter reaches 256 the disk is marked failed; ihmo when a disk is 
giving even few corrected read errors in a short interval its better to 
replace it.

-- 
Yours faithfully.

Giovanni Tessore


--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
read errors corrected, James, (Wed Dec 29, 8:20 pm)
Re: read errors corrected, Mikael Abrahamsson, (Wed Dec 29, 10:24 pm)
Re: read errors corrected, Neil Brown, (Thu Dec 30, 2:15 am)
Re: read errors corrected, Giovanni Tessore, (Thu Dec 30, 3:13 am)
Re: read errors corrected, James, (Thu Dec 30, 9:33 am)
Re: read errors corrected, James, (Thu Dec 30, 9:35 am)
Re: read errors corrected, Roman Mamedov, (Thu Dec 30, 9:44 am)
Re: read errors corrected, James, (Thu Dec 30, 9:51 am)
Re: read errors corrected, Ryan Wagoner, (Thu Dec 30, 10:59 am)
Re: read errors corrected, James, (Thu Dec 30, 11:03 am)
Re: read errors corrected, Neil Brown, (Thu Dec 30, 4:12 pm)
Re: read errors corrected, James, (Thu Dec 30, 6:48 pm)
RE: read errors corrected, Guy Watkins, (Thu Dec 30, 6:56 pm)
Re: read errors corrected, Neil Brown, (Thu Dec 30, 7:08 pm)