46
submitted 2 years ago* (last edited 2 years ago) by Trincapinones@lemmy.world to c/selfhosted@lemmy.world

A year ago I set up Ubuntu server with 3 ZFS pools on my server, normally I don't make copies of very large files but today I was making a copy of a ~30GB directory and I saw in rsync that the transfer doesn't exceed 3mb/s (cp is also very slow).

What is the best file system that "just works"? I'm thinking of migrating everything to ext4

EDIT: I really like the automatic pool recovery feature in ZFS, has saved me from 1 hard drive failure so far

you are viewing a single comment's thread
view the rest of the comments
[-] Eideen@lemmy.world 0 points 2 years ago

Yes both BTRFS and Ext4 are vulnerable to unplanned powerloss when writes are in flight. Commonly knows as a write hole.

For BTRFS since it use of Copy of Write, it is more vulnerable. As metadata needs to be updated and more. Ext4 does not have CoW.

[-] Atemu@lemmy.ml 3 points 2 years ago

Ext4 does not have CoW.

That's the only true part of this comment.

As for everything else:

Ext4 uses journaling to ensure consistency.

btrfs' CoW makes it resistant to that issue by its nature; writes go elsewhere anyways, so you can delay the "commit" until everything is truly written and only then update the metadata (using a similar scheme again).

Please read https://en.wikipedia.org/wiki/Journaling_file_system.

[-] Eideen@lemmy.world 1 points 2 years ago

BTRFS is currently not Journaling

https://lore.kernel.org/linux-btrfs/20220513113826.GV18596@twin.jikos.cz/T/#m46f1e018485e6cb2ed42602defee5963ed8c2789

Qu Wenruo did a write up on some of the edge cases. Partial write being one of them.

[-] Atemu@lemmy.ml 2 points 2 years ago

What you just posted concerns the experimental RAID5/6 mode which, unlike all other block group modes, did not have CoW's inherent safety.

As it stands, there is no stable RAID5/6 support in btrfs. If we're talking about non-experimental usage of btrfs, it is irrelevant.

[-] TCB13@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

For BTRFS since it use of Copy of Write, it is more vulnerable. As metadata needs to be updated and more. Ext4 does not have CoW.

This is where theory and practice diverge and I bet a lot of people here will essentially have the same experience I have. I will never run an Ext filesystem again, not ever as I got burned multiple times both at home/homelab and at the datacenter with Ext shenanigans. BTRFS, ZFS, XFS all far superior and more reliable.

[-] Eideen@lemmy.world 1 points 2 years ago

I run BTRFS my self.

And I agree BTRFS , is superior.

this post was submitted on 05 Feb 2024
46 points (97.9% liked)

Selfhosted

60644 readers
746 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS