public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ralf <ralf+gentoo@ramses-pyramidenbau.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Fileserver with Raid + Crypto + BtrFS
Date: Wed, 11 Nov 2015 18:09:39 +0100	[thread overview]
Message-ID: <56437653.2080603@ramses-pyramidenbau.de> (raw)

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


             reply	other threads:[~2015-11-11 17:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 17:09 Ralf [this message]
2015-11-11 18:19 ` [gentoo-user] Fileserver with Raid + Crypto + BtrFS 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

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=56437653.2080603@ramses-pyramidenbau.de \
    --to=ralf+gentoo@ramses-pyramidenbau.de \
    --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