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

oracle pays the developers of btrfs [0]

redhat hates the guts of oracle, since oracle released oracle linux, which is a clone of redhat enterprise (based on centos)

so, redhat wants to cripple btrfs and hurt oracle.

However, btrfs is my favorite FS, been using it on my home computer and backup drives for at least 6 years, before it was included in the kernel, love the subvolumes, snapshots, and compression; never had issues with it .

[0] https://oss.oracle.com/~mason/

[Update] Chris mason no longer at Oracle since 2012

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.
Re:⁠Btrfs has been deprecated in RHEL by skrause on Wednesday August 02, 2017 @02:09AM (#14908292)
Chris Mason, the principal Btrfs author, left Oracle over 5 years ago:

https://en.wikipedia.org/wiki/Btrfs#History

"In June 2012, Chris Mason left Oracle for Fusion-io, which he left a year later with Josef Bacik to join Facebook; while at both companies, Mason continued his work on Btrfs."

Re:⁠Btrfs has been deprecated in RHEL by newscracker on Wednesday August 02, 2017 @02:56AM (#14908498)
> However, btrfs is my favorite FS, been using it on my home computer and backup drives for at least 6 years, before it was included in the kernel, love the subvolumes, snapshots, and compression; never had issues with it .

Slightly off topic. I chose btrfs as my main filesystem recently on a system running Ubuntu/Xubuntu. I have done some research on backing up (with the advantage of snapshots) but it looks like there aren't (m)any graphical tools (this gets a little more confusing with /@ and /@home subvolumes on the same partition being treated separately for snapshots, AFAIK).

Do you manage it all from the command line and/or do you have any suggestions for graphical tools to do "as-is clones of entire partitions" (and also incremental backups) to local external drives (not over the network)? Or if you could point to any great documentation or blog posts on this topic, that'd be helpful too (I have read some bits of the btrfs wiki and the btrfs parts in the Arch wiki).

Currently I'm doing a plain rsync using Grsync, and not really taking advantage of btrfs features like snapshots.

The main reason I'm looking at avoiding the command line is to make it easier for others around me to use it.

Re:⁠Btrfs has been deprecated in RHEL by bedros on Wednesday August 02, 2017 @03:21AM (#14908569)
my line for snapshots

btrfs subvolume snapshot /source/drive/folder/ /source/drive/folder/.snapshots/snapshot-`date +"%Y-%m-%d-at-%I-%M%P"`

this will create a snapshot with date and time attached to the snapshot name

you can more info here

https://btrfs.wiki.kernel.org/index.php/SysadminGuide#Managi...

make sure to remember to delete old snapshots, otherwise you'll run out of disk space and not know where it went

Re:⁠Btrfs has been deprecated in RHEL by lathiat on Wednesday August 02, 2017 @07:00AM (#14909540)
performance during snapshot creation/deletes (presumably mostly the deletes) is one of the reasons I personally stopped using btrfs on my desktop. Now using ZFS root (with Ubuntu devel).

I had auto hourly snapshots and sometimes when it deleted one my entire system would hang for a few seconds and occasionally 10s of seconds.

Having said that I do suspect that might be partially related to also using ecryptfs on top, but still.

Re:⁠Btrfs has been deprecated in RHEL by cookiecaper on Wednesday August 02, 2017 @12:06PM (#14911697)
If anything, the political move would've been Oracle's sponsorship of btrfs in the first place. They want to push people to enterprise OS/storage systems, so they've told everyone "Oh yeah, btrfs is coming soon, it'll be great" ... and it isn't great. It sucks.

I've finally broken and installed ZOL (ZFS on Linux) after trying btrfs repeatedly over the last three years. ZFS is already a breath of fresh air and I've only been using it a couple of months. For whatever reason, btrfs came together as a messy hodge-podge, and it shows in bad performance for many use cases (e.g. "omg I forgot nodatacow"), buggy implementations, difficult user interfaces, kernel bugs, etc.

btrfs needs a reboot (I hear bcache? is trying). Meanwhile, everyone should stop getting hung up on the arcane licensing details and just use ZFS directly. It can't be distributed as part of the kernel, but that's why we have distributions, isn't it? They bundle all that crap together for us. There shouldn't even be the normal OSS infighting because this isn't a proprietary blob or something, it's just using a license that's GPL-incompatible.

The best thing Linus could do for the community at large would be to fork and start committing to ZOL, giving it a tacit endorsement.

Re:⁠Btrfs has been deprecated in RHEL by cleech on Wednesday August 02, 2017 @02:07AM (#14908288)
Chris Mason left Oracle for Fusion-io back in 2012 and then from there to Facebook in 2013
Re:⁠Btrfs has been deprecated in RHEL by sargun on Wednesday August 02, 2017 @02:33AM (#14908402)
Oracle still has a couple developers on their payroll that do BtrFS development:

* Liu Bo * Anand Jain

Re:⁠Btrfs has been deprecated in RHEL by rodgerd on Wednesday August 02, 2017 @05:00AM (#14909012)
> I think this is a political move disguised as technical move

You literally have no idea what you're talking about, and I doubt you've used btrfs seriously, or you wouldn't talk this shit. The fact it's been upvoted so heavily just shows what absolute technically-false nonsense will draw support at HN.

Re:⁠Btrfs has been deprecated in RHEL by madez on Wednesday August 02, 2017 @06:21AM (#14909381)
There was no reason given for the deprecation of BTRFS.