3 ms·
So it only affects users who care about their data? Heck of a take.
by jeffbee 3y ago
So it only affects users who care about their data? Heck of a take.
- ofrzeta 3y agoDo you imply that hardware RAID is safer than software RAID?
- mschuster91 3y agoIf it's battery-backed, yes.
- mnw21cam 3y agoIt shouldn't be safer. However, using a battery-backed write cache in hardware RAID allows the OS to just dump the writes into the cache, get the message that they're safe very quickly, and then move on to the next thing. So, a battery-backed write cache allows it to be faster while still being safe. You can still get the same level of safety without it, and you can get very close to the same speed by switching off all the protections (don't do that), or by logging writes to a separate fast storage device (like a SSD or a battery-backed RAM).
- dralley 3y agoI was under the impression that hardware RAID is generally considered unreliable.
- oneplane 3y agoHardware RAID is pretty much a niche at this stage. And unreliable and unsafe in general. Using it is like having an open fire pit inside your home because it's nice and cozy, and assuming that your house not having burned down yet means it's a good idea. So far the only deployments where I've still seen it somewhat relevant is single-node Windows machines without virtualisation (so the balance between trusting windows with your block storage vs. trusting a RAID controller swings towards the controller), and large proprietary SANs where you don't really have a choice. Everything else is either local software RAID (or ZFS), or a cluster filesystem with block storage support for SAN consumption. And then there is the worst of all worlds: firmware-enabled software RAID like the ones you get with consumer mainboards. As far as I know, that only exists because of windows and the legacy inability to boot from anything except a single-disk magic method on MBR or single ESP partition based booting in UEFI. It's all just crutches for bad systems to not have to do it correctly.
- justsomehnguy 3y ago> So far the only deployments where I've still seen it somewhat relevant I'm glad what all your deployments have a competent sysadmins supervisng them. Sadly, this is not how it works in the real life, so I doubt your experience cover 100% of use cases.
- Volundr 3y agoIt's complicated. For consumer level users I'd recommend software RAID because knowing what your getting with hardware RAID is tricky. If your motherboard offers a built-in RAID it's almost certainly crap and your better off disabling it first thing. In general these aren't actually hardware RAIDs anyway, it's actually implemented in the drivers. Low end RAID cards are sometimes better, but mdraid or windows RAID will still probably be more reliable. It's really only expensive enterprise-grade RAID cards that meaningfully compete with software RAID and you'll want to look at the tradeoffs of each.
- jeffbee 3y agoHardware RAID is now almost universal, we just call it "SSDs". With an SSD the relationship between the kernel's block device abstraction and the reality of how the blocks are stored has been interdicted by an opaque controller that decides what blocks to write, how to exploit device parallelism, and what mathematical codes to use for redundancy.
- ilyt 3y agoUh, no. Main purpose for RAID is device failure prevention, SSDs do nothing to address that as controller managing storage chips can still fail, or go "well, one of chips is dead, you're not getting your data back".
- ilyt 3y agoIt's generally PITA, as you need to use a piece of proprietary software to manage, and often have more limitations than mdadm when it comes to what is possible and migration between RAID levels.
- e12e 3y agoIt might not be xfs - it could be the hw raid drivers. I get that the poster wanted to get the word out - but this (for now) only affects opt-in testers; some due diligence is expected. Additionally, that doesn't change the fact that hn frowns on editorializing titles.
- ericbarrett 3y ago> It might not be xfs - it could be the hw raid drivers. It could be that XFS users see the corruption first because of its CRC-verified metadata; you'd expect ZFS to see this quickly too, but another commenter mentioned that OpenZFS isn't even out yet for 6.3. Or perhaps because XFS happens to put its metadata where the corruption occurs. Unclear at this point.
- rincebrain 3y agoAt least one person in there reported it with no HW RAID controller in the mix.
- itvision 3y ago> only affects opt-in testers That's a falsehood. Kernel releases on kernel.org are _not_ considered "unstable". That's a myth open source aficionados have to drop ASAP.
- mroche 3y agoThe "opt-in testers" is referring to the context of this Bugzilla report against Fedora. The only Fedora users who will have the 6.3 kernel series on their systems are those who willingly and intentionally enable the updates-testing repository. It is not a reference to the Linux ecosystem at large. Putting that aside... this probably should have been caught by upstream before releasing, though. I find it a bit hard to believe no kernel developer, particularly those working on the storage subsystems, don't have some kind of system using XFS within a hardware or software RAID configuration.
- itvision 3y ago