News for hackers. Stuff that matters.
Re:Don’t Be Afraid of RAID by Exmoor on Sunday May 24, 2020 @10:58AM (#23291935)
The overall premise of this article is good and needs to be said, but the author missed an opportunity by lumping traditional hardware RAID solutions with software solutions like ZFS. The general consensus I've seen from people spinning up large storage arrays in recent years is that the software solutions are far superior for many of the reasons the author mentions.
Re:Don’t Be Afraid of RAID by swills on Sunday May 24, 2020 @11:07AM (#23292009)
I agree and think it also needs to be pointed out that "traditional hardware RAID solutions" are software (firmware) on a separate processor, software which is often in my experience troublesome, buggy, inscrutable, difficult to update, when updates are available, etc.
Re:Don’t Be Afraid of RAID by ajsnigrutin on Sunday May 24, 2020 @08:07PM (#23296183)
But... nobody ever got fired for choosing IBM!

If you set up "your own solution", you're always the "guilty one" if something fails. If you buy IBM (or HP or whatever), it's their fault if something fails.

(i did some of that stuff in enterprise enviroments.... honestly, IBM/HP/... + paid support was always the better option for me, mainly due to "liability" issues)

Re:Don’t Be Afraid of RAID by zrm on Sunday May 24, 2020 @09:26PM (#23296767)
"Nobody ever got fired for buying IBM." -IBM, just before PC servers ate their lunch.

My experience has always been that it's better to do your homework so you don't have problems than to have a scapegoat to blame the problems on.

And the extent to which it's "their fault" tends to be quite inadequate. If you build a 16-drive RAID5 on some enterprise vendor's equipment and then suffer a multiple disk failure during a rebuild because that was a Bad Idea, what's the support contract going to get you? An overnight replacement for both failed drives? All your data is still gone.

Re:Don’t Be Afraid of RAID by ajsnigrutin on Sunday May 24, 2020 @10:27PM (#23297123)
> If you build a 16-drive RAID5 on some enterprise vendor's equipment and then suffer a multiple disk failure during a rebuild because that was a Bad Idea...

If I do that with a linux/solaris/mdadm/zfs/btrfs/whatever, and it fails, who will be the one blamed for the failure? Me of course.

If i select a propper raid setup, and it still failes, it's better if it fails on an IBM than on my duct-tape linux/mdadm/zfs/btrfs/whatever solution, because again, I personally can say, that i did what the vendor (IBM) recommended in their brochure, and their solution failed. If the duct-tape solution fails, there's noone else to blame, than me.

Either way, you have to restore from backup.

And if there is some random bug (eg. kernel oops when mounting volume), there's IBM support on the call. Working with standard options, means standard, well-known bugs, and that means that support can help fix them.

I know, that I (personally) sleep better, knowing there is a professional solution from a big-brand running in a "boring, enterprise" production.

Re:Don’t Be Afraid of RAID by zrm on Sunday May 24, 2020 @10:59PM (#23297321)
> If I do that with a linux/solaris/mdadm/zfs/btrfs/whatever, and it fails, who will be the one blamed for the failure? Me of course.

So don't create a 16-drive RAID5 at all.

> If i select a propper raid setup, and it still failes, it's better if it fails on an IBM than on my duct-tape linux/mdadm/zfs/btrfs/whatever solution, because again, I personally can say, that i did what the vendor (IBM) recommended in their brochure, and their solution failed.

But you're the one who chose the vendor, and evaluated their solution, and accepted it. So you're still fired.

> Either way, you have to restore from backup.

The point is there's a third option. Use a level of redundancy appropriate to the importance of the system, and then it doesn't fail to begin with and it isn't necessary to divert blame. Meanwhile you get to show your boss how you saved the company millions of dollars.

> And if there is some random bug (eg. kernel oops when mounting volume), there's IBM support on the call. Working with standard options, means standard, well-known bugs, and that means that support can help fix them.

Which you can still get for linux/solaris/mdadm/zfs/btrfs/whatever from a variety of vendors if you really want it. But because they're generic technologies, this also means you can get that support from multiple competing providers (so the cost is lower), including per-incident support once something happens that requires it instead of having to buy a support contract you may not ever need.

Which you generally won't need, because the likes of mdadm are more widely used (and so better tested) than any individual vendor's proprietary hardware RAID solution, and can also recover more easily from things like controller failures because the replacement controller needs no state and is not required to match in firmware version or even model.

Re:Don’t Be Afraid of RAID by 1bc29b36f623ba8 on Sunday May 24, 2020 @11:13PM (#23297420)
The grandparent does have a point when it comes to assigning blame; when you have a hardware-based solution then one can always blame the hardware manufacturer. If you use an open-source solution then there is typically no warranties, and then blame therefore falls upon whomever implemented the solution.

Management likes accountability so the above isn't going to change any time soon.

Now, obviously, the way around is to use enterprise-level solutions based on software. It is often more expensive than the hardware route, but as you say, there are plenty of vendors who do offer such solutions with a proper SLA.

Re:Don’t Be Afraid of RAID by wodenokoto on Monday May 25, 2020 @11:37AM (#23302123)
> But you're the one who chose the vendor, and evaluated their solution, and accepted it. So you're still fired.

No, that is the whole point of the "Nobody got fired for buying IBM" meme. If you buy IBM and it fails, even your corporate, non-tech boss knows (or believes) that you couldn't have done any better than what you did.

If you build your own solution or buy from a "lesser" vendor, when things fail, you will be questioned about the solution.

> The point is there's a third option. Use a level of redundancy appropriate to the importance of the system, and then it doesn't fail to begin with and it isn't necessary to divert blame.

That doesn't make any sense. The hypothetical here is that we are comparing the failure of the best homebrew solution to the failure of the appropriate big corporation solution.

It doesn't make sense to say that the solution to failures is to not have any.

Re:Don’t Be Afraid of RAID by zrm on Monday May 25, 2020 @04:23PM (#23304556)
> No, that is the whole point of the "Nobody got fired for buying IBM" meme. If you buy IBM and it fails, even your corporate, non-tech boss knows (or believes) that you couldn't have done any better than what you did.

"Nobody got fired for buying IBM" isn't a meme, it's an IBM marketing slogan. In real life your boss cares a lot more about whether something failed on your watch than why.

> It doesn't make sense to say that the solution to failures is to not have any.

It does when the open source solutions have a lower failure rate because they're more widely used, better tested and less "integrated" which dramatically increases flexibility in quickly implementing solutions to unforeseen problems. It also leaves more budget for real improvements, because RAID6 with a hot spare on commodity hardware costs less than RAID5 with no spare from "enterprise" vendors.

Reliability engineering is science. Hardware will fail. Software will fail. So you include redundancy for the hardware with the highest failure rates, use more redundancy for systems with higher importance, and use modular widely-available commodity parts that can be quickly replaced and sourced from multiple independent vendors. For systems with even higher availability requirements, use system-level redundancy and keep regular snapshots on access-restricted independent backup systems, etc.

Money spent actually preventing failures is more effective than money spent to acquire a scapegoat.

Re:Don’t Be Afraid of RAID by newacct583 on Sunday May 24, 2020 @10:30PM (#23297131)
Still, those enterprise junior executives didn't get fired for choosing mainframes! Their companies made bad decisions in hindsight, but they (and we) blame those bad choices on IBM having failed to meet the needs of the market, not on whatever random Fortune 500 companies bought S/390's instead of PC servers.

Which is the point. IBM was the conservative choice, and they remained so even past the point where they were the wrong choice. If you're a junior executive trying to climb the ladder, that kind of "decision security" has real value.

Re:Don’t Be Afraid of RAID by ajsnigrutin on Sunday May 24, 2020 @10:38PM (#23297190)
> Still, those enterprise junior executives didn't get fired for choosing mainframes!

This!

> Their companies made bad decisions in hindsight, but they (and we) blame those bad choices on IBM having failed to meet the needs of the market, not on whatever random Fortune 500 companies bought S/390's instead of PC servers.

Those companies didn't make bad decisions... the mainframes worked. The might have been more expensive, and slower than a bunch of PC servers, but they did the job. We now know, in hindsight, that PC servers were a better choice, but which one of us is willing to risk our own money/job for something that is currently something new?

There was even a time when tablet computers (think ipad, not x series thinkpads) were "the future of computing", and that "they would replace the need for PCs for everyone"... now (in hindsight) we know that tablets are useless for most people (except for consuming entertainment), and that work computers are still boring PCs with keyboards and mice.

Re:Don’t Be Afraid of RAID by emsign on Monday May 25, 2020 @12:59PM (#23302775)
That's funny I use an IBM rebranded RAID card. In AHCI mode with ZFS.
Re:Don’t Be Afraid of RAID by tw04 on Sunday May 24, 2020 @10:27PM (#23297124)
Software RAID has always been superior - it's just that the vendors who were doing it right built enterprise arrays on their software stack and printed money. There aren't many standalone entities anymore, but the remains still exist. 3Par and Nimble (now HPe), EMC (now Dell), Solidfire (now NetApp), NetApp, Infinidat, IBM, etc.

And ironically, the biggest competitor in the NAS space to NetApp back in the day essentially went bankrupt BECAUSE they used hardware RAID and ran into a TFDL situation that cause customers to flee in droves.

https://en.wikipedia.org/wiki/Auspex_Systems

Re:Don’t Be Afraid of RAID by arsome on Sunday May 24, 2020 @10:41PM (#23297214)
Software raid is better, but it is worth picking up some LSI cards, just to put them in IT mode and pass them all through for software raid.

Most of the cheap SATA cards you can buy have absolute garbage controllers and if you mix them with absolute garbage drives, some terrible failure scenarios occur, I've seen one failing drive take out a whole card, constantly knocking several drives offline in my RAID6 array. This was an absolute hell staring at smartctl and RAID repairs every few weeks until I finally gave up and swapped the controller, once that was done, the single drive failed cleanly and got kicked out without knocking the whole array offline.

Re:Don’t Be Afraid of RAID by StillBored on Tuesday May 26, 2020 @12:36AM (#23307467)
Just make sure they aren't of the megaraid variety. The data integrity/speed trade-off on those boards is probably the worst in the industry.

What you are describing though sounds like a SATA card with a port expander. Most normal AHCI cards are fairly decent and the ports are independent. So loss of a single port won't take the whole thing offline. This is basically the same setup you have for the motherboard ports.

Re:Don’t Be Afraid of RAID by louwrentius on Sunday May 24, 2020 @12:57PM (#23292816)
I kept my article neutral and I realise I should have stated that I consider Linux software RAID and ZFS in the same boat in terms of perceptions about RAID.

People forgo on both Linux software RAID and ZFS because of scary stories.

ZFS is an interesting alternative to Linux software RAID that discussion is a different topic all together.

Re:Don’t Be Afraid of RAID by garmaine on Sunday May 24, 2020 @03:56PM (#23294217)
The two fundamentally are different in ways that you are conflating. A hardware raid card will eject a disk that shows a single URE. Your zfs volume will happily correct the error and just report it as a minor statistic that is cleared on your next reboot.

Yes zfs is immune to the problem the zdnet article hyped up. Because it is immune by design in a way that is purposefully different from raid.

Re:Don’t Be Afraid of RAID by StillBored on Tuesday May 26, 2020 @12:42AM (#23307491)
That completely depends on the RAID controller/software.

Smarter ones, with sufficient slots will leave the "failing" drive online long enough to assure that should a sector fail to be read from the remaining drives an attempt can be made to read it from the "Bad" drive as well. In cases where the drive is being kicked for excessive SMART relocation, or hard read errors this could be the diff between the array going offline and the rebuild succeeding.

For something like mdadm, you can simulate this by upgrading /reshaping from RAID5 to RAID6 (or similar) and then pulling the failing drive and reshaping back to raid5. Or as did a few times a decade+ ago when we had a really bad batch of drives, pick the bad sector off the failed drive, compute the corrected sector "by hand" and write it back to the drive with a read error.

Re:Don’t Be Afraid of RAID by layoutIfNeeded on Sunday May 24, 2020 @04:45PM (#23294529)
Scary stories of ZFS? I thought it was the pinnacle of file systems in terms of reliability.
Re:Don’t Be Afraid of RAID by dehrmann on Sunday May 24, 2020 @09:20PM (#23296720)
I think this has been fixed, but at one point, I used a log device with a one-time encryption key, thinking I didn't care that much about the data if there's a power loss. For the most part, ZFS didn't care either, but what it did care about was not mounting a pool with a missing disk. I had to edit metadata on the pool so it would mount with a different log device. Tools for this didn't exist--I was reading specs and source code, learning how ZFS know which devices belong in a pool.
Re:Don’t Be Afraid of RAID by magicalhippo on Sunday May 24, 2020 @05:56PM (#23295207)
I mean there are some people who have lost ZFS pools or a lot of data.

But for each one of those, there are tons more that have lost entire hardware RAIDs.

There's also tons more of those that had some horrible error and imagined their ZFS pool was gone for sure, only to find they just lost a couple of files, if anything at all.

Re:Don’t Be Afraid of RAID by deelowe on Sunday May 24, 2020 @08:02PM (#23296139)
The only issues I've had are with fragmentation and worrying about losing a disk during rebuilds.
Re:Don’t Be Afraid of RAID by dehrmann on Sunday May 24, 2020 @09:12PM (#23296670)
I, too, have had this experience, but how is this possible? So much other experience has taught me that hardware is better. The main downside I've had with ZFS (over hardware RAID) is performance, but it's been incredibly reliable.
Re:Don’t Be Afraid of RAID by kietdlam on Sunday May 24, 2020 @10:13PM (#23297060)
It's because ZFS is much more than RAID. RAID just exposes a disk to the OS. ZFS exposes a filesystem and knows more metadata, e.g. the checksum, so it knows when to repair the data using the redundancy from the disks.
Re:Don’t Be Afraid of RAID by heavenlyblue on Sunday May 24, 2020 @09:33PM (#23296826)
Which other experience?
Re:Don’t Be Afraid of RAID by dehrmann on Sunday May 24, 2020 @11:50PM (#23297593)
Softmodems, various virtualization technologies, emulators.
Re:Don’t Be Afraid of RAID by heavenlyblue on Tuesday May 26, 2020 @06:44AM (#23309446)
You mean hardware emulators are better than software emulators?