Converting Ext3 to Ext3 under RAID 1

From
Dan Graham <hidden>
Date
2006-08-02 19:15:42
Reply to
Neil Brown, 2006-07-24
Hello;
  I have an existing, active ext3 filesystem which I would like to convert to
a RAID 1 ext3 filesystem with minimal down time.  After casting about the web and experimenting some on a test system, I believe that I can accomplish this in the following manner.

  - Dismount the filesystem.
  - Shrink the filesystem to leave room for the RAID superblock at the end
    while leaving the partition size untouched (shrinking by 16 blocks seems to
    work )
  - Create a degraded array with only the partition carrying the shrunk ext3
    system
  - start the array and mount the array.
  - hot add the mirroring partitions.

The questions I have for those who know Linux-Raid better than I.

   Is this scheme even half-way sane?
   Is 16 blocks a large enough area?


Thanks in advance for any and all feed-back.

-- 
Daniel Graham
graham@molbio.uoregon.edu

541-346-5079 (voice)
541-346-4854 (FAX)

Institute of Molecular Biology
1229 University of Oregon
Eugene, OR 97403-1229
Thread (6 messages) 6 messages, 6 authors, last reply 2006-08-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help