Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BTRFS or ext4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Sat Mar 21, 2020 8:09 pm    Post subject: BTRFS or ext4 Reply with quote

Hello, i have question today... I have read btrfs now is the true filesystem than ext4, but this information is it already true ? I don't found anything about that into gentoo wiki, and many linux distribution don't use btrfs as default...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14957

PostPosted: Sat Mar 21, 2020 10:06 pm    Post subject: Reply with quote

I have not read any such thing. Where did you read those claims? The last I had read, btrfs still had known sharp edges that would argue against using it in production. I've seen people cause weird breakage with btrfs, some of which was quite hard to repair.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1710
Location: KUUSANKOSKI, Finland

PostPosted: Sat Mar 21, 2020 10:24 pm    Post subject: Reply with quote

With btrfs you should stick to no raid at all or RAID-1 or RAID-10. Those have been stable quite a while.
Synology and Facebook use btrfs, so it cannot be as bad as some say.

I've been running btrfs quite a while now, with one filesystem crash after a power failure. Even after then I was able to transfer data out of the filesystem.

If you don't need the features of btrfs, then stick to ext4. ext4 and xfs are probably the best fs' to lay over a single disk (and even on raid device if you're familiar with mdraid).
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6342

PostPosted: Sun Mar 22, 2020 2:45 am    Post subject: Reply with quote

Zucca wrote:
Synology and Facebook use btrfs, so it cannot be as bad as some say.

Facebook can also afford to have entire servers go missing randomly.

I'm using Btrfs on a few desktops, but I also have at least 2 extra copies of everything I care about.
Back to top
View user's profile Send private message
KWhat
l33t
l33t


Joined: 04 Sep 2005
Posts: 622
Location: Los Angeles

PostPosted: Mon Mar 23, 2020 1:42 am    Post subject: Reply with quote

I recently switched to btrfs from ext4 and everything was fine... until I had a memory issue which lead to to a crash and file system corruption. Recovering btrfs was not trivial, and I was ultimately unsuccessful. After losing my data, I no longer play around with bleeding edge file systems like btrfs on systems I actually need to use on a daily basis. Ext4 is very stable and widely used so I would recommend sticking with it.
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 426
Location: /home

PostPosted: Mon Mar 23, 2020 6:21 am    Post subject: Reply with quote

I've lost 2 filesystems on Gentoo when using btrfs. But on my openSUSE it's worked for years. Go figure...

I have the impression btrfs lost most of its contributors already while SUSE/Novell still trying to breathe some life into it. If I wanted a CoW filesystem now, I'd go with zfsonlinux. There are packages for Gentoo.

(Didn't Facebook switch to Kyber fs already that they themself developed?)
Back to top
View user's profile Send private message
Hund
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2016
Posts: 89
Location: Sweden

PostPosted: Mon Mar 23, 2020 7:00 am    Post subject: Reply with quote

If you have to ask or have any doubts, avoid btrfs. It's a great filesystem for some nieche purposes, but you really need to know what you're getting into.
_________________
$ Linuxkompis.se
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 804

PostPosted: Mon Mar 23, 2020 9:20 am    Post subject: Reply with quote

There seem to be two sorts of file systems - those that simply provide files (ext{2-4}, jfs, and so on) and those that want to provide extra features (btrfs, zfs). The simple ones need other packages (mdraid, lvm and so on) to provide the extra features. It can be argued [by whom?] that the simple way is the Unix way, and the integrated way (with the extra features built into the same package for performance and efficiency) is the Linux and Systemd way. One big cost of the integrated way is the growth in code size and internal linkage that tends to make "big stuff" increasingly hard to maintain. The big cost of the simple way is lower performance and dependence on external packages - just imagine if mdadm was written in python 2!

FWIW I stick to ext4, except for SSD's where I use F2FS. And I'm disappointed that both have decided to support crypto-secured directories and case insensitivity; we've lived for 50+ years without this bloat...
_________________
Greybeard
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1710
Location: KUUSANKOSKI, Finland

PostPosted: Mon Mar 23, 2020 11:22 am    Post subject: Reply with quote

lvm2+XFS is also a common setup. And since LVM can use mdraid to provide redundancy, its pretty nice option. But I have had more than one filesystem corruption with mdraided XFS... so emmm. Maybe I should give it a try once more...

At this moment it seems that the filesystems I'd really like to use are somewhat out of reach:
  • ZFS - maybe a little too complicated and out-of-tree (+ doesn't fit my personal needs)
  • bcachefs - WIP and thus out-of-tree
  • HAMMER2 - only for DragonFlyBSD (has excellent data protection mechanisms)

... so I chose btrfs as the next best choice.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1702

PostPosted: Mon Mar 23, 2020 2:45 pm    Post subject: Reply with quote

There's a lot of development happening on XFS, and it's also now the default file system on RHEL.

It also supports CoW if you enable reflinks, and might eventually gain support for subvolumes. Here's an interesting article about it: https://lwn.net/Articles/747633
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1710
Location: KUUSANKOSKI, Finland

PostPosted: Mon Mar 23, 2020 9:22 pm    Post subject: Reply with quote

That sure was interesting. :!: lvm2 + XFS might be the way forward.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum