Data corruption after raid migration (raid5 to raid6 in 2.6.31 with mdadm 3.1)

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

 



Dear Neil,

  I encounter a little problem when perform the raid5 to raid6
migration. The result is data corruption if i stop the raid while
reshape and then reassemble the raid. Here is the operation oder:

Environment : linux-2.6.31 . mdadm 3.1

./mdadm -C /dev/md2 -R -amd -l5 -n4 /dev/sd[cdef]3 -z 1000000
mkfs.ext3 /dev/md2
mount /dev/md2 /volume1/
cp /bin/* /volume1/
./mdadm /dev/md2 -a /dev/sdg3
./mdadm --grow --level=6 --layout=default --backup-file=/root/bak2 /dev/md2
umount /dev/md2
./mdadm -S /dev/md2  (Stop it before reshape end)
./mdadm -A /dev/md2 --backup-file=/root/bak2 /dev/sd[cdefg]3
mount /dev/md2 /volume1  <--- This will cause an error that file
system could not be mounted.

  The interesting thing is if i don't stop the raid while reshape. The
data will not corruption. Is it means the operations not permitted
while the reshape process ?

Thanks.

Best Regards,
KueiHuan-Chen
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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