News for hackers. Stuff that matters.
Re:⁠Btrfs has been deprecated in RHEL by ge0rg on Wednesday August 02, 2017 @03:42AM (#14908657)
I think this is a political move disguised as technical move

I think there are solid technical reasons to discourage Btrfs use, just to quote from the official wiki [0]:

> The parity RAID code has multiple serious data-loss bugs in it. It should not be used for anything other than testing purposes.

Now I don't know if this issue has been addressed already, or which kernels are affected, but the fact that there is a prominent warning on the wiki speaks for itself.

Personally, I'm a happy btrfs user deploying a mixed-disk-size array without parity, with the hope to add redundancy some time in the future. Currently, btrfs is the only FS allowing to mix disks of any size and to run an optimal configuration on top of them [1].

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

[1] http://carfax.org.uk/btrfs-usage/

Re:⁠Btrfs has been deprecated in RHEL by cyphar on Wednesday August 02, 2017 @06:10AM (#14909340)
The particular bug that sparked that warning was fixed a while ago, but as a precaution against "btrfs ate my data" stories they've removed the ability to create btrfs-raid from the CLI tools (you can still use md RAID with btrfs but you lose most of the benefits of btrfs that way).
Re:⁠Btrfs has been deprecated in RHEL by cmurf on Wednesday August 02, 2017 @10:54AM (#14911012)
Who's they? Upstream have not removed Btrfs raid creation capability in btrfs-progs, I'm not aware of any distro that has patched it this way.
Re:⁠Btrfs has been deprecated in RHEL by cyphar on Wednesday August 02, 2017 @11:04AM (#14911103)
Oh, I must've misunderstood this mail[1] and thought they had actually gone through with #ifdef-ing out the raid56 creation code in btrfs-progs.

My bad.

[1]: https://www.mail-archive.com/[email protected]/msg...

Re:⁠Btrfs has been deprecated in RHEL by tw04 on Wednesday August 02, 2017 @09:36AM (#14910413)
Which benefits are those? Both synology and qnap have the ability to detect and correct bitrot doing btrfs on top of mdraid.
Re:⁠Btrfs has been deprecated in RHEL by rodgerd on Thursday August 03, 2017 @06:27PM (#14924528)
The design of btrfs allows for mismatched disks to be used in an array, and the btrfs RAID will keep the right level of redundancy while using the maximal amount of space, e.g. with a 4 TB, 2 TB, and 1 TB drive:

mdadm will give you 1 TB in RAID 1, or 1.5 TB in RAID 10 (constrained by the smallest drive).

btrfs will give you 3 TB in RAID 1 (constrained by the sum of the smallest drives).

btrfs also allows per-subvolume raid policies. So you could, for example, give users an "archive" subvolume in their home directory. You could then mark this as RAID 1 or RAID 5 (because you don't care so much about performance) while the main /home filesystem is RAID 10.

Unfortunately the RAID code is all horribly broken.

Re:⁠Btrfs has been deprecated in RHEL by cyphar on Wednesday August 02, 2017 @09:46AM (#14910475)
Being able to have non-symmetric disk topologies with redundancy. I believe that md raid does not support that, while btrfs multi-device does (which is what I think of as one of the really unique features of btrfs -- not even ZFS can handle the sort of disk topologies that btrfs can).
Re:⁠Btrfs has been deprecated in RHEL by tw04 on Wednesday August 02, 2017 @10:51PM (#14916589)
md-raid absolutely supports that and synology has for a long time. They call it "SHR". You simply do raid over disk partitions to enable disks of disparate sizes.

The reason ZFS doesn't support it, and absolutely 0 enterprise storage devices support this is because as the disks fill up, you sacrifice both performance and redundancy. Synology won't even support it on their high-end devices for this very reason. They'll only do it on their devices targeted at home use.

Re:⁠Btrfs has been deprecated in RHEL by rleigh on Wednesday August 02, 2017 @09:00AM (#14910153)
Even when it gets resolved, it's far from being the only major problem with Btrfs. It's merely the current high profile one.
Re:⁠Btrfs has been deprecated in RHEL by cmurf on Wednesday August 02, 2017 @10:52AM (#14911000)
Fixed in 4.12.