public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Fileserver with Raid + Crypto + BtrFS
@ 2015-11-11 17:09 Ralf
  2015-11-11 18:19 ` Neil Bothwick
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ralf @ 2015-11-11 17:09 UTC (permalink / raw
  To: gentoo-user

Hi,

at the moment i'm running a gentoo box as fileserver, the setup is as
follows:

 -----------------------------------
|               Ext4                |
 -----------------------------------
                  ^
                  |
 -----------------------------------
|               LUKS                |
 -----------------------------------
                  ^
                  |
 -----------------------------------
|            MD Raid 10             |
 -----------------------------------
   ^         ^         ^         ^
   |         |         |         |
 -----     -----     -----     -----
| hd0 |   | hd1 |   | hd2 |   | hd3 |
 -----     -----     -----     -----


Besides other features, I'd like to have a snapshot functionality, and I
don't want to introduce an additional layer by using LVM. So I'm
thinking about to migrate to Btrfs.

Btrfs supports Raid10 but no block-crypto.

If I would use a HD->MD Raid->Luks->Btrfs stack, I don't benefit from
the Raid implementation of Btrfs.
If I would use a HD->Luks->Btrfs stack, then I would have to use four
different LUKS devices, which results in four individual encryptions
(and I don't have AES-NI, so this would be a tremendous slowdown).

What would be the best way to have a Raid 10 together with a encrypted
Btrfs?

--

Besides that I would have to live-migrate the Raid10 as I don't have any
spare hdd to cache the data. So I would have to degrade my Raid10.
Is it possible to create a degraded Btrfs?

Please don't tell me that this is insanely dangerous, I know it is ;-)

Cheers
  Ralf


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-12  8:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-11 17:09 [gentoo-user] Fileserver with Raid + Crypto + BtrFS Ralf
2015-11-11 18:19 ` Neil Bothwick
2015-11-11 21:18   ` Ralf
2015-11-11 22:54     ` Neil Bothwick
2015-11-11 23:08     ` Neil Bothwick
2015-11-12  8:01       ` Marc Joliet
2015-11-11 22:19 ` Marc Stürmer
2015-11-11 23:14 ` Nuno Magalhães
2015-11-12  6:01   ` J. Roeleveld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox