5 ms·
No, you misunderstood me. I am not arguing for FreeBSD everywhere or Linux everywhere. To the contrary. I'm saying use whatever filesystem Linux provides when
by ComputerGuru 9y ago
No, you misunderstood me. I am not arguing for FreeBSD everywhere or Linux everywhere. To the contrary.
I'm saying use whatever filesystem Linux provides when you need to use Linux. And use whatever operating system provides native support for ZFS when you need to use ZFS.
We're using ZFS on FreeBSD to do our data storage, ASP.NET on Windows to run our business logic, and PHP under FreeBSD where PHP is required (previously HHVM on Linux because HHVM was the requirement). I'm saying pick the right OS for the right job.
I'm saying figure out your priority with stability in mind.
ZFS is a must when managing big data. It's nice to have otherwise. Decide which factor is the "must" in your case, and if it's ZFS, don't use Linux.
- tjoff 9y agoProblem is, Linux does not have any decent general purpose filesystem. That is why people risk their data using an untested hack.
- anc84 9y agoWhat is not decent about ext4 as general purpose FS?
- laumars 9y agoext4 is fine for most people but it's not comparable to ZFS. Even ZFS aside, I've been unconvinced by ext4 these days and have starting using XFS on all new Linux server builds.
- anc84 9y agoSo it IS a decent general purpose FS. ;)
- laumars 9y agoI think there's two incompatible arguements going on here: 1. Is ext4 a decent general purpose file system? 2. Is ext4 a decent alternative or comparable to ZFS? My answers to those questions would be: 1. It's an "acceptable" general purpose file system but it's really starting to fall behind the competition. When I see comments like how people don't need features like snapshots et al I'm reminded about just how popular Windows Shadow Copy is. Ok that is a service rather than a file system feature but it shows that there is a demand for desktops to have this feature. Checksuming is another example - it's practically free service these days as CPUs have hardware extensions for popular checksum hashes. So the argument is akin to saying "why do we need file system journaling"; sure you don't need them but you're massively grateful when you do have them and your consumer hardware throws it's inevitable hissyfit. In my opinion Linux really does need to up its game. Ext4 feels almost stuck in time when compares to the likes of XFS which is years older than ext and yet they're working on snapshotting. Then you have really forward thinking file systems like what DragonflyBSD have been working on. They understand the need for better resilience of our data on desktops due to ever expanding storage capacities and HAMMERFS looks extremely exciting as a result. So to get back to your question. Yes ext4 is acceptable for most people, but is acceptable really good enough? Maybe we should invest more time and energy into XFS? 2. Is ext4 a decent alternative or comparable to ZFS? Simply put, no.
- Dylan16807 9y ago* stores data - yes * handles crashes - yes * detects corruption - no I'd want all three for a general purpose FS. Snapshotting is nice but it's complex and expensive, and you can do fine without it. But telling you if your data is safe should be an expected feature for a general purpose FS.
- pizza234 9y agoI take you intended "modern" (eg. data checksumming, and maybe volume management)? It's hard not to qualify ext4 as "decent".
- tjoff 9y ago"Modern" would have been suitable a decade ago. The current state of filesystems on Linux is inexcusable.
- colejohnson66 9y agoIf you’re gonna say something is out of date, at least say what could be better.
- tjoff 9y agoThat is fairly obvious isn't it? Copy on write and checksumming are two basics. And on top of CoW you can get snapshots (which in turn helps with backups, etc. etc.).
- tscs37 9y agoNot everyone needs copy on write and checksumming, it doesn't make sense to waste CPU cycles on checksums when the use case doesn't require it. ext4 is a perfectly fine filesystem for most desktop users and a wide range of servers simply by not being ZFS. If you need CoW and checksumming, there is btrfs too, which is natively supported on Linux and IMO fine if you're only on a single disk or use md or LVM for RAID. It's quite amusing tbh when people think that a filesystem needs to do everything.
- tjoff 9y agoChecksumming is free on todays CPUs, you could use your argument agains filesystem journaling as well. But for some reason you are not proposing using ext2? Why not? Why waste clock cycles on a journal when you might not need it? This truly is a non-issue but in very exceptional circumstances, and in such you don't use a general purpose filesystem anyway. Checksumming and snapshots etc. give substantial game-changing improvements to the whole system. More than a journaling filesystem ever did. They also provide means as to vastly simplify other tasks. Roll-back last system-wide update? Done. Backup consistency? Free and vastly simplified. I disagree, these are properties that are expected of any decent general purpose filesystem. If you fall into a niche that doesn't, fine, use one of the many alternatives. But this should be the default for all user-facing machines as well as servers.
- brendangregg 9y agoWe use zfsonlinux in production already. Have for years. It's had some issues, some have been fixed, some not yet. (I'm usually the go-to person to deal with the deepest ZFS issues.) Last I load tested FreeBSD ZFS it wasn't much different: a different set of issues. Some problems, some fixes. We're now using btrfs too. What's your technical beef with ZFS on Linux anyway?
- laumars 9y agoHe's not against ZoL. He's just saying that ZFS is a first class citizen on FreeBSD so if ZFS is amongst your concerns for that server, then picking an OS where ZFS if a first class citizen makes some logical sense. To be honest I do agree with him. I find FreeBSD to be close enough to Linux that any backend engineer or operator worth their salt should be able to swap between the two platforms. Nearly all the same tools that are available on Linux are available on FreeBSD, plus a few tools of it's own. I'm not advocating FreeBSD everywhere though - Linux has it's strengths too which would make it a better platform in other domains. But sometimes it feels like people turn to ZoL without even considering FreeBSD - which is a real pity as FreeBSD + ZFS is a dream to administrate. It's a lot easier than people expect and by not even entertaining the idea of FreeBSD I think they're missing an opportunity. This is all ideal world scenario stuff though. I do appreciate there are often other factors that complicate the decision making. Sometimes even political rather than technological factors.
- sethhochberg 9y agoFor us in particular, a big deciding factor was actually monitoring when we decided to consolidate our storage servers on ZFS on Linux (migrating a couple that were FreeBSD back to Linux). ZFS works well enough on either these days, and most of our linux folks are certainly comfortable enough in BSD-land, but our primary server monitoring stack at the time (NewRelic's server/infrastructure agents) doesn't have any BSD support at all and they didn't have interest in adding it, so we went back to the other set of tools we knew (linux) which integrated better with the other tooling we used and didn't have time to replace. The purists who try to suggest ZFS should be used from BSD whenever possible are probably forgetting "perfect is the enemy of good"
- wlll 9y agoI'm a bit confused by why ZFS shouldn't be used on Linux. It's just software and can be ported? In terms of using FreeBSD, I generally work in small (~6 person) sysadmin teams running hundreds of servers. There's already a lot of software and OSes to maintain and not a hell of a lot of time to do it, if we can cut out some of the complexity (making sure provisioning tools work on FreeBSD etc.) by just running as much stuff on Linux as possible then our jobs and lives become easier.