Exciting things cooking in btrfs

I had a closer look at btrfs development today and there are exciting things cooking that I wanted to share:

Western Digital's Johanes Thumshirn is working on stripe-tree aka "actually working RAID5/6". [1] [2]

Facebook's Omar Sandoval is looking into fscrypt encryption. [1] [2]

Facebook's Josef Bacik is working on extent tree v2, which will fix a lot of pain points when using lots of snapshots and/or qgroups (like stalled i/o after deleting snapshots) and has posted first patches to the mailing list. [1] [2]

Posted Nov 5, 2021, 10:15 PM UTC

5935
ITSDSME•

"actually working RAID5/6"

What does this mean by working? Does it mean performance comparable to RAID10? Or does it mean that it just doesn't break

5
crozone•

As in "doesn't hose your fs on surprise power failure".

11
xrlqhw57•

existing implementation doesnt' need even power failure for completely destroying your data.

3
LeichenExpressOP•

Both. The current RAID5/6 implementation in btrfs is the classic way (like you get with mdadm) which doesn't take advantage of COW, while this new implementation will be more or less like ZFS so it won't suffer from the write-hole (among other issues) anymore. As for performance, it'll eliminate the need for read-modify-write if a write is smaller than the stripe size.

8
PCChipsM922U•

Yeah, this what I'd also like to know... as in, regarding the RAID5 implementation in ZFS (which is an *extension* (module), not exactly treated as part of ZFS), is it supposed to bring this to stable? And are we supposed to BEG for the Xigma guys to implement this as default?

2
clickwir•

We should forget about RAID in the traditional sense and instead look towards FEC.

0
elatllat•

We already have Reed–Solomon coding in the drive firmware. btrfs is for when the threshold is exceeded or the whole drive dies.

https://en.wikipedia.org/wiki/Hard_disk_drive#Error_rates_and_handling

2
useless_it•

Or when the disk has firmware bugs.

1
[deleted]•

what is FEC?

1
rubyrt•

Based on the bot's helpful reply I am assuming Forward Error Correction.

1

FEC may refer to:

More details here: https://en.wikipedia.org/wiki/FEC

This comment was left automatically (by a bot). If I don't get this right, don't get mad at me, I'm still learning!

^(opt out) ^(|) ^(delete) ^(|) ^(report/suggest) ^(|) ^(GitHub)

0
Some-Thoughts•

Write Performance and IO/s of a Raid 5 can never be comparable to Raid10.

But it can be much better than the current implementaton.

I'd expect something comparable to ZFS RaidZ1/Z2.

1
ITSDSME•

So trash then

-2
Some-Thoughts•

I don't think so. It just depends on your use case...

I have lots of servers running pools on ZFS Z1/Z2 and it works well usually.

1
ITSDSME•

Usually Lmao Won't catch me using parity RAID in an enterprise

1

Who cares about RAID5/6? I want the RAID1 read policy framework. Reading based on PID often leads to all reads coming from a single bogged down drive.

5
xrlqhw57•

Great news. So even raid1 was made wrongly from beginning.

No, it doesn't worth the time spent for revival. It's dead. Bury deep and put proper runes on top rock.

-7

Other approaches were attempted and they were, in fact, slower than one based on PIDs. Even the patches that allow configuring different read policies focus in making it configurable because there is not a single option that is better than the others.

2
xrlqhw57•

So it's design was flawed from the beginning. Exactly as stated in next thread. It's uncurable.

-9
AleBaba•

Thanks for that informative summary!

2
[deleted]•

[deleted]

1
elatllat•

Is anyone working on ssd cache for hdds yet? (instead of using zfs/lvm/bcache)

1
ListenLinda_Listen•

I think it’s too little too late. I’ve come to the conclusion btrfs isn’t good for computers with lots of disk space. App servers and workstations is all I will ever use it for.

-20
billdietrich1•

btrfs isn’t good for computers with lots of disk space

Because of bugs, or the design, or missing features, or what ?

6
ListenLinda_Listen•

I think it mostly boils down to implementation of features. I had all kinds of performance problems and a few times it felt like close calls where I might lose data. I never lost data.

I stopped using btrfs on large storage about 3 months ago. I split my storage between xfs and zfs and so far Ive been much happier.

1
billdietrich1•

Okay, thanks for the info.

1
paprok•

xfs and zfs

this is the way. here and here.

1
mrcakeyface•

For me, it's because of having lost 30tb volumes three times to btrfs corruption. Ext4 and Zfs, never had a problem. Btrfs itself might be stable but my experience suggests otherwise

-3†
billdietrich1•

Was that using the RAID configurations of Btrfs, or just straight non-RAID ?

Was the corruption caused by power failures or something ? Not bad sectors on hard disk ?

I'm sure Btrfs code has improved over the years. When did your problems occur ?

1
mrcakeyface•

Straight non raid

1
xrlqhw57•

I think both bugs and ugly design (and both somehow linked together). The only really missing feature is the trust.

The btrfs already consumed huge community resources to be barely able to work without redundancy and resilience features - just not crash/lock itself because of weird "no metadata space"-alike problems.

I didn't believe facebook or wd will be able to make something really robust.

-4