Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: btrfs raid 5/6
Date: Tue, 12 Dec 2017 10:15:34
Message-Id: 20171212101523.19e172cb@digimed.co.uk
In Reply to: Re: [gentoo-user] OT: btrfs raid 5/6 by Frank Steinmetzger
1 On Tue, 12 Dec 2017 00:20:48 +0100, Frank Steinmetzger wrote:
2
3 > My new drives are finally here. One of them turned out to be an OEM. -_-
4 > The shop says it will cover any warranty claims and it’s not a backyard
5 > seller either, so methinks I’ll keep it.
6 >
7 > To evaluate LUKS, I created the following setup (I just love
8 > ASCII-painting in vim ^^):
9 >
10 > ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
11 > ┃ tmpfs ┃
12 > ┃ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┃
13 > ┃ │ 1 GB file │ │ 1 GB file │ │ 1 GB file │ │ 1 GB file │ ┃
14 > ┃ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ ┃
15 > ┃ V V V V ┃
16 > ┃ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┃
17 > ┃ │ LUKS device │ │ LUKS device │ │ LUKS device │ │ LUKS device │ ┃
18 > ┃ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ ┃
19 > ┃ V V V V ┃
20 > ┃ ┌─────────────────────────────────────────────────────────────┐ ┃
21 > ┃ │ RaidZ2 │ ┃
22 > ┃ └─────────────────────────────────────────────────────────────┘ ┃
23 > ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
24
25 That means every write has to be encrypted 4 times, whereas using
26 encryption in the filesystem means it only has to be done once. I tried
27 setting encrypted BTRFS this way and there was a significant performance
28 hit. I'm seriously considering going back to ZoL now that encryption is
29 on the way.
30
31
32 --
33 Neil Bothwick
34
35 A printer consists of three main parts: the case, the jammed paper tray
36 and the blinking red light.

Replies

Subject Author
Re: [gentoo-user] OT: btrfs raid 5/6 Wols Lists <antlists@××××××××××××.uk>