Re: Raid10 reshape bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Phillip Susi writes:

> So it turns out all you have to do to trigger a bug is:
>
> mdadm --create -l raid10 -n 2 /dev/md1 /dev/loop0 missing
> mdadm -G /dev/md1 -p o2

I tried it again using a second disk instead of starting with a degraded
array, and the reshape says it worked, but left the array degraded with
one disk faulty and the data trashed.

After recreating the array with offset layout initially and and
formatting it, the filesystem also was trashed when I did a reshape to
convert the chunk size down to 64k with:

mdadm -G /dev/md1 -c 64

I also tried this with raid5 and raid4 instead of raid10 and they work,
so it seems to be specific to raid10.

I tried to change the chunk size on raid0 and for some reason, mdadm
wants to convert it to raid4 and can't since that would reduce the size.

Hrm... I went back and tried reshaping the chunk size on raid10 again
but in the default near layout rather than offset, and this works fine,
so it appears to be a problem only with the offset layout.  I tried the
far layout, but mdadm says it can not reshape to far.




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux