I currently use btrfs on almost all my server and offline backup drives mainly because of the ability to transparently compress files to save space. But apparently btrfs can get corrupted if it unexpectedly loses power? Is there a more robust and corruption resistant filesystem that you’d recommend that also has the ability to compress files?

  • theyllneverfindmehere@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    4 months ago

    I believe ZFS fits your needs. Using ZFS with TrueNAS I can verify it supports transparent compression. It’s supposed to be very stable against data corruption. The only thing I can say about data corruption is in my 10+ years of using it, I haven’t had any issues.

  • IanTwenty@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    4 months ago

    Are you using RAID at all? If so ZFS is probably the way to go. If not I think it matters less whether you use either btrfs or ZFS.

    Regarding btrfs and power loss:

    https://unix.stackexchange.com/questions/340947/does-btrfs-guarantee-data-consistency-on-power-outages

    …btrfs is designed to only experience data loss not corruption, assuming well behaving hardware in power outage scenario. In practice ZFS has more maturity overall (definately) so may be better (my speculation).

    Beyond direct comparisons if you already have on and offline backups then you are protected from power corruption and only have to worry about data loss anyway?

  • solrize@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    If you’re using consumer HDD’s or SSD’s then they themselves can get corrupted in power failures, so the software almost doesn’t matter. Better use a UPS.