From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Subject: Re: weird issues with raid1 Date: Thu, 18 Dec 2008 15:42:01 +1100 Message-ID: <18761.54425.725696.255055@notabene.brown> References: <18757.62097.166706.244330@notabene.brown> <18758.52536.345145.238926@notabene.brown> <18759.678.74091.236787@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: message from Neil Brown on Tuesday December 16 Sender: linux-raid-owner@vger.kernel.org To: Jon Nelson , LinuxRaid List-Id: linux-raid.ids On Tuesday December 16, neilb@suse.de wrote: > On Monday December 15, jnelson-linux-raid@jamponi.net wrote: > > On Mon, Dec 15, 2008 at 3:33 PM, Neil Brown wrote: > > > On Monday December 15, jnelson-linux-raid@jamponi.net wrote: > > >> > > >> Aha! This explains a question I raised in another email. What > > >> happened there is a previously fully active member of the raid got > > >> added, somehow, as a spare, via --incremental. That's when the entire > > >> raid thought it needed to be rebuilt. How did that (the device being > > >> treated as a spare instead of as a previously fully active member) > > >> happen? > > > > > > It is hard to guess without details, and they might be hard to collect > > > after the fact. > > > Maybe if you have the kernel logs of when the server rebooted and the > > > recovery started, that might contain some hints. > > > > I hope this helps. > > Yes it does, though I generally prefer to get more complete logs. If > I get the surrounding log lines then I know what isn't there as well > as what is - and it isn't always clear at first which bits will be > important. > > The problem here is that --incremental doesn't provide the --re-add > functionality that you are depending on. That was an oversight on my > part. I'll see if I can get it fixed. > In the mean time, you'll need to use --re-add (or --add, it does the > same thing in your situation) to add nbd0 to the array. Actually, I'm wrong. --incremental does do the right thing w.r.t. --re-add. I couldn't reproduce your symptoms. It could be that you are hitting the bug fixed by commit a0da84f35b25875870270d16b6eccda4884d61a7 You would need 2.6.26 or later to have that fixed. Can you try with a newer kernel??? NeilBrown