[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17652.2140.871672.919816@cse.unsw.edu.au>
Date: Tue, 29 Aug 2006 19:26:52 +1000
From: Neil Brown <neilb@...e.de>
To: Nico Schottelius <nico-kernel20060829@...ottelius.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: Problem with md: Not rebuilding rai5
On Tuesday August 29, nico-kernel20060829@...ottelius.org wrote:
> Hello!
>
> I created a degrated raid5 on top of md1 and hde1. Then moved the data
> from /dev/hdk to the mounted raid5, and then added hdk1 (repartitoned)
> to the array. The sync began, but after that hde1 was faulty.
So you created a raid5 containing one drive that was already faulty.
That is unfortunate!
>
> I removed it, readded it, but now I've a raid5 with only one active
> disk (which should not be possible imho, a raid5 always needs 2 disks)
> AND what's even stranger for me, I've two spare disks.
If you have a raid5 with 2 working drives and one fails, how many
working drives do you expect to be left? 1. So the raid is no longer
fully functional. You might be able to read some data, but you want
able to write.
What did you expect to happen when hde1 failed?
>
> Is there a way to force rebuilding the array?
Well, you can create the array over md1 and hde1 again, and your data
should still be there, but it will just fail again whenever it tries
to access the block on hde1 which is bad.
I suggest you:
- recreate the array over md1 and hde1
- copy the data back to hdk
- stop the array
- replace hde1
- make the array.
- read the entire array (dd > /dev/null) to make sure it is safe
- copy data back from hdk
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists