Originally posted by Zucca
View Post
Announcement
Collapse
No announcement yet.
Btrfs Gets A Big Improvement For More Robust RAID1 In Linux 5.5
Collapse
X
-
Originally posted by R41N3R View PostI'm not aware that btrfs deals with drive failures automatically. Any quoto for this?
Comment
-
Originally posted by R41N3R View Post
I'm not aware that btrfs deals with drive failures automatically. Any quoto for this? As far as I know, if a drive fails, you just loose a copy, so instead of RAID1C3 you would end up with a normal RAID1... So time to replace the failed drive with a new one!
One of the devs of the projects did a good analysis of the problem, took a couple hours of his time to help me out and refused payment for his troubles, but something like the leaf of the last tree of all the last available snapshots was corrupted, so I could not recover a single file.
But of course I had a few backups in ext4 with full checksum metadata. A few month later, some kernel version silently corrupted many files on my ext4 live and backup arrays. That whole blk-mq bug.
tl/dr: always keep multiple copies of important data on different drives, filesystems, and even geographical locations if you can afford it. And keep checksum lists, because when it hits the fan, you need to be sure that if you have multiple copies of the same files, but they don't have the same checksum, you can figure out which copy is the one that doesn't have bit rot.
- Likes 1
Comment
-
What are the pros and cons of Btrfs RAID10 as compared to RAID1? One difference is that RAID10 requires at least 4 disks, instead of 2, so that's a drawback. I imagine the benefit is speed, right? RAID10 must be faster than RAID1 on the same disks. If I have four or more disks, is there any reason to use RAID1 instead of RAID10? Is either one more resilient than the other or do they have the exact same failure cases?
Comment
-
Originally posted by foobaz View PostWhat are the pros and cons of Btrfs RAID10 as compared to RAID1? One difference is that RAID10 requires at least 4 disks, instead of 2, so that's a drawback. I imagine the benefit is speed, right? RAID10 must be faster than RAID1 on the same disks. If I have four or more disks, is there any reason to use RAID1 instead of RAID10? Is either one more resilient than the other or do they have the exact same failure cases?
Although it seems that there isn't that much difference.
See this also: https://www.phoronix.com/scan.php?pa...nux55-ssd-raidLast edited by Zucca; 30 January 2020, 06:40 PM. Reason: Added link to another (more recent) article too.
Comment
-
Hey thanks for the good info. It looks like overall, RAID 10 is a minor performance benefit over RAID 1, but only if you have exactly 4 disks. I need that many disks anyway to get the amount of storage I need, so I think I'll give it a shot.
Comment
-
Comment