News for hackers. Stuff that matters.
Re:Revisiting How We Put Together Linux Systems by rdtsc on Friday March 03, 2017 @03:39PM (#13786257)
> The scheme we propose is built around the variety of concepts of btrfs and Linux file system name-spacing

How many here use Btrfs in production. Facebook does I think. Who else?

Tying something to the filesystem seems a good way to optimize and get a lot of benefit without too much work. But only if that file system is already prevalent.

But I am a bit worried about Btrfs. Is there even a consensus on Btrfs being "the future". There was at some point I think. I've seen https://bcache.evilpiepirate.org/Bcachefs/ touted as the "future" of FS on Linux.

EDIT: Oh 2014. Well it's already 2017 so the question is even more relevant regarding where do we see Btrfs heading?

Re:Revisiting How We Put Together Linux Systems by pfranz on Friday March 03, 2017 @04:07PM (#13786565)
I don't really have any deep insight into the status of Btrfs. A few years ago I was playing around with my Raspberry Pi and it required me to build the newest kernel just to work--I also remember hearing they wouldn't take bug reports until you were using bleeding edge tools. Not very comforting if you were looking to roll out into production.

On the flip-side, Synology just rolled out Btrfs in and update and I'm pretty sure it's the default partition type going forward. They don't expose all the fancy features like dedup, but the fact it's default shows some confidence.

So it sounds like it's being actively developed and getting closer to being trustworthy.

Re:Revisiting How We Put Together Linux Systems by newman314 on Saturday March 04, 2017 @12:56AM (#13789536)
Synology has had btrfs for a while. Their latest release just made it available for more models.

That said, when I bought a 916 last year, I ended up sticking with just ext4 as I needed something that would definitely work. I anticipate that I will at some point switch over.

Re:Revisiting How We Put Together Linux Systems by cyberpunk on Saturday March 04, 2017 @02:34AM (#13789825)
I'm at pretty much a loss as to why anyone who doesn't specifically need something that btrfs and btrfs ALONE provides (writable snapshots from the top of my head although I'm not sure how that's different from a zfs clone.. One command?... I'm sure I read something cool about 'cp' being faster or whatever; is there anything else?) wouldn't go with ZFS instead.

Sure, you might need 5-10 lines of puppet or ansible to get it going in your linux of choice, but that's our job isn't it? And you're probably only using this on your storage boxes which are likely big pets instead of cattle (I use it on docker hosts too, but w/e)..

I've used ZFS in prod for 8 years at least (yay solaris, thumpers, fishworks etc) and it's never caused me any of the problems that things like VXFS, various sans, drbd etc have and I've run a bunch of pretty big infra on it (multi PBs).

Lets be realistic, you should really be picking your battles. Storage is almost always better to buy (read: cheaper/easier) than to build yourself unless you're one of the big boys (say, a cdn, some huge site with specific requirements or whoever.. Those folks probably have fs&kernel devs on staff).

As a responsible systems person you might tell your client just to give some money to emc or whoever as it'll be cheaper than having contractors build something where you need to care about filesystems, but if you absolutely must build it yourself, then go with the stuff that's mature, widely used and has all the nice features you might want from a FS (COW, Snapshots, compression, etc). Even then, probably your client won't have the staff to support your custom setup for more than about a year after you leave and they'll end up doing that anyway. Yes, I know some folks pulled it off; but I've not seen it yet...

As things stand, I cannot trust btrfs. I don't have a single reason to use a filesystem that has no users and has significant data loss issues in specific raid configs[0] when I have an alternative avail that works perfectly and is widely used and I have no idea why anyone else would either...

Losing data kills companies. You can't really fuck around with your software choices to do this stuff if you're a responsible person; save the fancy new tech for your apps not your infra....

There are, of course, gotchas with ZFS. You will get fragmentation on big pools over time which will hurt perf so you'll need to rebuild some storage nodes completely from time to time, but if you're building your own storage then this should be something you're capable of..

If you're custom building a few PB of redundant storage and your reason for not using zfs is you need to rebuild cluster nodes sometimes and you can't do that, then you shouldn't be be building storage on that scale.

BTRFS doesn't have that problem? Cool. I'd like to not have that problem too, but that doesn't mean that I'd use BTRFS just because I need to do those node rebuilds sometimes (which is good practice anyway isn't it?).

I'd maybe use in places I don't care about data safety, like as a storage driver for docker hosts (apps only) -- although I'd need a reason to bother trying...

Anyone?

0: https://btrfs.wiki.kernel.org/index.php/RAID56

Re:Revisiting How We Put Together Linux Systems by wtbob on Saturday March 04, 2017 @12:15PM (#13791797)
> I'm at pretty much a loss as to why anyone who doesn't specifically need something that btrfs and btrfs ALONE provides (writable snapshots from the top of my head although I'm not sure how that's different from a zfs clone.. One command?... I'm sure I read something cool about 'cp' being faster or whatever; is there anything else?) wouldn't go with ZFS instead.

Licensing: the ZFS license is, last I checked, incompatible with the GPL. That makes it a non-starter for me at least.

Re:Revisiting How We Put Together Linux Systems by ithkuil on Saturday March 04, 2017 @03:21PM (#13792755)
Why? (Honest question)
Re:Revisiting How We Put Together Linux Systems by wtbob on Saturday March 04, 2017 @04:14PM (#13792969)
Primarily because it means that ZFS will never be an integral part of the GPLv2-licensed Linux kernel.
Re:Revisiting How We Put Together Linux Systems by johnny22 on Friday March 03, 2017 @05:11PM (#13787299)
Don't the opensuse folks still ship it by default?
Re:Revisiting How We Put Together Linux Systems by OD_ on Friday March 03, 2017 @08:53PM (#13788651)
The suse folks adopting btrfs says more about suse than it says about btrfs. I still remember in the past how I got tricked into believing ReiserFS (3, not the 4 that never made it into the kernel) was a good filesystem despite the broken fsck, the lack of defragmenting tools and many other issues listed there : https://en.wikipedia.org/wiki/ReiserFS#Criticism It was also the only time I've had a FS really eat my data after forced shutdowns (cutting off power). They kept pushing ReiserFS as the default until 2006, 5 years after the release of ext3 which added journaling to the ext family of filesystems. Ext3 was a much better filesystem all around. Suse only switched to ext3 because of the controversy with ReiserFS's author and the uncertain future of Reiser4, not because they admitted that ReiserFS was bad.

I will not make the mistake of putting any worth to suse's words again. Doing it again with btrfs shows they really have a knack for going edgy with filesystems while absolutely no other linux distribution is willing to recommend btrfs.

I trust the Red Hat guys to show more care and this is what they had to say only a year ago about btrfs:

https://www.reddit.com/r/linux/comments/37l2mf/i_am_matthew_...

"The btrfs developers keep telling us that it's not ready, so we're following that. (From one of our storage exports: "Btrfs will be ready in two years. The problem is, that's also going to be true next year, and in two years....") We try to be first where we can, but not at the cost of data loss for users.

-- Matthew Miller, Fedora Project Lead"

Doesn't look good to me.

As long as RH or Debian do not start recommending btrfs one cannot give it consideration in good conscience.

Re:Revisiting How We Put Together Linux Systems by cmurf on Friday March 03, 2017 @11:33PM (#13789287)
One way to look at this is in what technologies each company has spent resources. Suse has more Btrfs developers than I can count on one hand. Red Hat has zero these days. Red Hat might have more LVM and XFS developers than I can count on one hand. So it stands to reason each company's output will be biased, they're going to support (development, QA, and tech support) the things they're spending resources on.

Considering a big chunk, possibly the single largest chunk, of upstream is Suse, and they use it by default for several years on both the opensuse and enterprise offerings, it doesn't really make sense at all that 'btrfs developers say it's not ready'. This just doesn't square. What's going on in my opinion is, neither Red Hat nor Fedora have the resources, nor are they willing to add resources, to triage Btrfs related bugs and therefore Fedora isn't ready for Btrfs, not the other way around.

Even Suse goes very light on what is supported with Btrfs multiple device stuff, by the way. Single device volumes, I've reported bunch of minor bugs, no data loss ever. Multiple device stuff is difficult to qualify: if you're familiar with the warts you're at a net advantage over mdadm and LVM RAID. If you're not and run into trouble, there are traps and Btrfs's claims of focusing on fault tolerance and ease of use can betray the user.

Re:Revisiting How We Put Together Linux Systems by rdtsc on Saturday March 04, 2017 @12:26AM (#13789451)
> it doesn't really make sense at all that 'btrfs developers say it's not ready'. This just doesn't square.

Just looked at this page: https://btrfs.wiki.kernel.org/index.php/Status and I can see how they would interpret that as "not ready". There a good number of "mostly OK" ones, one is unstable. With comments like "write hole still exists, parity not checksummed", "auto-repair and compression may crash ", and others.

It might be good enough for some but I can see many customers of Redhat would not want to trust their crown jewels to anything that stays "mostly OK".

Re:Revisiting How We Put Together Linux Systems by newman314 on Saturday March 04, 2017 @12:59AM (#13789544)
"mostly OK" and storage should not ever mix.

That's like the ¯\_(ツ)_/¯ of storing things. Scary.

Re:Revisiting How We Put Together Linux Systems by rdtsc on Sunday March 05, 2017 @01:17AM (#13794842)
Exactly! You phrased it better than me. Storage of customers' data and "mostly ok" should be very far from each other.
Re:Revisiting How We Put Together Linux Systems by cmurf on Saturday March 04, 2017 @02:25AM (#13789800)
None of those are default configurations that you'd get with mkfs. And there is no UI in any installer to enable raid56.
Re:Revisiting How We Put Together Linux Systems by rwmj on Saturday March 04, 2017 @02:46AM (#13789861)
They do, but they also don't support quite a lot of its features: https://lwn.net/Articles/568230/
Re:Revisiting How We Put Together Linux Systems by LeoPanthera on Friday March 03, 2017 @06:09PM (#13787766)
They do.