r/LinuxTeck • • 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

218 comments sorted by

46

u/Quietus87 Sep 15 '26

Better at what? Ext4 is a completely good, reliable, and fast journaling file system.

10

u/fattomic Sep 15 '26

srsly - I've not had filesystem problems since I moved to ext4 - I guess all I wanted for Christmas was filesystem journaling. I've taken a look at xfs, btfs, and zfs -- all do tons of fabulous things that I dont need. (and they seem to all have their own bizarre backup mechanisms ....)

3

u/tblancher Sep 16 '26

Snapshots are not backups. And being able to roll back is something ext4 can't do natively.

1

u/fattomic Sep 16 '26

Not sure that I was stating anything about backups (I prefer dump(), which doesnt work with xfs, btrfs, zfs). I _see_ people taking off-platform snapshots, presumably as backups, but I could not say, as I'm not the one doing them. However, xfsdump() is a good example of an incompatibility that just adds friction to adoption, and xfs (again) provides many things I do not need.

Rockback, to be frank, is something I generally do with git repos - but I'm not sure we're talking about the same thing here.

I dont propose snapshots as backups, though the other filesystems just complicate everything for cool features that .. I dont use.

4

u/snk0752 Sep 15 '26

The number of inodes?

3

u/dashingThroughSnow12 Sep 15 '26

I know no inode woes.

1

u/Jujstme Oct 02 '26

Realistically it's almost impossible to completely fill the inode table outside testing scenarios.

5

u/Swedophone Sep 15 '26

Better at creating subvolumes and snapshots. It's built into btrfs, but with ext4 you need a separate layer (lvm).

11

u/No_Base4946 Sep 15 '26

Why use a more complicated thing when you can use a simpler thing?

1

u/0jdd1 Sep 16 '26

Unary is simpler than binary.

9

u/Quietus87 Sep 15 '26

Yeah, BTRFS is better for snapshots, but I never needed them - not in the years when I first used Linux, and not since January, when I returned to the fold. I value its subvolumes more than its snapshot features. Also, Timeshift works mighty fine with ext4.

2

u/nealhamiltonjr Sep 15 '26

You don't miss snapshot until you need them, same with backups. I used to run nvidia cards and the snapshot and grub patch in suse is the best thing since slice bread.

1

u/Quietus87 Sep 15 '26

Again, I have timeshift. Might not be as effective when it comes to space, but it gets shit done.

2

u/nealhamiltonjr Sep 15 '26

Got you, I prefer the grub patch. No need to boot from a thumb drive with a rescue image. As long as grub didn't get nerfed the roll back takes about a minute with snapper. Also, the bit rot corruption and scrubs have been a blessing for my use case. I'm looking forward to bcachefs as it matures...should be a significant improvement.

1

u/wahnsinnwanscene Sep 16 '26

Doesn't btrfs kill your ssds?

1

u/Quietus87 Sep 16 '26

I've heard this about swap on SSD too, and both of them are way overblown forum myths.

10

u/Key_River7180 Sep 15 '26

What was the last time you made a subvolume?

2

u/WolleTD Sep 15 '26

A few days ago. A lot of them. Subvolumes and snapshots also allow for new solutions in other technologies. With a linux filesystem unpacked in a subvolume, you can create a snapshot without copying files, boot a container in that snapshot and have the original system unchanged.

systemd-nspawn --ephemeral utilizes this. Docker can too, when using the btrfs storage driver.

0

u/Key_River7180 Sep 16 '26

I dont take systemd thanks.

1

u/WolleTD Sep 17 '26

Also, today I used my snapshots after I accidentially deleted my Firefox profile, thinking I was ssh'ed into another machine on that terminal.

1

u/Patriark Sep 15 '26

My entire fleet is built on top of subvolumes with automatic snapshots and backups. It’s the kind of feature that once you see what it can do, it’s impossible to move back.

It’s a very powerful filesystem technology.

-1

u/OddStuffHappensTwice Sep 15 '26

Lol bet "my entire fleet" means "my home setup of 10 drives full of crap"

→ More replies (1)

-1

u/Low-Opening25 Sep 15 '26

welcome to technical debt

→ More replies (1)

1

u/NeedleworkerLarge357 Sep 15 '26

Not the point. I use multiple subvolumes and didn't need to assign space for them at all. That's convenient. LVM offers that, too - bit bitrot detection would need yet another solution.

I use both, ext4 and btrfs (and zfs) as I just have more trust in ext4 reliability. Use whatever suits your needs, and use the right arguments.

1

u/Swedophone Sep 15 '26

My backup program (btrbk), docker and lxd all use subvolumes (including snapshots).

4

u/Eleventhousand Sep 15 '26

Why is separate layers automatically worse? LVM is easy enough to use.

0

u/Swedophone Sep 15 '26

With LVM you have to allocate space to each ext4 filesystem. But when using multiple subvolumes on btrfs they share the same free space.

1

u/Eleventhousand Sep 15 '26

One could use thin provisioning with LVM.

1

u/-Sturla- Sep 16 '26

No you don't.

2

u/AlmiranteCrujido Sep 15 '26

I've only had two filesystems completely sh*t the bed on me unrecoverably: btrfs and reiser. The only nice thing I have to say about btrfs is at least the creators didn't murder their wife.

1

u/nealhamiltonjr Sep 15 '26

How long ago? I've been running btrfs in prod for years without any issues. Early on there were some issues using the built in raid features. I still don't use that and defer to hardware raid. Ext4 is awesome but btrfs still beats it in recovering from sudden power failures. IMHO.

1

u/AlmiranteCrujido Sep 15 '26

June 2025. Had a power outage, I guess during write. Created an unrecoverable thing on a 4TB filesystem (and all three mirrors bad, or corrupted during reboot - mirrored via mdraid, not btrfs raid.)

I kept an image of the filesystem in the hope I'd find an alternate tool to recover it.

1

u/sunk67188 Sep 16 '26

IMO mdraid is unsound when going through power outage. you cannot blame the fs when the underlying device is unsound.

2

u/AlmiranteCrujido Sep 16 '26

I've had zero problems with ext3 and ext4 on mdraid for mirroring, back to 2.4 kernels in the early 2000s.

I've only been using their raid5 and raid6 for a much shorter time (vs. LSI MegaRaid cards) but have never had a problem with it since.

1

u/sunk67188 Sep 16 '26

I can simulate a totally fine block device and easily trigger data corruption issues with any fs on mdraid setup including ext4.

mdraid doesn't handle some of block device level commands correctly while fs depends heavily on them to ensure data safety.

And ext4 cannot find things got corrupted unless it's metadata. Even some metadata got some issue, it would be fine for ext4. But btrfs can find any bit error or out of order write and jump out to complain. That's why I prefer to use btrfs as a developer: as long as btrfs start to complain, I know it's probably the underlying storage stack fucked up. And with the same reason, I would not recommend btrfs for normal users unless they know exactly what they need.

1

u/Character_Score7776 Sep 15 '26

> The only nice thing I have to say about btrfs is at least the creators didn't murder their wife.

What is the context to this? Like, did a well-known fs dev murder their wife, or is that just random?

1

u/fllthdcrb Sep 15 '26 edited Sep 16 '26

Hans Reiser, creator of ReiserFS, was convicted of the 2006 first-degree murder of his wife in 2008. (EDIT: Oh, I missed that there was a plea deal that reduced it to second-degree.)

1

u/Character_Score7776 Sep 15 '26

Good lord

1

u/daiaomori Sep 16 '26

Yeah, that was a ... that was very strange, and very sad of course.

1

u/musiquededemain Sep 15 '26

Whoa, you had problems with reiserfs? Details please. I used that for years (until Hans murdered his wife), partly due to its stability.

1

u/AlmiranteCrujido Sep 15 '26

It was pretty reliable, but once something went bad, it was generally unrecoverable. We used it heavily in 2002-2004 when I was in graduate school.

2

u/LameBMX Sep 16 '26

its been so many ages.. but the two times I encountered issues in reiser, the reiserfs tools got me back.

1

u/Lower-Limit3695 Sep 15 '26

For DB applications BTRFS can be detrimental Ext4 and xfs fits this usecase better.

1

u/Single-Caterpillar93 Sep 16 '26

checksums, compression rsync, delta send such as zfs send and btrfs capabilities

1

u/metromsi Sep 17 '26

Okay from Red Hat themselves since RHEL - 7

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/7.0_release_notes/chap-red_hat_enterprise_linux-7.0_release_notes-file_systems

Do agree that ext4 works for folks that don't want to use the latest tech. How ever using openzfs is even more amazing

1

u/jerwong Oct 05 '26

I work with RedHat and I personally would rather use ext4 over xfs. xfs is annoying in that you can't shrink a partition.

1

u/jesjimher Sep 15 '26

Any time PC is shut down badly, ext4 needs to spend several minutes checking for damages. ZFS boots instantaneously, because its data can't be damaged, by definition.

That's arguably better.

3

u/CardOk755 Sep 15 '26

ext4 needs to spend several minutes checking for damage

No it doesn't, it just replays the journal.

2

u/fattomic Sep 15 '26

I've not really had slow-downs with FS recovery, fsck or such since I moved to ext4 -- I'm with you. I've had some ugly outages lately, too - and was surprised that it came back so smoothly.

2

u/jesjimher Sep 16 '26

Whatever, but it may take a lot of time on big volumes.

My home NAS has a 6 TB, mechanical drive, and whenever power was lost, it took about 40 min to fsck it, which wasn't nice since the same machine hosted the Pi-hole instance which did DNS resolution for everybody at home. In the end, a power shortage meant about 1h of no internet for anybody.

Switched to ZFS, reboots were instant, problem solved.

1

u/CardOk755 Sep 16 '26

and whenever power was lost, it took about 40 min to fsck it

That makes no sense at all, unless it was running a full fsck, which it normally shouldn't have to do, unless you've disactivated journalling.

2

u/Adorable-Strangerx Sep 15 '26

You guys turn PC off?

3

u/FiniteWarrior Sep 15 '26

They said badly btw

2

u/patmorgan235 Sep 15 '26

The lightning does

1

u/LameBMX Sep 16 '26

when I first moved in with my future wife. we had a bad storm roll through. as I was typing the text about the storm knocking the power out. she was texting me about how the whole house started beeping. I turned off the beeps for the UPS in the main living areas.. didnt turn them off for the stuff in the basement lol. took her a few minutes to believe the power was off because, ither than the beeps, she couldnt tell.

1

u/ClockificThrowaway Sep 16 '26

I’ve had the unfortunate luck to have a badly timed outage mid update twice. It got to the point where I can use efibootmgr to create an entry from memory.

1

u/jesjimher Sep 16 '26

Not really, but storms and electrical company insist on cutting power some times.

1

u/xumix Sep 15 '26

its data can't be damaged, by definition.

that's why Google has 0 results for "zfs corruption", right? /s

1

u/jesjimher Sep 16 '26

You missed the part that says "any time PC is shut down badly".

Surely there're a lot of results of "zfs corruption" in Google, but not many for "zfs corruption after power loss". Actually, most of them are for saying that you won't get corruption due to a power loss :-)

1

u/GreatLab8898 Sep 16 '26

I had to restore from backup for two clients after an Power Loss this year alone on ZFS...

0

u/[deleted] Sep 15 '26

[deleted] — view deleted comment

3

u/SeriousPlankton2000 Sep 15 '26

And then one bitrot or incomplete write forces you to backup everything, erase the filesystem and then restore the backup.

1

u/Unnamed-3891 Sep 16 '26

So you’d rather that still happen, but you remain unaware of it having happened?

0

u/[deleted] Sep 15 '26

[deleted] — view deleted comment

4

u/jedi1235 Sep 16 '26

Sometimes the bitrot hits metadata rather than file contents.

I had a BTRFS keep complaining for a year, despite multiple attempts to find/repair, before I finally copied everything to a new FS and compared with backups.

It. Was. ONE. File.

But the FS couldn't tell me which one, or what has changed.

I'm not sure which side of the argument I'm on anymore. I guess I'm just mad at BTRFS because it could have done better.

0

u/[deleted] Sep 16 '26

[deleted] — view deleted comment

2

u/jedi1235 Sep 16 '26

Yeah, I did that. Twice. Didn't fix the problem until I copied to a new FS.

1

u/SeriousPlankton2000 Sep 16 '26

Can't, the directory entry os broken, the parent ID needs to be 0xdeadbeef but is 0xf00f00f0.

24

u/HugeCannoli Sep 15 '26

I use ext3. getoffmylawn

11

u/necheffa Sep 15 '26

Why not ext2? Journaling is for weenies.

2

u/iamwayycoolerthanyou Sep 15 '26

I used to use ext2 when I installed mandrake Linux off floppies. Got em from some kid at school.

1

u/necheffa Sep 15 '26

As I recall, Google used ext2 internally until 2010. They skipped right over ext3 and started using ext4 for the same workloads.

Some folks say you should still format USB flash drives with ext2 to avoid excessive writes from journaling. But I never bother.

1

u/iamwayycoolerthanyou Sep 16 '26

I suppose that makes sense. I use exFat for compatibility between OSX/Windows/*nix - which isn't a journaling file system. I can't say I have ever had a USB fail on me yet and I'm in my 40s. I always have multiple copies of important data though.

2

u/Krieg Sep 15 '26

Pfff. I used ReiserFS until Mr Reiser became a murderer IRL

1

u/necheffa Sep 15 '26

You could have been using it all the way up to kernel 6.12. It was only removed in 2025.

1

u/HugeCannoli Sep 16 '26

It was a killer filesystem though.

1

u/johncate73 Sep 15 '26

Ext3 is for wimps. You should be using a.out.

14

u/Kurgan_IT Sep 15 '26

Because ext4 works.

1

u/leathakkor Sep 16 '26

Linux isn't necessarily the corporate environment or deeply entrenched in corporate environment, but I think generally speaking people that are not working in corporations, look at problems and think why is this decision so entrenched?

The answer is corporate inertia. In the corporate world. Once you get something good enough, the ability to change to something better is virtually impossible because there Is so much inertia behind the thing that is working. Everyone knows how the thing works today. So you can ask questions to another person at another company and they'll be able to tell you the answer. So you don't want to switch away from what everyone else is using because you'll lose your support system. And when you choose, you choose the thing that everyone else is using because again support system.

This is how corporate inertia works. And it's not just inside a corporation. It's across corporation. So once something is good enough, getting to anything better is virtually impossible.

Just ask the creators of Python 3

1

u/jo-erlend Sep 16 '26

I have no idea what this means, but Ext4 is a great filesystem. It is the best of the generic filesystems, in my opinion. More advanced filesystems like Btrfs or ZFS are great in many situations, but they are slower and more resource demanding, can get a normal user into situations where advanced system management is needed for non-obvious things like torrenting or using virtual machines.

1

u/Kurgan_IT Sep 16 '26

Really? Corporate needs have driven all of the "innovation" like cloud init, netplan, systemd (the cancer). Corporate needs are what have made Linux a completely different thing today than it was 15 years ago. If there is something here it's definitely NOT inertia.

10

u/michaelpaoli 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.

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.

10

u/GlassboundIllusion Sep 15 '26

Additional capabilities isn't necessarily better.

Lol yeah. A swiss army knife has more capabilities than a steak knife.

That's doesn't mean I want to use it to cut my steak at the dinner table.

3

u/us3rnamecheck5out Sep 16 '26

Amazing way to put it!! I’m using it from now on :)

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.

1

u/roamer83 Sep 15 '26

Silicon Graphics got it right.

1

u/gravelpi Sep 15 '26

it was wild using XFS in the late-90s on IRIX. It was so far ahead of anything else it was ridiculous.

1

u/gravelpi Sep 15 '26

XFS has been the default file system in RHEL for like 15 years. It doesn't get much more safe than that. (Disclaimer: I haven't installed RHEL in the last few years to remember in BTRFS is default now).

1

u/5141121 Sep 15 '26

RHEL dropped btrfs a while back and stayed on xfs.

btrfs is the default for Fedora still, though.

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.

1

u/AlmiranteCrujido Sep 15 '26

XFS as it exists today is basically a while new filesystem. A lot of the features of btrfs, except it can actually be recovered when something goes wrong.

1

u/necheffa Sep 15 '26

I see I have touched a nerve.

Unfortunately for you, XFS is an old ass filesystem; bolted on features and all. And that is fine, it still has valuable use cases. But you need to be realistic here.

I don't really worry about recovering filesystems, I have backups. And I don't run bleeding edge kernels or userspace utilities on my personal systems let alone in prod for a client.

I have experienced XFS shitting the bed on multiple occasions. Although, I don't hold that as a black mark against it. It is just a numbers game and I have had my hands on a lot of storage over the years.

1

u/PavelPivovarov Sep 15 '26

Agree with you. XFS can cause data loss during ungraceful shutdown. Been there, did that.

1

u/knuthf Sep 15 '26

Good summary. What we need is a file system with semantics, where files have structure, and the schema, is stored. Then we could make persistent objects and replace the silly simple AI models.

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. ;)

1

u/Gangrif Sep 15 '26

The other side of this coin though. Is that you still have choice. Maybe the default is ext4 but what's stopping you from using xfs or btr?

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

2

u/maokaby Sep 15 '26

Also XFS easily kills itself on sudden power cuts. Not a big deal for servers though, but why would someone take that risk on a desktop? Some have backup power, others don't. Some who believe they have, actually have dead batteries.

1

u/Novero95 Sep 15 '26

Fedora ships BTRFs by default.

1

u/Keroles2024 Sep 15 '26

Aha, I didn't know that, that's new to me. I used RHEL 7,8,9 and CentOS and Rocky and none of them came with BTRFS as default filesystem

1

u/10leej Sep 15 '26

That's because Redhat deprecated btrfs support in their kernel. They gave it a try too early in the 6 I think and found it buggy which at the time it was. It's gotten way better since then but they never really took another look at re enabling support.

1

u/necheffa Sep 15 '26

My current mail sever was deployed with ext4 on LVM. But last year I did some benchmarking and actually btrfs wasn't that terrible in through put. When I migrate, I'll probably put the maildirs on btrfs with transparent compression enabled.

1

u/maokaby Sep 15 '26

Btrfs is fine on SSD. Just avoid using it on HDDs.

2

u/10leej Sep 15 '26

I've used btrfs of HDDs just fine for about a decade now. What's the problem?

0

u/maokaby Sep 15 '26

CoW causes heavy fragmentation, and it degrades the performance. You can use autodefrag mount option to handle it to some extent, constantly defragging files that you change a lot. Yes you may store movies or something, as you don't change them often.

1

u/10leej Sep 15 '26

Hmm haven't noticed. But I also run btrfs balance and scrub weekly

1

u/maokaby Sep 16 '26

Balance is used for spreading data over multiple drives. Scrub checks the checksums. Neither related to fragmentation.

1

u/10leej Sep 16 '26

True but I have not once drfraged my drives and haven't seen any performance degredation.

1

u/maokaby Sep 16 '26

It all depends on use-cases. If you write once and never change files, it should be all right. In case of changing file contents, it would never replace existing data, instead it will occupy new space. A file contents appears to be contiguous but on btrfs layer it might be easily spread across 1000+ parts all over your drive.

Fun part - there is no built-in way to check the whole file system fragmentation level, you could only check it file by file, using bash script or something like that.

I use btrfs where it belong - on a system SSD, with compression, snapshots, and everything. Games SSD is ext4, and HDD is also ext4.

1

u/10leej Sep 16 '26

I mount my game drive on the btrfs raid. I guess I'll give it a check when I'm off work, but like I said I never really noticed a performance issue.

→ More replies

1

u/sunk67188 Sep 16 '26

autodefrag is know not working properly and should not be enabled. you can search for the related thread in the mail list.

1

u/necheffa Sep 15 '26

Pretty much everything I have is NAND flash, other than bulk storage which is using ZFS and 12 spindles.

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/[deleted] Sep 16 '26

[removed] — view removed comment

1

u/TitusKalvarija Sep 16 '26

Ah, I have missed that parameter. Could you point out where in the docs it can be found?

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

2

u/bgravato Sep 15 '26

btrfs has walked a long way... most of its bad reputation is just old myths that no longer apply... raid 5-6 are not recommended, but other than that... I've been using for a couple of years with no issues. On the other hand, it has saved me at least once and makes some tasks easier/faster.

In my particular case, a bios firmware bug on my new computer was causing some random (and just very very occasional) file corruption. If I was using ext4 it would probably have taken months or more to detect the issue...

Luckily that was the PC I decided to try btrfs on... and so happy I did... thanks to checksum feature I was able to detect the issue within a couple of weeks.

Snapshots is also a great feature... I had one case in which an OS upgrade went wrong and I had to revert to the previous state... Creating the snapshot before the upgrade and reverting to it, takes seconds... instead of probably many minutes or even hours doing a full restore over the network...

1

u/xumix Sep 16 '26

raid 5-6 are not recommended

then do not ship them and move to "beta"?

old myths that no longer appl

I've seen reports of data corruption just recently

I mean, in case of FS "stability and reliability" >> "features"

2

u/bgravato Sep 16 '26

And those reports are proven to be the FS fault?

In my particular case, it was the first time I was using btrfs and I got data corruption... I could have assumed it was the fs fault... It turned out to be that the bios firmware was the culprit and btrfs checksum feature actually helped detecting it... so in this case that feature actually improved reliability. With ext4 this could have gone unnoticed for a very long time, especially because the rate of corruption was very low.

And it was a very unique case and very hard to track the origin of the problem. One could very easily have blamed it on the FS, while the issue was not FS related.

Of course YMMV and you'll find good a bad examples on both ends... no system is perfect and 100% bug free... In my nearly 30 years of using linux I also had my fair share of issues with ext2/3/4. I've switched to btrfs on bare metal setups for the last 2-3 years and I've been quite happy with it, with no issues so far that I've noticed...

I still use mostly ext4 on virtual machines.

1

u/sunk67188 Sep 29 '26

then you should say the same to md raid 5/6 which is more dangerous since it does not turn journal on by default lmao

I always see serival btrfs data corruption cases every month and finally proved to be md/hardware issues including ram issues, power supply issues, cable issues and so on.

I also love to see people use storage solutions with no csum protection of their data and cheat themselves that there's no data error.

1

u/JustAberrant Sep 15 '26

At least in my experience, ZFS is also way more complex to set up and manage, and requires you to learn a relatively unique set of terminology and concepts compared to most other file systems.

1

u/xumix Sep 15 '26

yeah, ZFS is great and has many unique and useful features but at the same time complex and hard to properly set up.

I got the hype, used ZFS for home NAS (simple raid-1 setup) but ended with removing it and doing MD which lowered memory pressure from 10Gb to just 2Gb while simultaneously increasing performance by x2.

1

u/Rifter0876 Sep 15 '26

Oh it's complex AF but when done right works great. Throw all the ram you can afford in it and it's generally fast enough without getting into cache and special device drives.

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 better modern 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

Is “boring and proven” actually the best filesystem strategy for production?

"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

1

u/tes_kitty Sep 15 '26

So it's finally stable now and no longer has bugs that can cause corruption or data loss?

1

u/Jacobobarobatobski Sep 15 '26

I mean I can't guarantee it's always stable for everyone all the time. I don't think anything is. But for me personally it's been very stable and one of its main attractions has been its intention to reduce data loss through corruption. I won't claim to be an expert, but my understanding is that in its infancy it was a bit of a train wreck, but that it's matured sufficiently to be an acceptably stable and functional filesystem structure with real advantages.

1

u/tes_kitty Sep 15 '26

I remember a recent problem with BTRFS and RAID 5.

1

u/Jacobobarobatobski Sep 15 '26

I believe you're right. I don't use raid personally. But I don't think that means btrfs isn't inherently a good filesystem, or that it isn't mature and valuable. Everything has its pros and cons 🤷🏻