Skip to contentSkip to conversation

device that *thinks* to be a spare...

DISCUSSION Sandro Dentella 2 participants 2 messages Mar 8, 2006 – Mar 10, 2006 MD RAID

lore
Share & tools
lore
#0 lore raw

Yersterday i toubled with system crash due to an md device that stopped due to an error on a single block (sata controller).

Starting from a live rescue cd to analize the situation I found that the array thought the good disk was the one had the block failure, so that reconstruction arrived at 75% and then restarted (I saw that happending).

I eliminated the bad disk and the other couldn't start complaining it was a spare one (but no one was configured as spare...) so that there where no good disk. I had to turn it into a normal /dev/sda disk to be able to start the system.

My question is if there is a way to convince a device that it is the good device w/o destroying the array and how it can happen that an array component turns into a spare one.

What should I have one?

TIA
sandro
*:-)

#1 lore raw
Quoted 2 lines · On Thursday March 9, [email protected] wrote:

Yersterday i toubled with system crash due to an md device that stopped due to an error on a single block (sata controller).

That shouldn't cause a system crash. Do you have any kernel logs showing exactly what happened (what the single-block error was etc)?

Quoted 5 lines

Starting from a live rescue cd to analize the situation I found that the array thought the good disk was the one had the block failure, so that reconstruction arrived at 75% and then restarted (I saw that happending).

That is very strange. Again, logs would be helpful.

Quoted 9 lines

I eliminated the bad disk and the other couldn't start complaining it was a spare one (but no one was configured as spare...) so that there where no good disk. I had to turn it into a normal /dev/sda disk to be able to start the system.

My question is if there is a way to convince a device that it is the good device w/o destroying the array and how it can happen that an array component turns into a spare one.

You can always re-create the array e.g.
mdadm -C /dev/md -l1 -n2 /dev/sda missing

This does not destroy data.

Quoted 2 lines

What should I have one?

Provided more details in logs :-)

NeilBrown