I've found http://www.redhat.com/support/wpapers/redhat/ext3/
describing how to transition an ext2 filesystem to ext3, which I
want to do since my 2.4.17 kernel crashes every few weeks, on average,
while writing to cdrw.  (I think the kernels since about 2.4.2 don't
cope well with misbehaving scsi devices.)

Anyway, it says:

        The tune2fs program can add a journal to an existing ext2 file system. If the
         file system is already mounted while it is being transitioned, the journal 
will
         be visible as the file .journal in the root directory of the file system. If 
the
         file system is not mounted, the journal will be hidden and will not appear in
         the file system. Just run tune2fs -j /dev/hda1 (or whatever device
         holds the file system you are transitioning) and change ext2 to ext3 on the
         matching lines in /etc/fstab. If you are transitioning your root file system,
         you will have to use an initrd to boot. Run the mkinitrd program as
         described in the manual and make sure that your LILO or GRUB
         configuration loads the initrd. (If you fail to make that change, the system
         will still boot, but the root file system will be mounted as ext2 instead of
         ext3 - you can tell this by looking at the output of the command cat
         /proc/mounts.) 

I actually have ext2 running on raid1.  So my question is, do I do this
tune2fs on the hda1 etc. devices or the md1 etc. devices?  My guess is
the hda1 ones, since I imagine raid runs on top of ext3, not the other
way around.

But should I turn off the raid mirroring first, and do it to one of the
two mirrored partitions, and then turn raid back on?  And if so, when I
turn raid back on, how does it know which one to mirror to the other? 
I.e. what stops it from converting the ext3 back to ext2?

luke

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to