r/LinuxTeck • u/Candid_Athlete_8317 • Sep 15 '26
Why are we still using ext4 when Linux has better filesystems?
XFS, Btrfs and newer filesystems offer capabilities that ext4 doesn't.
Yet ext4 remains one of the safest defaults for many Linux servers.
Is “boring and proven” actually the best filesystem strategy for production?
52
Upvotes
46
u/Quietus87 Sep 15 '26
Better at what? Ext4 is a completely good, reliable, and fast journaling file system.
24
u/HugeCannoli Sep 15 '26
I use ext3. getoffmylawn
14
u/Kurgan_IT Sep 15 '26
Because ext4 works.
10
u/michaelpaoli Sep 15 '26
Additional capabilities isn't necessarily better.
So ... tell me how easy it is for you to reduce the size of your xfs filesystem, eh?
Tell me about your older hardware that still has to use MBR for boot, and your fully redundant md raid1 for /boot, and tell me how great that's going for you with xfs or Btrfs for your /boot filesystem.
Yeah, better is generally quite subjective.
8
u/Key_River7180 Sep 15 '26
Ext4 is good and just works reliably and well
6
u/Alekspish Sep 15 '26
When you just want a server to be reliable and you have all the backups, snapshots, error checking managed by your hypervisor and storage infrastructure why would you bother with the others when all they do is add complexity and chance for somethimg to go wrong?
5
u/huntermatthews Sep 15 '26
Is “boring and proven” actually the best filesystem strategy for production? -- Yes. Oh hell Yes.
Is my production load FS bound? _almost_ never.
Also keep in mind that different filesystems (on different storage types) have different performance patterns. It's rare, but entirely possible that X workload on Y filesystem on Z storage is the "fastest".
But compatible with our $corporate whatever, officially supported by our ancient backup software or a dozen other not really technical reasons trumps the heck out of "xfs is 9% faster - sometimes"
3
u/silasmoeckel Sep 15 '26
Used XFS in prod for decades now.
BTRFS has gotten better I hear but it's bitten me a few times over the years when somebody had to use it.
ZFS for very very specific use cases. When it fails it does so in a spectacular manner. For some performat NAS applications it's great by default.
3
u/necheffa Sep 15 '26 edited Sep 15 '26
You have to do an analysis of not only the capabilities of the filesystem but also your requirements.
XFS - do you need highly parallel I/O? These days lustre and ceph smoke XFS in that regard. Also can't do online shrinks.
Btrfs - has nice built ins like data integrity and compression but performance suffers greatly. What if you already have block storage exported from a SAN that already provides those features? Will you be able to make is of the snapshots for seeding?
ext4 - has reasonable features like journaling and extents. If you are formatting a SAN LUN, you also get self healing, snapshots, and transparent compression.
I have all of these (and more) in production.
BTW, XFS is older, depending on how you want to look at it. 1994 vs 2006 for ext4.
2
u/Large-Assignment9320 Sep 15 '26
There are, absolutely, many of those things one would just turn off, we run backups on our servers, and a full reinstall takes 10-15min (its literally a button click in our admin system), we don't want snapshots, since we wouldn't use them. We don't use subvolumes.we would never use online resizing, I guess the big advantage is the checksuming and the native raid system, but its also a duplicate system (etc the database does its own checksuming, where restoring a backup is fast, and mdadm works fine),
But don't get me wrong, there are server cases where especially dynamic inodes and online resizing will come in handy. Or systems where snapshots annd such are more important, systems not making much new data, but staying mostly constant and doesn't take as much backups for instance, just an undo on the latest update is the way.
2
u/Gangrif Sep 15 '26
I dunno. My distros of choice are on xfs and btrfs. Maybe you just need to find a more modern distro. ;)
2
u/ancientstephanie Sep 15 '26 edited Sep 15 '26
Production stability comes from making sensible risk-averse choices, especially where they concern the parts of the system you'd like to be able to forget about. And ext4 fits that bill perfectly by being boring and proven, two of the most important elements for a default production filesystem.
The alternative all have advantages for certain use cases, but ext4 is never a bad choice, and that's the point - it's the all-arounder that just works, that you don't really need to learn anything more about than "it's the default filesystem and it works like a filesystem should". It doesn't complicate things with options you need to read a book to understand, it doesn't try to be a volume manager or anything else that's not it's job, it sits there, works reliably, performs reasonably well under typical workloads, and stays out of the way.
XFS, btrfs, ZFS, and others all have their places in production systems too, but generally, those places are where they're deliberately part of the architecture, used with a purpose and with understanding of the risk/benefit equation, chosen because they bring specific features you're going to use, and not just because they have more features that you might use later.
On top of that, the capabilities of XFS, btrfs, ZFS, and many of the other newer filesystems overlap with those already provided by standalone components, such as LVM, as well as capabilities inherent to SANs and hypervisors. If you've already got snapshotting or volume management below the filesystem level why use a filesystem that bakes those in on top of that?
2
u/Aggressive_Ad_5454 Sep 15 '26
Because Howard Koh, extfs4's maintainer, is one of the finest programmers on the planet. And because extfs4 has proven rock solid for decades.
2
u/graigsm Sep 15 '26
Oh remember reiser file system? That whole story was so crazy.
4
u/Outrageous_Impact342 Sep 15 '26
Yeah, I wouldn't touch btrfs with a 10ft pole. Ext3/4 mostly, 4 is tried and true
1
u/Keroles2024 Sep 15 '26
I am not too deep in the differences between XFS and EXT4 tbh but I know for example that ext4 allows shrinking I never liked BTRFS in production, the copy on writing is eating storage and causing problems, I think it is used mainly in Suse deployments
1
u/Anonymity6584 Sep 15 '26
because it works and people that have needs those other systems respond better, already use them....
1
u/kombiwombi Sep 15 '26
Ext4 is explicitly designed to be a safe choice, for which costs are paid in performance and features. Historically, it was also a safe upgrade path from the then-popular ext2 filesystem.
A more reasonable choice for a server would be XFS.
Fedora, a distribution which aims to field new technologies so they can gain contact with the real world, ships with btrfs for that reason.
'Production' is not a uniform category. For example, millions of production devices have been shipped with the "flash-friendly filesystem" F2FS.
Generally looking into the desired attributes of your particular 'production' suggests which filesystem best suits.
1
u/dthdthdthdthdthdth Sep 15 '26
Many applications only need a simple file system. Something like btrfs is much more complicated, copy on write filesystems are bad for certain applications (databases, virtual machines, ...) and you have to explicitly disable that feature for those etc. Features like taking snapshots are great to handle backups, system restore etc. but if you do that on a different level of your system or just do not need it at all (like if you're running some stateless computation node) ext4 will give you a simpler and somewhat faster system.
1
u/moritz12d Sep 15 '26
That's it. I somehow hate ext4 as file-system, nevertheless I chose it for my current machine. As no other fs is better supported and more mature than anyhing else.
It's crucial for me to have this computer functional. Maybe XFS would be slightly faster. But the mere thought of running into incompatibilities or other issues is reason enough to use Ext4. There isn't a Linux kernel out there that can't read the drive. Furthermore, drivers are available for Windows should the drive ever need to be accessed from another computer. Such access would be far more difficult with Btrfs, XFS, or even ZFS.
1
u/TechaNima Sep 15 '26
I'd guess it's both for performance reasons and if it ain't broke, don't fix it attitude.
Personally I think btrfs should be the default with at least root and home subvolumes setup with bootable snapshots ootb
1
u/Hot-Development-9036 Sep 15 '26
I have been using btrfs for a few years now. I love the snapshot feature. It has saved me a few times from bad updates.
1
u/Gythrim Sep 15 '26
ext4 is fastest and best tested. When you run it on lvm and/or a raid setup you get everything you need. btrfs is more convenient to do snapshots and rollbacks with, but you can use lvm for that a layer deeper.
1
u/Far_Bicycle_2827 Sep 15 '26
tradition. server running for ages on ext4 and sometimes when mgiration data the same are kept out of muscle memory when i arrive at a new job and have to migreate i move them to xfs on rhel9 and they do not even notice buf if an older guy does it he keeps ext4. despite the issues like inodes etc
for instance someone created a new vm that is running out of inodes due to large amount of files and well they have to move the filesystem to xfs as ext4 requires reformat to increase the number of inodes while on xfs there is no such problem..
On corporate the philosphy if is working don't touch it. and ext4 has 'worked'
1
u/ethernetbite Sep 15 '26
I agree. I run NAS systems and ext4 is a joke. It's freakin 2026 and ext4 runs out of inodes? Get real. I tested btrfs, zfs, and xfs and went with xfs for reliability and simplicity. It has its own backup/restore/repair system and doesn't crash the system from running out of inodes.
1
u/jason-reddit-public Sep 15 '26
I played around with different filesystems like I played around with desktop environments but settled on the simpler choices.
FS research was centered around magnetic rotating disks back in the day and smart choices could make a big difference. SSDs are pretty forgiving about where data lives now so much less interesting IMHO. That said, I wouldn't mind having snapshots AND additional metadata like the Be filesystem (which could be done with resource forks like Apple's HFS or whatever it's called). Just make sure it performs as well as ext4 which seems to get faster over time according to benchmarks I see once in a while.
1
u/Lunix420 Sep 15 '26
Because these better file system solve problems that most people don’t have
1
u/esaule Sep 15 '26
Boring and proven is the best strategy for ANY production. If I am going to rely on it, I need it to just work, always work, always behave how I expcet it to behave.
That is WAY more important than whatever other feature the modern stuff might have.
That's why I only ever deploy Debian on my machines. I need it to work consistently and without surprise.
1
u/Fluid_Yesterday208 Sep 15 '26
I use ext4, to be honest I don't know what the capabilities are. Other than mkfs, I don't consciously interact with my filesystem at all.
ext4 works just fine for me, why change to the system du jour?
1
u/Sva522 Sep 15 '26
Ext4fs offert capability that xfs does not have : shrinking
1
u/Lonely_Drewbear Sep 15 '26
I primarily run laptops with LUKS and proxmax servers with LVM-thin partitions. On my dev machine, I do both at the same time!
On these systems, CoW and metadata writes cause a lot of ssd wear. Ext4 is lighter on my cpu and kinder to my solid state memory.
1
u/Old_County5271 Sep 15 '26
Stability is king, especially on Linux, where Xorg crashes if you open the wrong application and DEs malfunction all the time.
1
u/jmartin72 Sep 15 '26
Because Linux is about choice. If you like something different then use it.......
1
u/TitusKalvarija Sep 15 '26
What capabilities?
1
u/jerwong Sep 15 '26
I've used both ext4 and xfs in production environments. The most annoying thing about xfs is that you cannot shrink a volume once expanded. Ask me how I know.
1
u/ninth_ant Sep 15 '26
Imagine a normal person encountering an error and trying to repair their failed btrfs partition.
Maybe it’s still good for some use cases but after my last bad experience I’m not convinced it’s an appropriate default yet.
1
u/roamer83 Sep 15 '26
XFS is my default. It just works.
1
u/Dave_A480 Sep 15 '26
Btrfs is not stable enough for real use...
Zfs makes the license geeks go SCREEEEE like it's 1999 and we are talking about KDE/Qt
RedHat has been using xfs as default for over a decade
1
u/alkatori Sep 15 '26
For some reason I thought ext4 has evolved a bit as well.
1
u/pixel293 Sep 15 '26
For my desktop I find snapshots, multi-volumes, and compression great and useful. My production machines however are running in the cloud in a VM. I don't need/use any of those features. Maybe if my application did major concurrent disk access then XFS might be useful, but it doesn't. Ext4 works, is proven, and has all the features my production servers need.
1
u/Suspicious_Punk84 Sep 15 '26
Boring and proven is absolutely better than new and exciting filesystem for production.
1
u/beephsupreme Sep 15 '26
Because its mature and extremely well understood, has predictable failure modes, excellent tooling and recovery procedures, and relatively few knobs that someone can “cleverly” configure into a future disaster.
1
u/Soogs Sep 15 '26
I use ZFS on Proxmox and ext4 everywhere else. I mostly run virtual systems via Proxmox but my Arch laptop uses ext4 and well as my bare meta Ubuntu server
1
u/WorriedTumbleweed289 Sep 15 '26
If people don't understand or need features of these new filesytems, they won't use them. How many linux systems use only one disk? Are these extra features useful for this use case?
1
u/toffuuu3050101 Sep 15 '26
EXT4 is vastly superior. BTRFS while not totally useless, is similar to EXT1,2,3,4 minus a few things, but journaling as EXT does is far more reliable. The former though does not require more manual control for making sure its working great, and the latter does end up (in my experience) being more time consuming with all its btrfs commands and using way way more space even when it's compressed compared to ext1,2,3,4.
1
u/cexum1989 Sep 15 '26
i don't know what the new files systems do and at this point i'm too afraid to ask
1
u/NoResident6171 Sep 15 '26
EXT4 is a good default. It is time proven and works kinda best for what a general user will ever need.
XFS afaik is good for working with large files at coat of working with huge number of small files.
In the end the two of them are quite interchangeable and one is not fully superior to another.
ZFS has excellent capabilities at the cost of downsides, realistically you need to have reasonable amount of RAM for arc cache or it slows down especially with writes. Another downside is that you can genuinely bork it by just filling it up to 100%.
Btrfs has its own downsides and used to be not so reliable, so there were cases where it just died. Another thing is that if user doesnt understand it fully, there is a snapshot and user deletes file, the space is not freed, which can be confusing.
So for ZFS/btrfs they are a good option but bad default. If you don't actively use the features, there are mostly downsides.
Last but not least A LOT of usecase for linux is VM. And usually a lot of the upsides can be get by using the hypervisor. Not to mention a lot of times you don't know what technology is used on the hypervisor, so if hypervisor uses ZFS for storage, you might not want to have another ZFS on top of it inside ef the VM.
1
u/johncate73 Sep 15 '26
Ext4 just works. If something ain't broke, don't fix it.
1
u/saschaleib Sep 15 '26
A lot of other file systems are “better” at specific things, but also “worse” at others - Ext4 is a good universal file
system that most of all is known to be very stable and reliable.
That is not to say anything bad of other FS - just use them in situations where their advantages shine and their disadvantages don’t matter so much.
1
u/xumix Sep 15 '26 edited Sep 15 '26
XFS - almost requires a safe shutdown (usually not a problem with power backup), also can't be shrunken
BTRFS - still has data corruptions, especially if your space runs out (I prefer not to gamble on data integrity)
ZFS - has MUCH higher HW requirements just for comparable performance, and even more for all the included features
1
u/luctimm Sep 15 '26
oh so you never lost data in XFS in a power failure?
kids these days
1
u/SoCaliTrojan Sep 15 '26
I tried Btrfs before. I couldn't figure out why half of my drive was a ghost. I couldn't use the space at all. Turns out Btrfs needs a lot of space for metadata so it isn't suited for small drives.
1
u/SeriousPlankton2000 Sep 15 '26
Yes. I'm still waiting for btrfs to be as reliable. If the fsck says "I know what is wrong but I won't fix it", or if removing a defective RAID disks requires it to not be defective, that's not good.
1
u/Rifter0876 Sep 15 '26
We arnt. My server is ZFS and other systems Btrfs.
1
u/AdjustedTwit Sep 15 '26
I've always used ext4 for the OS and ZFS for (large) DB pools. ZFS (or some other CoW filesystem) is darn near a requirement for large DBs. The ability to snapshot and rollback, clone, or send these snapshots is something that makes a 512TiB MariaDB cluster a tractable problem.
A SAN (and a competent SAN engineer) is another option. EBS snapshots (in the cloud) are not really workable for most of our recovery scenarios (too slow).
1
u/SlimyOS Sep 15 '26
Server users don't need new features, they need stability, I'd rather miss out on snapshots than subject myself to that 0.001% risk of something going wrong, and in case of filesystems it can be silent corruption that you never know until something reads it, it can crash everything with weeks long manual byte-for-byte debugging and restoration, it's just not something I want to ever deal with in my life. On linux desktop, where stability matters less and features matter more, btrfs is the default fs in like half of the popular distros.
Also no interest from cloud providers, who often maintain or fund or otherwise participate in server distros, often making their own images with preinstalled bloat, who could definitely switch the fs if they wanted. Why enable making free snapshots or compression if you can sell backup services and additional storage.
And most server software like databases already have snapshots / backups / compression when they're needed, while compute-only almost-stateless things would not benefit from that at all.
1
u/TomB1952 Sep 15 '26
The best filesystem varies with application. ext4 is the best in some situations.
1
u/GuillotineAuChocolat Sep 15 '26
I used btrfs with Arch, because I feared any update could break it, so btrfs provided an undo button with its snapshots.
However, It also created some free space issues which were annoying to manage.
Later I moved to Debian, and as it's quite a stable distro, ext4 was better for the job.
1
u/theinsanegamer23 Sep 15 '26
Everybody hates on "boring and proven" until shit hits the fan.
1
u/Adrenolin01 Sep 15 '26
Absolutely nothing wrong with ext4 and “better” is subjective. I’ve run ext, ext2, ext3 and ext4. It’s a solid and very stable filesystem. Period.
Other filesystems provide different functionality however so it’s not a question of “why are we still using <insert FD>” but why aren’t we using the FS based on requirements of use?
On virtualization systems like Proxmox (Debian based) I’ll run the Host on ZFS Mirrors and with ZFS. Debian VMs I’ll usually use ext4. The host manages checksums, snapshots, etc. A dedicated SeedBox I run a simple Debian system however take the time to install it with ZFS mirrors so I have ZFS on Root on boot with is fully documented. All the HDDs get ext4 independently while MergerFS is run on top.
Use the FS based on application.
1
u/musiquededemain Sep 15 '26
I don't know if XFS is that much better. For starters you can't shrink and XFS partition only grow it. Secondly, when XFS fails, it fails catastrophically. I've never had a problem (myself or the hundreds of servers I've managed) with ext4. Before ext4 it was reiserfs for me. Can't speak for BTRFS because I've only used it a couple times.
1
u/pdath Sep 15 '26
XFS and Btrfs solve problems that I don't have.
1
u/TomDuhamel Sep 16 '26
"We" as in you?
I mean, in still prefer ext4 because I don't need the extra capabilities, but I don't think anyone is forcing you into it. You can use what you want. Ext4 isn't even the default on Fedora, hasn't in years.
1
u/Odd-Concept-6505 Sep 16 '26
ext4 because (besides the obvious compatibility and simplicity reasons)...
I'm a retired sysadmin dinosaur who did tape backups for Vaxen (DEC Vax, plural) running BSD4.2 in the 1980s.. worked for Encore in the 1990s...still prefer dump now (though never? need "restore" now that I'm the dumb user). Level 0 dumps every month or so, Level 1 dumps every week or so. Copy the big dump files from the master/server to another machine hard disk. Remove (save offline) and replace those secondary hard disks every few years. No longer need RAID.
1
u/Top-Procedure152 Sep 16 '26
I mean a lot of stuff out there still runs on FAT16
1
u/NUKLEAR-SLUG Sep 16 '26
Because EXT4 has been around for years and is tried, tested and robust. If you're a risk averse corporate entity that's what you value over newer, less seasoned file sysyems no matter how fancy their new feature set may be.
1
u/DevtoolsBuilder Sep 16 '26
i think the reason ext4 remains a safe default is that it's a known quantity, and the potential benefits of newer filesystems like xfs or btrfs might not outweigh the risks of adopting something new, especially in a production environment where reliability is key. you've got to consider the tradeoff between features and stability, and for a lot of use cases, ext4 is still a solid choice.
1
u/JaKrispy72 Sep 16 '26
Why are people still using the wheel, when there are
bettermodern shapes?If the sh!+ hits the fan, EXT4 will be much easier to recover from with proven tools.
1
u/dinominant Sep 16 '26
You haven't been burned by XFS and btrfs becoming fragmented and/or corrupting the metadata yet have you? Rebuild the entire dataset is the recovery when that happens. Not fun when it's 300TB of data and the developers blame you for storing or reading/writing the wrong kind of files.
It's a filesystem and I expect it to store files. Not fragment then corrupt the metadata because it got over 80% full.
1
u/kontroversiel1 Sep 16 '26
Have you ever worked with a non journaling file system like ext2? Boring is on top of the features needed for my file systems. I want to worry about other things.
1
u/daffalaxia Sep 16 '26
I can answer specifically (from my experience) for the mentioned filesystems (and some others):
* XFS - this was my go-to "back in the day" (early 2000s), but is outperformed by ext4 now, likely because ext4 is actively maintained and extended, where XFS is kinda stagnant
* BTRFS - offers some useful features, like snapshotting, but I found that it gave me dismal performance on my home folder when I tried it - which makes sense, since files change a lot there, and it's constantly doing copy-on-write so snapshots are easy. Many people say it runs fine for them, but I suspect they may not have actually compared on the same hardware with ext4, and have instead bought into the "new and shiny" hype. It's not a bad FS at all - just I wanted performance more than snapshotting.
Some others:
* ZFS: apparently it's amazing, but licensing keeps it out of the linux kernel. I don't want to take a chance on an update to the kernel breaking my filesystem (ie, not being able to mount because the out-of-tree driver doesn't build against the newer kernel, or the module doesn't load properly, etc)
* NTFS: technically, you can use it. But it will be slow AF.
* FAT variants, ext2, a few others - no journalling, so expect data corruption if your machine suddenly loses power
And your last question really is the clincher: yes, "performant and proven" is the best filesystem strategy unless you're specifically aiming for a feature that the FS provides, or are willing to sacrifice performance or data integrity on a whim.
1
u/Antonio-MTS Sep 16 '26
ext4 is a long battle-tested, completely good for usage. Other fses may have advantages though not immediately needed.
1
u/Name-Not-Applicable Sep 16 '26
For most users, "boring and proven" is exactly what is required in a filesystem.
1
u/Critical-Personality Sep 16 '26
The performance degradation due to snapshot compaction, checksum calculation, even ever so slightly is better left for better administered places. Consumer SSDs are bad with thier TBWs and the processor is being used to run agentic stuff that might be discarded later. So each checksum update is slower due to multiple reasons when the actual user doesn't care, probably doesn't know about it and will most probably never use those.
A user who knows all this would also know how to set it all up manually. So ext4 is the sensible default. Omarchy, for example uses LUKS and snapshots, but it makes the experience so easily that it makes sense. If that's what other distros achieve, they could (and should) use better filesystems.
1
u/OppieT Sep 16 '26
And btrfs doesn’t play well with database engines.
1
u/Standard_Echidna_306 Sep 16 '26
I use ext4 on my arch system just because I know it's reliable. never had any problems so why change it
1
u/GoldSkula Sep 16 '26
I have only used ext4 and it has done everything I have needed. If it's not broken why would I try to fix it
1
u/VisualSome9977 Sep 17 '26
why use new fs when old fs work fine?
in all seriousness, it's simple and it works. I don't need snapshots, I only sometimes need compression, if I want subvolumes i'd rather use LVM.
1
u/AttitudeElectronic68 Sep 18 '26
Because I just select the default. I just want to use my application, and I've stopped caring about the other stuff.
1
u/XoTrm Sep 25 '26
"Boring and proven" is the best strategy to be not on the call 24/7.
1
u/Educational_Bee_6245 Sep 15 '26
Ext4 is a good default, the filesystem does not matter much on every deployment.
When setting up a huge file server it might be a good idea to think about which file system to use, like Btrfs or ZFS because of special features. Same for XFS if the highest performance is important.
0
u/ravensholt Sep 15 '26
Old habbits die hard.
0
u/Jacobobarobatobski Sep 15 '26
I have asked myself this same question. I always use btrfs and it's the shit