BTRFS and RAID 5?

Backup and data protection discussion at its finest.
Post Reply
awilliams009
Posts: 1
youtube meble na wymiar Warszawa
Joined: Sat Apr 15, 2023 12:13 pm

BTRFS and RAID 5?

Post by awilliams009 »

Hi,

I am considering purchasing a Lockerstor 4 Gen 2. My primary use case is long-term storage for my photos. I want to use BTRFS for its ability to help protect against data corruption/bit rot. I've read, however, that BTRFS doesn't work well with RAID levels 5 and 6. Does Asustor's implementation of BTRFS allow for both stable RAID 5 and data corruption protection?

As a disclaimer, I'm pretty new to this space so I may be completely misunderstanding what I've been reading. I'm just trying to make sure I can achieve my main objective with the Asustor. I've looked at QNAP for their use of ZFS, but they're soooo expensive!

Thanks!
User avatar
Nazar78
Posts: 2080
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: BTRFS and RAID 5?

Post by Nazar78 »

IIRC Asustor doesn't use raid provided by btrfs natively but instead it uses mdadm for raid then creates the btrfs volume over it.

So this means there's no btrfs raid 5/6 bug but you also don't get the bit rot protection due to the fact that it doesn't directly access the block device. Also if I'm not mistaken btrfs doesn't support ssd cache so it needs another layer dmcache to do the ssd caching.

I'm not using btrfs on my NAS but had tested playing around with several of its usage. Had once recreated my raid 10 due to human error (used the wrong cache metadata from a different disk) but I still stick with ext4 for stability.

Maybe others more experience with btrfs on the Asustor can comment further.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Post Reply

Return to “Backup and Data Protection”