public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT: HW-raid1 & SSD?
Date: Mon, 09 Jul 2012 21:12:15 +0200	[thread overview]
Message-ID: <4FFB2D0F.8090606@binarywings.net> (raw)
In-Reply-To: <4FFB1443.4090500@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]

Am 09.07.2012 19:26, schrieb Jarry:
> Hi,
> 
> I'm building small server for VPS-hosting purpose (not decided
> yet, probably KVM or ESXi). Althought it is "non production",
> reliability is still issue for me. I'm considering using two
> small SSD (ie. Intel 313, 24GB, SLC) in hw-raid1 (Adaptec 3805)
> just for hypervisor, and 2xHDD/raid1 for VPS.
> 
> I started looking for info on internet but results are not
> conclusive. Opinions vary from "no problem, use SSD&raid1"
> to "using SSD in raid is not recommended no matter if it is
> SW or HW".  Mostly missing trim-command is mentioned as reason
> for not using SSD in any raid.
> 
> Does anyone have any experience with SSD in raid (SW or HW)?
> Is it safe to use it on server?
> 
> Jarry

I don't think trim is currently supported in mdaid. AFAIK dmraid
supports it as long as the RAID controller plays along. I'm unsure about
LVM mirrors.

But trim is not your only issue: mdraid and LVM as well as most (all?)
hardware RAIDs will mirror all blocks from one disk to the other when
you assemble the RAID-1. This means that all blocks on your second SSD
will immediately be marked dirty which incurs a significant performance
penalty.

My advice: Use the second disk to do incremental snapshots of the other
on the filesystem level. Or, if you feel lucky, use btrfs's mirroring
capabilities.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  reply	other threads:[~2012-07-09 19:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 17:26 [gentoo-user] OT: HW-raid1 & SSD? Jarry
2012-07-09 19:12 ` Florian Philipp [this message]
2012-07-09 19:28   ` Michael Mol
2012-07-11 16:09 ` Volker Armin Hemmann
2012-07-13 16:34   ` Jarry
2012-07-14 19:47     ` Volker Armin Hemmann
2012-07-11 17:37 ` Mark Knecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFB2D0F.8090606@binarywings.net \
    --to=lists@binarywings.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox