7 ms·
Why RAID 5 stops working in 2009 (2007)
- pat2man 12y agoFor now we can get away with other tricks like ZFS's ditto blocks but at some point the whole redundant storage system will need to be re-though.
- topbanana 12y agoI don't use any storage level redundancy at all. I found that misconfiguration (my fault, on two occasions) made it more unreliable that just a single disk. I rely on cloud backup, and I'll take the hit if/when I need to rebuild my machines
- fulafel 12y agoRaid is no replacement for backups in any case! For most people it's better to make a nightly copy to other HD. Raid is for saving downtime on HD failures, doesn't save you from accidental rm -r, word processor corrupting your thesis, GPU driver crash corrupting your filesystem, box getting owned, etc.
- autokad 12y agoi think what he means is, down time isn't a big deal since recovering from back up is quick enough in his case. I never found raid 5 particularly helpful because: #1 hard disks tend to fail at the same time #2 systems fail to give warnings on bad disks ie everything is working, no red flashing lights, things go boom, restart, just kidding, lol you got 2 bad disks. #3 redundant servers > redundant disks for uptime #4 cloud but thats just me and my use cases edit: when i use raid, i use raid 10 or raid 0
- mprovost 12y agoThis is why Time Machine was a much better solution for Apple to implement than their attempt to build ZFS into OSX.
- ars 12y agoNote: This article is from 2007 and is quite prescient. It's completely shameful how bad the specified read error rates are now. It's to the point that if you read an entire disk 4TB you have a 32% chance of one bit being wrong! That means hard disks can no longer be considered reliable devices that return the data written to them, you now need a second layer in software checking checksums. http://www.wolframalpha.com/input/?i=4TB+%2F+10^14+bit++in+%25 http://www.wolframalpha.com/input/?i=4TB+%2F+10^14+bit++in+%... For extra money they sell hard disks with 10^15 reliability instead of 10^14 - this should be standard!
- logicallee 12y agolol @ "they should sell hard disks with 10^15 reliability instead of 10^14!" This is the funniest outrage I've seen in a while, just because the suggested fix is so specific and (relatively) low for the huge amount discussed. It's like saying, "It's an outrage that this drink holds only 37 ounces! For this kind of money I expect it to hold at least 38 ounces. I would pay for that." - My 4 downvoters are clearly a lot worse at math at I am. Let me spell it out for you: "Reliability of 100000000000000 is unacceptable! I need exactly 1000000000000000 of reliability (a factor 10 difference only)." If you don't see how that is funny, the problem is with you, not me. That's a hilariously specific, and small, change. "Man, having a 30% chance of a bit flipping if I read 4 TB is unacceptable. I should have to read like...40 TB for a 30% chance of a bit flip!" It's particularly funny because in the face of this being unacceptable, I would expect a solution, like error correction, that adds 5-10 orders of magnitude (many bit flips have to all happen in the same sector, by coincidence, at the already low 10^14 rate), for it to make it past the error correction layer. The other thing is that given that we're talking about ERROR RATES, I cannot possibly believe that they have it down to such a specific number as 100000000000000. It would have to be a range. You should target more than 1 order of magnitude to get something more reliable (like ECC RAM versus regular RAM). [1] Just like the error margin on 37 ounces must be like 37-40 ounces anyway. [1] first reference I found: http://lambda-diode.com/opinion/ecc-memory-2 http://lambda-diode.com/opinion/ecc-memory-2 "I computed that if you have 4 GiB of memory, you have 96% chance of getting a bit flip in three days because of cosmic rays. SECDED ECC would reduce that to a negligible one chance in six billion." That is, for example, a change of 1 per 34359738368 bits (rounding 96% to 100%) to 1 per 206158430208000000000 bits (multiplying by 6 billion). 34359738368 bits is 10^10. 206158430208000000000 is 10^20. That's the kind of change (give or take) that I was expecting parent to suggest - not one order of magnitude!
- barrkel 12y agoThe storage efficiency gains from RAID5 are not worth the risks, and when you go to RAID6, you lose even more efficiency. You're better off with RAID10 (only need to read one drive to replace, not all the drives). Better performance all round too.
- eeZi 12y agoI work at a hosting company, and we're using RAID10 exclusively.
- chadnickbok 12y agoI'm not sure I fully understand why RAID10 is better than RAID5. Reading the RAID wikipedia article, they seem to imply that a typical RAID10 setup uses n*2 disks, where each block of data is written to two drives. But how does that help in the case of drive failure? If a drive fails, then as size increases won't the exposure to a URE also increase? Is it better than RAID5?
- judk 12y agoIndeed. Reed Solomon coding (maybe only available in system software, not disk hardware) gives you efficiently balanced striping+redundancy
- wtallis 12y agoWhen a drive in a RAID10 array dies, then the data on that drive is still directly available on a drive that's not protected by redundancy, and the other half of the data is still protected. Rebuilding the array requires reading a single drive without error. Rebuilding a RAID5 requires reading n-1 drives and computing parity without error.
- WatchDog 12y agoIn a 4 disk system RAID6 can survive any 2 disks failing but RAID10 can only survive 2 disks failing if you get lucky. Once you go past 4 disks, RAID10 becomes quite expensive and yet can still be killed by a 2 disk failure event.
- keypusher 12y agoThis is already well known in enterprise storage, and one of the solutions is erasure coding. Some products implementing this exist today and others are currently in the works. Basically you go to something like 20+5, instead of 4+1. Of course this only makes sense when you have 50+ drives in a tray. http://www.networkcomputing.com/storage/what-comes-after-raid-erasure-codes/a/d-id/1232357 http://www.networkcomputing.com/storage/what-comes-after-rai...
- mprovost 12y agoPractically yes, erasure coding solutions do tend to have a lot of hard drives. That's probably because their efficiency really makes them much cheaper for people who are buying lots of storage, for a small setup the cost of the drives themselves isn't that significant. But mathematically it works with smaller numbers. You could have an 8 of 12 setup and be able to sustain the loss of 4 drives while only storing an extra 50%.
- e12e 12y agoThere was an update in 2013: http://www.zdnet.com/has-raid5-stopped-working-7000019939/ http://www.zdnet.com/has-raid5-stopped-working-7000019939/ And based on a sample size of 1, it looks like desktop 4tb drives still have an URE of 10^14: http://www.seagate.com/www-content/product-content/barracuda-fam/desktop-hdd/barracuda-7200-14/en-gb/docs/desktop-hdd-data-sheet-ds1770-1-1212gb.pdf http://www.seagate.com/www-content/product-content/barracuda... Then there's of course SSDs: https://www.youtube.com/watch?v=eULFf6F5Ri8 https://www.youtube.com/watch?v=eULFf6F5Ri8 Yeah, no. I don't think it's fair to compare raid0 and raid5 for durability -- but ssds seem to have very low ure-rates, and you can now (almost) reasonably get 1tb ssds. Not sure about how long they can be realistically expected to last, though. Long enough (2-3 years) for when you'll probably want to replace those 14 1tb ssds in raid6 with a three 16 tb ssds in raid1 with one hot-spare?
- zanny 12y agoYou could get a bunch of 840 Evo drives, say, 7 of them, for around $3500, for a 6TB raid5 that would probably get at least a gigabyte a second even with parity calculations overhead. Though ZFS and Btrfs solve the unreadable bit problem with extent checksums, so you really don't need to worry about mechanical disks, yet. You would need two URE's in the same block to kill the checksumming.
- lmm 12y agoI lost data to this kind of problem[1]. The linux dm-raid handles these kind of failures extremely poorly (or did at the time), even when one following all available tutorials. (When I reported my experience one developer said I should have set a cronjob to recursively md5sum my / every week or so - not exactly user-friendly, and not mentioned in any of the tutorials). When you attempt to rebuild a dmraid array, even a raid6 one, expect to lose all your data. Now I use ZFS (on FreeBSD), which handles these kind of errors much more gracefully; if there's an isolated URE you might lose data in that particular file, but it won't destroy the whole array. [1] Yeah yeah, RAID is not a backup. I'm talking about data I didn't consider worth the cost of backing up, as a poor student at the time.
- fulafel 12y agoThe main Linux raid impl (md) probably handles failures more robustly than dm-raid.
- turrini 12y agoYeah, now I've near 120 tb of data under ZoL (ZFS on Linux, currently on master as time of writing), replicated at 5 min interval between two datacenters... Zero corruption, zero problems.
- ars 12y ago> I should have set a cronjob to recursively md5sum my / every week or so If you use Debian then install the debsums program which will do that for you for non-user data and report any errors. You should also install mdadm and set it to check the array every month. And finally install smartmontools and have it do a short self check every day and a long one (i.e. a full disk read) every week.
- deleted 12y ago[deleted]
- deleted 12y ago[deleted]
- deleted 12y ago[deleted]
- spullara 12y agoWhen I put together my home 8-disk server back in 2009 it was pretty clear to me I needed to protect against 2 failures. Even if you just look at the 12 hour recovery times. How much does this change if you are using modern SSDs?
- mikevm 12y agoI believe that SSDs fail differently, in some respects. If your SSDs "wears out", you may not be able to reprogram it (write to it), but you may still be able to read from it. Edit: Apparently this is wrong. Read comments below
- fegu 12y agoWhen SSDs fail, they can leave the entire disk unreadable. Spinning disks will usually only corrupt or deny access to a small part. This is very bad if you do not have backups. Beware! http://www.gundersen.net/solid-state-drives-the-best-of-drives-the-worst-of-drives/ http://www.gundersen.net/solid-state-drives-the-best-of-driv...
- doxcf434 12y agoI had an SSD fail on a mac and the symptoms were that blocks would become intermittently unreadable the longer the drive was running. So when I took it to the genius bar, their tests passed initially. The logs of course showed the read failures, which is what I had to use to convince them the SSD was failing.
- tfigment 12y agoMy experience as we use SSDs for our embedded solutions and sometimes have very frequent writes is that when it goes the whole partition is pretty much hosed. I'm not sure what exactly fails but it seems like the file system index or journal goes and then the whole partition is mostly useless. We use a write filter to avoid writes to OS partition (writes redirect changes to memory) so it is mostly readonly but it still can fail and and when it does the system is unrecoverable. Other partitions may still be seemingly okay but we just replace once a failure is spotted. Disk based drives usually don't fail as catastrophically in my experience but do have more errors. Having said that we have been using them for past 5 years and only have had a dozen failures in that time over probably 500 deployments. And I think several of those were service replacing because they could not determine a root cause. Fortunately, we don't really have to try to recover anything from the drives but it does cause downtime when they fail.
- cybojanek 12y agoCan't wait for btrfs. Benchmark from today: https://docs.google.com/spreadsheets/d/1L5bVGU95D0Cu1gJoQhBhCSTd0uVATi05-UYKcORfTiI/ https://docs.google.com/spreadsheets/d/1L5bVGU95D0Cu1gJoQhBh...
- GhotiFish 12y agoIs BTRFS really still at the "do not use in production" phase? I'm surprised it's still considered unstable. Seems like a case of the "google beta's"
- thristian 12y agoRussell Coker's reports of his experiences with BTRFS give me the screaming heebie-jeebies, no matter how up-beat and positive he stays about it: http://etbe.coker.com.au/tag/btrfs/ http://etbe.coker.com.au/tag/btrfs/
- pmoriarty 12y agoWhat about ZFS?
- MarkSweep 12y agoZFS has been around a bit longer than Btrfs, which the ZFS proponents claim has allowed for it to become more stable. Watching the commit logs of Illumos (the open-source derivative of Solaris) most commits seem to be related to adding features or reducing IO latency variance. Problems with lost data are few and far between. As an appeal to authority, a number of companies currently trust[1] their data to ZFS, Joyent probably being the most well know of them. I store my personal data[2] on ZFS, though my needs are modest. [1]: http://open-zfs.org/wiki/Companies http://open-zfs.org/wiki/Companies [2]: http://www.awise.us/2013/03/10/smartos-home-server.html http://www.awise.us/2013/03/10/smartos-home-server.html
- hga 12y ago
- le_meta 12y agoThis article brought to you by the cloud. ZDNet..
- brunorsini 12y agoNever used anything but RAID 1 on my Synology NAS. Had a drive fail there once and rebuilding the array was as simple as swapping it for a new one (took a few hours but it was truly "plug and play" and no data was lost). Do the things mentioned on the article imply that a system like the Promise Pegasus2 R6 12TB (6 by 2TB) Thunderbolt 2 RAID System (http://store.apple.com/us/product/HE152VC/A/promise-pegasus2-r6-12tb-6-by-2tb-thunderbolt-2-raid-system http://store.apple.com/us/product/HE152VC/A/promise-pegasus2...) is actually not guaranteed to survive 1 HD crash when configured in RAID 5? I'm a bit confused now, would appreciate any help there...
- gnopgnip 12y agoThis is just looking at the physical layer for consumer drives. Any SAN is going to be using something with less errors. Also every year storage costs continue to drop. Double parity, or eventually triple parity are cheaper than ever to implement.
- js2 12y agoShrink the RAID group size? 7 x 1 TB disks in RAID5 gives you 6 TB usable space. With 2 TB drives use a 4 disk RAID group. You're still protecting the same 6 TB (at a small loss of efficiency), but eventually cost catches up (if 4 x 2TB isn't immediately cheaper than 7 x 1TB it won't take long till it is). This more than covers the reliability decrease of the higher capacity drives.
- click170 12y agoSo my understanding is that the problem is that the raid driver throws an error when it fails to read a bit, asserting that it can't read the whole array. Does this mean that since it's the raid driver itself claiming "Hes dead, Jim", that most filesystem-level protections will be ineffective since the array itself is "dead"? Of course, if your filesystem leveraged multiple RAID arrays as independent disks, it would have a chance. For software raid at least, could it not leverage some kind of Hamming or Reed-Solomon code so that it doesn't fail hard like this?
- maerF0x0 12y agoI wonder if amazon has counter measures to this? Or should I expect to see this kind of (un)reliability replicated in a VPS / "cloud" environment ?
- deleted 12y ago[deleted]
- Nican 12y agoI am not an expert on the topic, but nobody seems to have mentioned RAID-Z. https://blogs.oracle.com/bonwick/entry/raid_z https://blogs.oracle.com/bonwick/entry/raid_z Can anyone comment on this?