Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: HW-raid1 & SSD?
Date: Mon, 09 Jul 2012 19:14:31
Message-Id: 4FFB2D0F.8090606@binarywings.net
In Reply to: [gentoo-user] OT: HW-raid1 & SSD? by Jarry
1 Am 09.07.2012 19:26, schrieb Jarry:
2 > Hi,
3 >
4 > I'm building small server for VPS-hosting purpose (not decided
5 > yet, probably KVM or ESXi). Althought it is "non production",
6 > reliability is still issue for me. I'm considering using two
7 > small SSD (ie. Intel 313, 24GB, SLC) in hw-raid1 (Adaptec 3805)
8 > just for hypervisor, and 2xHDD/raid1 for VPS.
9 >
10 > I started looking for info on internet but results are not
11 > conclusive. Opinions vary from "no problem, use SSD&raid1"
12 > to "using SSD in raid is not recommended no matter if it is
13 > SW or HW". Mostly missing trim-command is mentioned as reason
14 > for not using SSD in any raid.
15 >
16 > Does anyone have any experience with SSD in raid (SW or HW)?
17 > Is it safe to use it on server?
18 >
19 > Jarry
20
21 I don't think trim is currently supported in mdaid. AFAIK dmraid
22 supports it as long as the RAID controller plays along. I'm unsure about
23 LVM mirrors.
24
25 But trim is not your only issue: mdraid and LVM as well as most (all?)
26 hardware RAIDs will mirror all blocks from one disk to the other when
27 you assemble the RAID-1. This means that all blocks on your second SSD
28 will immediately be marked dirty which incurs a significant performance
29 penalty.
30
31 My advice: Use the second disk to do incremental snapshots of the other
32 on the filesystem level. Or, if you feel lucky, use btrfs's mirroring
33 capabilities.
34
35 Regards,
36 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] OT: HW-raid1 & SSD? Michael Mol <mikemol@×××××.com>