Results 1 to 6 of 6

Thread: Switching from EXT3 to EXT4

  1. #1
    Join Date
    Mar 2009
    Location
    Toronto, Canada
    Posts
    27

    Default Switching from EXT3 to EXT4

    I will be upgrading all my drivers to the new EXT4 format in OpenSUSE 11.2 and I was curious if my drives will have to be reformatted to use the EXT4 format or will I be able to get away with my data intact after converting formats?

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Switching from EXT3 to EXT4

    The conversion from ext3 to ext4 can be done in-situ. If you do a search on say the terms: ext3 ext4 conversion, you will find any of a number of tutorials on how to do this.

  3. #3
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: Switching from EXT3 to EXT4

    Hi

    Migrating existing ext3 drives to ext4 should be possible without data loss. However, having a backup is strongly recommended. I did not try the conversion myself, but there was some discussion of this issue recently on this forum. You may try the search function.

  4. #4

    Default Re: Switching from EXT3 to EXT4

    There is one problem with upgrading ext3 to ext4. New features of ext4 (extents, about the rest i am not sure) won't work on old data. Only new data will use the new features. Best is to use some live CD to copy the data somewhere, format the partitions to ext4 and copy the data back to those new ext4 partitions. That way you will start with 0% fragmentation and you will use all those new features on ALL data.
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Switching from EXT3 to EXT4

    Yes, it's correct that extents will not be used on existing files, but the other features will work. Depends on how keen you are to get the last bit of performance improvement by using extents. A freshly created ext4 filesystem and a data restore is best, but if that is not feasible for one reason or another, you can do the conversion in-situ. As always with anything involving large changes to data handling, backup, backup, backup.

    There is an e4defrag program, but I could only find a work-in-progress version when I went looking and it wouldn't work anyway when compiled. This on a test machine that I don't care about.

  6. #6
    Join Date
    Mar 2009
    Location
    Toronto, Canada
    Posts
    27

    Default Re: Switching from EXT3 to EXT4

    Thanks for the feed back guys, I appreciate it.

    I have looked into the topic more and concluded that its not worth the risk of any data loss converting my old ext3 filesystem to the ext4 filesystem.

    I wanted to take the shortcut without any risk involved, but with business critical data, I just can't take the risk and will just have to do things the longer way.

    I can put up with a day or two of downtime to get the most out of my hardware with the ext4 filesystem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •