linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Converting ext3 to RAID1 ...
@ 2009-08-24 21:24 Clinton Lee Taylor
  2009-08-25  1:42 ` John Robinson
  2009-09-02 16:27 ` Bill Davidsen
  0 siblings, 2 replies; 6+ messages in thread
From: Clinton Lee Taylor @ 2009-08-24 21:24 UTC (permalink / raw)
  To: linux-raid

Greetings ...

I asked this question about two weeks ago

http://www.issociate.de/board/post/498227/Ext3_convert_to_RAID1_....html

  and have had not response, so I am going to try and re-phrase and
hope that somebody can confirm my test case. Thanks.

Wanting to convert an already created and populated ext3 filesystem.

I unmounted the filesystem, ran e2fsck -f /dev/sdb1 to check that the
current filesystem had no errors.
Then ran mdadm --create /dev/md0 --level=1 -n 1 /dev/sdb1 --force to
create the RAID1 device, answered yes to the question.
Ran e2fsck -v /dev/md0 to check that the RAID1 device had no
filesystem corruption on it, which it did not.
Added a spared RAID device using mdadm --add /dev/md0 /dev/sdc1
Then grew the RAID1 device to two compents with mdadm --grow /dev/md0
--raid-disks=2 --backup-file=/root/raid1.backup.file
Did another filesystem check once the RAID finished rebuilding and all
seemed fine.
Double checked that the data on the RAID was the same as the original
data by diffing the two, again all was fine.

 Now is this just lucky or would this be an acceptable way to convert
an existing ext3 filesystem to RAID1?

Thanks
Mailed
LeeT

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

end of thread, other threads:[~2009-09-03 15:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24 21:24 Converting ext3 to RAID1 Clinton Lee Taylor
2009-08-25  1:42 ` John Robinson
2009-08-25  7:30   ` Clinton Lee Taylor
2009-09-02 16:27 ` Bill Davidsen
2009-09-02 18:10   ` Clinton Lee Taylor
2009-09-03 15:55     ` Bill Davidsen

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).