All of lore.kernel.org
 help / color / mirror / Atom feed
* RAID10 Resync fails with specific chunk size and drive sizes (reproducible)
@ 2007-02-20 11:35 Peter Rabbitson
  2007-02-20 13:44 ` Peter Rabbitson
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Rabbitson @ 2007-02-20 11:35 UTC (permalink / raw)
  To: linux-raid

Hi,

I think I've hit a reproducible bug in the raid 10 driver, tried on two 
different machines with kernels 2.6.20 and 2.6.18. This is a script to 
simulate the problem:

======================
#!/bin/bash

modprobe loop

for ID in 1 2 3 ; do
    echo -n "Creating loopback device $ID... "
    dd if=/dev/zero of=dsk${ID}.img bs=512 count=995967
    losetup /dev/loop${ID} dsk${ID}.img
    echo "done."
done

mdadm -C /dev/md2 -l 10 -n 3 -p o2 -c 2048 /dev/loop1 /dev/loop2 /dev/loop3
echo "Raid device assembled, check /proc/mdstat's output when resync is finished"
======================

This is the output I get in /proc/mdstat after the resync settles:

======================
md2 : active raid10 loop3[2] loop2[3](F) loop1[0]
      746496 blocks 2048K chunks 2 offset-copies [3/2] [U_U]
======================

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

* Re: RAID10 Resync fails with specific chunk size and drive sizes (reproducible)
  2007-02-20 11:35 RAID10 Resync fails with specific chunk size and drive sizes (reproducible) Peter Rabbitson
@ 2007-02-20 13:44 ` Peter Rabbitson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Rabbitson @ 2007-02-20 13:44 UTC (permalink / raw)
  To: linux-raid

After I sent the message I received the 6 patches from Neil Brown. I 
applied the first one (Fix Raid10 recovery problem) and it seems to be 
taking care of the issue I am describing. Probably due to the rounding 
fixes.

Thanks 


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

end of thread, other threads:[~2007-02-20 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20 11:35 RAID10 Resync fails with specific chunk size and drive sizes (reproducible) Peter Rabbitson
2007-02-20 13:44 ` Peter Rabbitson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.