Skip to contentSkip to conversation

Superblock updates to failed spare

DISCUSSION Sean Puttergill 2 participants 3 messages Oct 29, 2005 MD RAID

lore
Share & tools
lore
#0 lore raw

If I create a raid array with a hot spare, put a filesystem on the array, mount it, then physically remove the spare (SATA) drive (simulating a failure of the spare), I get infinite, periodic superblock update failures to the spare like this:

"
scsi2 (0:0): rejecting I/O to dead device

md: write_disk_sb failed for device sdc

md: errors occurred during superblock update, repeating

[repeated many times and then eventually ...]

md: excessive errors occurred during superblock update, exiting
"

This repeats every few seconds.

I understand that the superblock on the spare is being periodically updated along with the superblocks on the active drives, but md should recognize that the spare is bad and kick it out of the array. If the spare were to actually fail you would end up with your logs being clogged with the above messages.

On a related note, has any work been done to modify md such that it doesn't update the superblock on the spare? This would allow the spare to remain asleep until it is really needed for a rebuild (preserving the health of the spare).

I am running kernel 2.6.11

Cheers,
Sean

__________________________________________________________
Find your next car at http://autos.yahoo.ca

#1 lore raw
Quoted 3 lines · On Friday October 28, [email protected] wrote:

I am running kernel 2.6.11

.. which is about 6 months old, and 2.6.14 was just released...

Yes, this is a known bug, that was fixed in April (I think).

NeilBrown

#2 lore raw

Sorry, I searched like mad in this maillist's archives and found no reference to the bug. Thanks for the tip.

Does md still make superblock updates to the spare (i.e. can the spare stay spun-down)?

Sean

Quoted 5 lines · --- Neil Brown
Quoted 3 lines · On Friday October 28, [email protected] wrote:

I am running kernel 2.6.11

Quoted 8 lines

.. which is about 6 months old, and 2.6.14 was just released...

Yes, this is a known bug, that was fixed in April (I think).

NeilBrown

__________________________________________________________
Find your next car at http://autos.yahoo.ca