Slashdot Log In
How To Move Your Linux Systems To ext4
Posted by
timothy
on Tuesday May 06, @01:32PM
from the or-you-could-guess dept.
from the or-you-could-guess dept.
LinucksGirl writes "Ext4 is the latest in a long line of Linux file systems, and it's likely to be as important and popular as its predecessors. As a Linux system administrator, you should be aware of the advantages, disadvantages, and basic steps for migrating to ext4. This article explains when to adopt ext4, how to adapt traditional file system maintenance tool usage to ext4, and how to get the most out of the file system."
Related Stories
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.

Not for the casual user (Score:5, Informative)
Reply to This
Re:Not for the casual user (Score:5, Funny)
Reply to This
Parent
Re:Not for the casual user (Score:5, Informative)
It is unlikely the common desktop (or even, for that matter, the common server) will see appreciable performance increase with it.
Disk sizes are going up. In a few years you'll see a terabyte on a single drive. I'd also say that features like undelete, and online de-frag are important to anyone.
So while you may not see any real performance increases, that's really beside the point.
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
Reply to This
Parent
Re:Not for the casual user (Score:5, Informative)
Reply to This
Parent
Re:Not for the casual user (Score:5, Interesting)
That said, ext4 is unstable. It can easily eat your data. Just say NO to moving your filesystem to ext4 - for now.
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
I'm just happy when it's done for me, and I don't have to handle it manually. When fscking fails at the beginning, it can ruin your whole day if you're not an expert.
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
Usually my problem is that my fsck gets a "fsck-completed-normally", when the media is really only half fscked.
But don't worry -- fscking takes practice. If you got a quality media, you can half-fsck it many times before the media fails completely.
May I also suggest fscking aids? There are many tools on the market that can help when your fscking routinely fails doesn't complete. They're usually lightweight and easy to use, and can help to save your media from getting fscked elsewhere.
As you said, when all else fails, sometimes you really do just need to handle it manually.
Reply to This
Parent
Re:Not for the casual user (Score:5, Interesting)
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
Reply to This
Parent
Re:Not for the casual user (Score:5, Funny)
I can tell you're a slashdotter. When most people fsck they want it to last as long as possible.
Reply to This
Parent
Wikipedia entry (Score:5, Informative)
Reply to This
Re:Wikipedia entry (Score:5, Funny)
Reply to This
Parent
To all ext3 users... (Score:5, Informative)
On a related sidenode: I'm very happy with SGI's xfs right now. ext\d isn't the only player in the field, so please, go out and boldly evaluate available alternatives. You won't be disappointed, I promise.
Reply to This
Re:To all ext3 users... (Score:5, Interesting)
ext3 is both so slow and so bottlenecked that mythtv had to implement a special "slow delete" mode which gradually truncates files instead of just unlinking them. Without the "slow deletes" mode, you get hiccups in any shows that are being recorded while old shows are deleted.
On my system, deleting a 20GB file can take a minute on ext3 (and the filesystem is completely locked - all other processes are blocked), but on ntfs it is almost instantaneous.
Reply to This
Parent
undelete (Score:5, Informative)
Reply to This
What about comparison to other filesystems? (Score:5, Informative)
Those features may be new to ext3, but not to the real competitors. I see nothing that might grant an edge over JFS or XFS. The real justifications will come from performance tests.
This reminds me of the recent NTFS article here, which actually suggested that since Hans Reiser is in jail and reiser4 is dead, we should consider NTFS. WTF? The ludicrousness of using NTFS as the primary filesystem is further justified in this article by its similar performance to ZFS, but both run in user-space (and are thus horrible in performance), so neither is really an option. What the heck is wrong with JFS and XFS?
Here are some real comparisons: First, Wikipedia's Comparison of file systems [wikipedia.org] gets you started with a nice mapping of features. Second, a benchmarking of filesystems from 2006 [linuxgazette.net] which is still quite applicable (though it doesn't yet cover ext4). What we need is a comparison of EXT4 to XFS and JFS (et al), with EXT2/3 in there for reference.
Recall that the biggest reason for using ext3 is that it is supported best of all the filesystems. If all hell breaks loose, even Tomsrtbt [toms.net] (an ancient rescue floppy pre-dating knoppix) can fix it. Ext4 breaks this backwards-compatibility to ext2. Therefore, I see no reason to use it. One might as well use something more stable and proven, especially while we lack numbers suggesting it performs as well or better.
Reply to This
Re:Preempting the prefix war (Score:5, Funny)
Hey hey hey!
Reply to This
Parent
Indulging the prefix war (Score:5, Insightful)
Personally, I think the whole thing is a mess, and computer professionals should be working harder to enforce a consistent scheme. Unfortunately, only a minority of computer professionals seem interested in changing the status quo confusion.
I think the real problem is that people, inherently, are loathe to change. They are more apt to come up with rationalizations and justifications for doing things "the old way" rather than put in the work to learn (and code!) a new system. Sorry if this sounds harsh, but I find the people who say the binary prefixes "sound dumb" or say that "the current (inconsistent)* system works fine" are just coming up with excuses to avoid doing the work to use a properly consistent standard/notation.
Maybe you're right, and that if the new prefixes had sounded "cooler", then adoption would have been faster... but I'm not so sure. Even if true, it doesn't absolve any of us for allowing the confusion to persist: cool or not, we (geeks especially!) should have the discipline to use proper standards.
* The current system can be roughly described as: SI prefixes are powers of 10 everywhere except in computer science, when they become powers of 2. But only when referring to memory, and some data structure sizes, but not when referring to transmission rates or disk space (unless it's a flash drive, sometimes), and other kinds of data structures.
Reply to This
Parent
Re:But does it run... (Score:5, Funny)
Reply to This
Parent
Re:But does it run... (Score:5, Funny)
Reply to This
Parent
Re:But does it run... (Score:5, Funny)
Reply to This
Parent
Re:Wait, what? (Score:5, Informative)
IIRC, today's PCs have high-resolution timers available that surpass the old 14.318MHz clock chip. If you can't get accurate nanoseconds out of the timers yet, they'll just round the numbers off. No big deal.
BTW, NTFS uses 100ns timestamp granularity, and it was designed when systems were almost 100X slower than today. So it had a similar amount of overkill, but that certainly doesn't seem to have had any negative impact on the acceptance of NTFS.
Reply to This
Parent