All of lore.kernel.org
 help / color / mirror / Atom feed
* Data corruption after raid migration (raid5 to raid6 in 2.6.31 with mdadm 3.1)
@ 2009-11-05  9:54 KueiHuan Chen
  2009-11-05 16:51 ` Michael Evans
  0 siblings, 1 reply; 4+ messages in thread
From: KueiHuan Chen @ 2009-11-05  9:54 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2009-11-06  5:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-05  9:54 Data corruption after raid migration (raid5 to raid6 in 2.6.31 with mdadm 3.1) KueiHuan Chen
2009-11-05 16:51 ` Michael Evans
2009-11-06  1:45   ` KueiHuan Chen
2009-11-06  5:46     ` Michael Evans

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.