linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.29 - raid10 issue - spares do not get synched automatically
@ 2009-03-28 12:37 Patrick Ringl
  2009-03-28 20:46 ` NeilBrown
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Ringl @ 2009-03-28 12:37 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid

Hello,

I am using 2.6.29 on a debian lenny. Anyway, I am having problems with a 
raid10 sandbox setup consisting of 4 loopback devices. To make a long 
story short:

I created a raid10 array with all these 4 devices (loop0-loop3)
then I set two devices faulty, removed them .. checked if I can still 
write to the array (which I could, so I/O errors, nothing in dmesg):

BUT - here it comes: once I am trying to (re)add them (I zero'ed the 
superblock before) they're only getting added as spares and the array 
will not sync.

Here's the logfile with mdadm -D /dev/md0 in between so one can see what 
is going on:

http://paste.debian.net/31758/


Any ideas?


PS: Please CC to me since I am not subscribed.


regards,
Patrick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.29 - raid10 issue - spares do not get synched automatically
  2009-03-28 12:37 2.6.29 - raid10 issue - spares do not get synched automatically Patrick Ringl
@ 2009-03-28 20:46 ` NeilBrown
  2009-03-28 22:21   ` Patrick Ringl
  2009-03-28 22:41   ` Patrick Ringl
  0 siblings, 2 replies; 5+ messages in thread
From: NeilBrown @ 2009-03-28 20:46 UTC (permalink / raw)
  To: Patrick Ringl; +Cc: linux-raid

On Sat, March 28, 2009 11:37 pm, Patrick Ringl wrote:
> Hello,
>
> I am using 2.6.29 on a debian lenny. Anyway, I am having problems with a
> raid10 sandbox setup consisting of 4 loopback devices. To make a long
> story short:
>
> I created a raid10 array with all these 4 devices (loop0-loop3)
> then I set two devices faulty, removed them .. checked if I can still
> write to the array (which I could, so I/O errors, nothing in dmesg):
>
> BUT - here it comes: once I am trying to (re)add them (I zero'ed the
> superblock before) they're only getting added as spares and the array
> will not sync.
>
> Here's the logfile with mdadm -D /dev/md0 in between so one can see what
> is going on:
>
> http://pa#ste.debian.net/31758/
>

Linux RAID10 with

     Raid Level : raid10
   Raid Devices : 4
         Layout : near=2, far=1

Will layout data like this:

   disk0   disk1   disk2   disk3
     A       A       B       B
     C       C       D       D
     E       E       F       F

You have removed disk0 and disk1, so A,C,E don't exist
any more.  You should get IO errors when you try to access
that data.
There is nothing that can be recovered, so the drives remain
as spares.

NeilBrown



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.29 - raid10 issue - spares do not get synched automatically
  2009-03-28 20:46 ` NeilBrown
@ 2009-03-28 22:21   ` Patrick Ringl
  2009-03-28 22:44     ` NeilBrown
  2009-03-28 22:41   ` Patrick Ringl
  1 sibling, 1 reply; 5+ messages in thread
From: Patrick Ringl @ 2009-03-28 22:21 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

Hello Neil,

NeilBrown wrote:
> Linux RAID10 with
>
>      Raid Level : raid10
>    Raid Devices : 4
>          Layout : near=2, far=1
>
> Will layout data like this:
>
>    disk0   disk1   disk2   disk3
>      A       A       B       B
>      C       C       D       D
>      E       E       F       F
>
> You have removed disk0 and disk1, so A,C,E don't exist
> any more.  You should get IO errors when you try to access
> that data.
>   
Sorry, but I removed loop0 and loop2 so that would be disk0 and disk2 - 
so ACE as well as BDF should still exist and recover. Could you explain 
this, I am I just getting you wrong?
> There is nothing that can be recovered, so the drives remain
> as spares.
>
> NeilBrown
>   
regards,
Patrick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.29 - raid10 issue - spares do not get synched automatically
  2009-03-28 20:46 ` NeilBrown
  2009-03-28 22:21   ` Patrick Ringl
@ 2009-03-28 22:41   ` Patrick Ringl
  1 sibling, 0 replies; 5+ messages in thread
From: Patrick Ringl @ 2009-03-28 22:41 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

Hello Neil,

NeilBrown wrote:
>
> Linux RAID10 with
>
>      Raid Level : raid10
>    Raid Devices : 4
>          Layout : near=2, far=1
>
> Will layout data like this:
>
>    disk0   disk1   disk2   disk3
>      A       A       B       B
>      C       C       D       D
>      E       E       F       F
>
> You have removed disk0 and disk1, so A,C,E don't exist
> any more.  You should get IO errors when you try to access
> that data.
> There is nothing that can be recovered, so the drives remain
> as spares.
>
> NeilBron
You're right - sorry. I better should read my own logfiles tho. Somehow 
removing a single disk and readding it mixed up with the raid device 
numbering - which I didnt notice at first.



regards,
Patrick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.29 - raid10 issue - spares do not get synched automatically
  2009-03-28 22:21   ` Patrick Ringl
@ 2009-03-28 22:44     ` NeilBrown
  0 siblings, 0 replies; 5+ messages in thread
From: NeilBrown @ 2009-03-28 22:44 UTC (permalink / raw)
  To: Patrick Ringl; +Cc: linux-raid

On Sun, March 29, 2009 9:21 am, Patrick Ringl wrote:
> Hello Neil,
>
> NeilBrown wrote:
>> Linux RAID10 with
>>
>>      Raid Level : raid10
>>    Raid Devices : 4
>>          Layout : near=2, far=1
>>
>> Will layout data like this:
>>
>>    disk0   disk1   disk2   disk3
>>      A       A       B       B
>>      C       C       D       D
>>      E       E       F       F
>>
>> You have removed disk0 and disk1, so A,C,E don't exist
>> any more.  You should get IO errors when you try to access
>> that data.
>>
> Sorry, but I removed loop0 and loop2 so that would be disk0 and disk2 -
> so ACE as well as BDF should still exist and recover. Could you explain
> this, I am I just getting you wrong?

From the Pastezone thing...
-----------------------------------------------------
    Number   Major   Minor   RaidDevice State
       0       7        2        0      active sync   /dev/loop2
       1       7        0        1      active sync   /dev/loop0
       2       7        1        2      active sync   /dev/loop1
       3       7        3        3      active sync   /dev/loop3
pari:/mnt/debian# mdadm --manage /dev/md0 -f /dev/loop2
mdadm: set /dev/loop2 faulty in /dev/md0
pari:/mnt/debian# mdadm --manage /dev/md0 -f /dev/loop0
mdadm: set /dev/loop0 faulty in /dev/md0
---------------------------------------------------

So while you did remove loop0 and loop2, these were disk1 and disk0.

NeilBrown



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-28 22:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 12:37 2.6.29 - raid10 issue - spares do not get synched automatically Patrick Ringl
2009-03-28 20:46 ` NeilBrown
2009-03-28 22:21   ` Patrick Ringl
2009-03-28 22:44     ` NeilBrown
2009-03-28 22:41   ` Patrick Ringl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).