34

I have a couple of SATA hard disks RAIDed for safety in my machine, because I'm worried about the drive having some sort of mechanical failure and losing my data. I'm considering switching to an SSD next year when the prices have come done a bit.

Is it worth using a RAID with SSDs? It seems like the major cause of mehanical failure will have been eliminated by using the SSD, so you're basically trading "Chance of SSD failure" for "chance of cheapo motherboard raid controller failure". I'm not sure if that's worth it.

Opinions?

Colen
  • 497
  • 1
  • 5
  • 10
  • 20
    RAID does not protect you from losing important data. That's not what it was designed for. You need backups for that. – davr Aug 07 '09 at 23:39
  • What kind of up-time do you need? If you can live with a day or so (an hour if you keep a spare nearby) of down-time when the drive fails, while you get a replacement and restore your backups, then it's not really needed... – Oskar Duveborn Aug 08 '09 at 00:04
  • 5
    Why do you think SSDs won't fail? Because there are no moving parts? Electronics can and do fail. – David Aug 09 '09 at 04:33
  • 1
    @David: Of course electronics can fail, but SSDs are (I assume) less likely to do so than hard disks, because of the lack of mechanical parts. – Colen Aug 09 '09 at 22:03
  • @Oskar if the SSD fails you lose all the data on it, and restoring from backups takes time. Recovery isn't as easy to attempt with a SSD than with a HDD. – Mircea Chirea Aug 23 '10 at 08:17
  • So far there's been trouble with raided SSDs and the TRIM support's been lacking as well... it seemed like more trouble than just having a good backup routine in place, at least in this scope, and also just trying to hint that raid isn't about safety. But true, they will fail too. But it may be good enough even if they do as I'm guessing electronic faults in hard drives are more rare than mechanical ones. – Oskar Duveborn Aug 23 '10 at 15:05
  • I may be wrong, but I thought that SSDs were essential Flash/Thumb drives in a hard drive form-factor. If that is indeed the case, Flash memory has a limited number of writes available to each sector. Aside from general electronics failure, this is the true death of SSDs. http://en.wikipedia.org/wiki/Solid-state_drive (under Disadvantages) – gWaldo Oct 01 '10 at 12:26
  • Bruce, what RAID level are you running? –  Jan 15 '11 at 00:56
  • @davr RAID1 absolutely does protect you from losing important data in the case of a mechanical failure, by design. It is true that RAID isn't a substitute for backups, but that doesn't mean that you should rely completely on backups and ignore data redundancy. – Chuu Sep 26 '12 at 07:09
  • From what I've been reading, SSD's fail more regularly than mechanical HDD's. – hookenz May 14 '13 at 04:08

7 Answers7

19

If you don't mind the cost, then there's nothing stopping you from RAIDing SSDs.

Always go with software RAID if you're not running a server! Software RAID is transferable between machines, and hardware RAID often isn't.

Personally, I wouldn't bother with RAID on the current generation of SSDs. Just get the one, and ensure you have sufficient backups that you don't feel concerned about loss of a drive. With the current price and size of SSDs it will be cheap and easy to back up, and then when they get cheaper and larger in the future (as they invariably will) I'd buy more :)

I'd also suggest looking at the MTBF of SSDs and hard disks, and calculating the chances of a failure (and the types of failure -- they may not be as catastrophic with SSDs, as a single sector breaking may not be a sign that the whole drive is dying as it can be with HDDs) and work out if the SSD has a higher or lower chance of failing than a set of RAIDed hard disks...

Edit : The official server fault blog says that this very site is going with RAID-ed SSDs now : http://blog.serverfault.com/post/our-storage-decision/

David Gardner
  • 1,499
  • 2
  • 13
  • 25
  • 1
    What exactly do you mean by "software raid"? Do you mean the stuff that motherboards do (as opposed to "real" raid cards), or some sort of magic raid that Windows knows how to do? – Colen Aug 07 '09 at 22:27
  • 1
    @Colen Some magic that $OS knows how to do. I assume that Windows can manage software RAID, with something in the "Dynamic Disks" with mirroring and such (I know that Linux and plenty of other OSes can but I don't use Windows that much). Fake RAID on motherboards is worthless and often performance is no better (sometimes worse!) than OS-supported software RAID. – David Gardner Aug 07 '09 at 22:33
  • 2
    Desktop Windows variants without "home" in their name (2000, XP Pro, Vista, and presumably 7) support RAID0 and RAID1, and server variants support RAID5. Linux supports just about every significant RAID type thing and its dog. Unless you get a proper dedicated hardware-only RAID controller from a good manufacturer, go with software RAID. Cheap hardware+software RAID (as seen on cheap controllers and included in many motherboards) is a convenient mix of the worst both! – David Spillett Aug 07 '09 at 22:57
  • SW RAID on Windows is fairly poor. On Windows you're almost always better off wih H/W RAID, even if you get a secondhand controller off Ebay. – ConcernedOfTunbridgeWells Jul 04 '10 at 21:25
  • 7
    TRIM doesn't work with RAID yet so, no - don't RAID your SSDs until they do... – Oskar Duveborn Jul 04 '10 at 23:46
  • @Oskar Duveborn : On Windows/Linux/other or on any OS? – David Gardner Sep 10 '10 at 16:06
  • 1
    @Legooolas (& @ Oskar): TRIM is not supported by either Windows or Linux software RAID at the moment. There are some experimental scripts that can use `hdparm`'s manual TRIM support for RAID 1 arrangements (like http://kerneltrap.org/mailarchive/linux-raid/2010/5/25/6885148 for instance) but probably nothing I'd consider stable+tested enough for production use. – David Spillett Oct 01 '10 at 10:41
  • WHoly crap, Legoolas, throw away your 20 year ol raid controller. Every decent current hardware raid can transfer discs between machines without problems because it stores the raid info on the discs. For about 10 years. – TomTom Oct 01 '10 at 11:40
  • @TomTom This answer to a software vs hardware RAID question agrees with me, and has more upvotes than the accepted answer on that question (at the present moment) : http://serverfault.com/questions/214/raid-software-vs-hardware/226#226 – David Gardner Oct 05 '10 at 09:12
  • @TomTom I meant that hardware RAID is often tied to the brand/model of RAID card, rather than that you can't move to another identical card, in case that's what you meant. This is still an annoying limitation and as far as I know is still the case. – David Gardner Oct 05 '10 at 09:13
  • Yes, it is - but it also is exaxctly one thing, pratically, and that is irrelevant. – TomTom Oct 05 '10 at 10:01
  • 1
    Raid is supported for Intel SSD's in raid: http://www.bit-tech.net/news/hardware/2010/03/23/intel-releases-trim-for-raid/1 – Brian Webster Feb 16 '11 at 20:18
  • @hamlin11 - to clarify, [Intel releases TRIM for RAID | bit-tech.net](http://www.bit-tech.net/news/hardware/2010/03/23/intel-releases-trim-for-raid/1) via [Rapid Storage Technology Driver for Intel Desktop Boards](http://downloadcenter.intel.com/detail_desc.aspx?agr=N&ProductID=&DwnldID=15251) – MikeM Apr 29 '11 at 18:57
9

If you use software raid you remove your "chance of cheapo motherboard raid controller failure". With today's processor speeds, the CPU time required to do the parity calculations is tiny (and you are likely doing this already in the CPU with most half-baked consumer raid chips). When doing some of my own benchmarks I have actually seen software RAID outperform enterprise RAID cards when in write-through mode (I assume your motherboard does not have a battery backed cache to allow you to operate in write-back mode).

So, unless you have something against software raid, I think you lose very little by going with software raid and gain the increased reliability.

  • 1
    +1. Being bitten by poorly written desktop-motherboard BIOS fake-RAID has made me shy away from any RAID other than hardware based. – p.campbell Aug 07 '09 at 22:00
  • @pcampbell, I've had RAID controllers fail, and even the same chipset not recognize the array, after replacing the controller. Software raid is the best solution to this, and on modern systems with many CPU cores, it isn't much overhead. I'd still suggest a SATA/SAS controller for increased I/O throughput, but use software RAID. Unless you are specifically using an environment that needs hardware raid, such as ESXi/VMWare. – Tracker1 Apr 27 '12 at 18:45
8

SSDs can and do fail. I'd say yes RAID them just to be safe.

pQd
  • 29,561
  • 5
  • 64
  • 106
mrdenny
  • 27,074
  • 4
  • 40
  • 68
  • Agreed. Especially with some of the problems that have been cropping up with them recently. – David Aug 09 '09 at 04:42
3

I do not have any direct experience with RAIDing SSDs, but I was talking to a Dell rep last year and asked the same question. He said that the IO time actually increased with the RAID, and he didn't suggest it.

I thought about this for a while. For the most part you want the RAID for just a few reasons: speed, redunancy, and/or space.

On the speed issue, there are no moving parts. On a normal drive moving the head and waiting for the disk to spin around to the correct spot probably takes most of the access time. SSDs just don't have those parts, so it should not be an issue.

On the space issue, a logical volume can handle that and no real need for RAID.

On the redandancy, I don't know. It would be an interesting test to see if you received any benefits. I believe the SSDs have "extra" space in them, so when "blocks" go bad there is a spot to put the data. I have only looked at that section in the most casual manner.

Hope I helped,

pulcher
  • 336
  • 1
  • 4
  • That's interesting, since you cannot configure Dell servers with SSDs unless you add a HW RAID card. I believe the reasoning was that the RAID controllers on-board cache could help deal with some of the problems with the current generation's write performance. – Chad Huneycutt Aug 07 '09 at 23:21
  • You will get some performance hit, even RAID1 will run slower with SSDs, as the drives are generally faster than the controllers. Just the same, faster than HDD (even 15K drives), and will usually be offset by redundancy. I've read a few places where hardware failures with SSDs are about the same as HDD rates in the last couple years. So best to be safe. – Tracker1 Apr 27 '12 at 18:48
1

If you do not need too high sustained write performance, you could even go with asymmetric raid1 (--write-mostly), with the other mirror residing on a HDD partition. This had very nice performance for us in a read-intensive database application, it should also play nice as a root or usr partition. However, I would not use this setup for swap or anything similarly write-intensive (swap is dangerous for MLC SSDs anyway).

P.Péter
  • 499
  • 2
  • 6
  • 17
1

Is it worth using a RAID with SSDs?

In general: yes. For data redundancy, RAID 1 or greater is the way to go. Now, with SSDs, I'm not sure how this affects their performance but I can't imagine it being too detrimental. I don't have experience with SSDs so I can't speak to it.

It seems like the major cause of mehanical failure will have been eliminated by using the SSD

Logically, yeah. But some people are reporting performance problems with SSDs over time. Basically SSDs are still not 100% mature for the consumer market IMO. I can't wait for the technology to mature but when you have problems like this from Intel, and performance degradation it's only a matter of time until manufacturers work out the kinks an outmatch their lowly "disk"-based hard drives.

.. so you're basically trading "Chance of SSD failure" for "chance of cheapo motherboard raid controller failure".

Good point, but cheapo motherboard raid controllers affect both SSD and HDD so it's really a matter of the hardware RAID.

I'm not sure if that's worth it.

Now we get to the meat of your question. Are SSDs worth the money? For speed, without a doubt I think they're worth it. Unless you want a WD Raptor at 10,000rpm, SSD is so much faster. But you said...

I'm worried about the drive having some sort of mechanical failure and losing my data.

I think it's safe to say, just wait. Wait for at least 12-18 months until the manufacturers mature their product lines, prices come down, capacity increases, etc. etc. There's no harm in waiting in the computer industry. Your emphasis is on data redundancy, not speed. Why risk it? And the disks today are so cheap and offer more capacity, if you absolutely need storage today, get cheaper SATA II HDDs and hardware RAID them. You'll probably spend less money overall and when the time comes for SSD, you'll already have a good RAID controller (assuming you put the money into it).

osij2is
  • 3,875
  • 2
  • 23
  • 31
0

I just RAIDED 2 Kingston V series 64GB SSDs, and I am getting a speed of nearly 500MB/s. I was curious about RAIDING the one 64 Kingston I have been using as my Boot/App drive for the past month, but this is twice as fast in my Mac Pro 2.8GHz, 12GB RAM,early 2008 Model - "Harpertown" Dual Processors (8 cores). I'm one happy camper !!!