From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS safety on RAID 1 mirror
Date: Tue, 25 Nov 2014 15:18:52 +0100 [thread overview]
Message-ID: <20141125141852.GA11425@tansi.org> (raw)
In-Reply-To: <trinity-a8f5fceb-6651-4e7e-8e42-9e38ee19a90c-1416909797090@3capp-mailcom-bs15>
Hi,
On Tue, Nov 25, 2014 at 11:03:17 CET, Mark Connor wrote:
> Hello
>
> I currently have a deployment with luks (aes-cbc-256) on different 1TB, 500GB, 300GB etc. drives. All the drives use different keys and XFS filesystem on the top of luks.
> I'm planning to replace this setup with 2X4TB disks in software raid1 (with mdraid) but I have my concerns.
>
> 1, If a sector goes bad on disk1 that normally shouldn't be replicated to
> disk2 but in case of luks I don't know what happens then.
LUKS changes exactly nothing compared to the normal behavior of
the raid. That is why things like RAID, LUKS, etc. are layered.
> 2, I think it is more practical -when one is dealing with encryption- to
> keep many smaller partitions encrypted with separate keys, in case of
> partial disk failure (other parts of the disk can still be accessed).
No. The only valid reason for different keys is security. It has
no application with regard to reliability.
> Also all the partitions have their own separate luks headers...
>
> Unlike if I don't even create partition just put sda (4TB) sdb(4TB) into
> and md0 array and make luks on that one, if anything goes wrong with the
> header I lose all my data or if any part of the disks breaks.
Same as always. The probability per time goes down a tiny bit, but
almost all damaged headers are due to user error and a few are due
to faulty software, and in both cases RIAD changes exactly nothing.
> I know that ultimately raid is only protect against drive failures (not if
> files get corrupted or deleted) so have to have a separated snapshotted
> backup next to it. But would implementing raid1 in case of luks be an
> advantage or a disadvantage?
No impact. You still need backup, and all LUKS installations
where the data has any worth should have a header backup.
Relevant information is also in the FAQ, Section 6 and Items 2.2,
2.8 and 5.7. I suggest you have a look.
Gr"usse,
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
prev parent reply other threads:[~2014-11-25 14:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 10:03 [dm-crypt] LUKS safety on RAID 1 mirror Mark Connor
[not found] ` <1460172830.1886432.1416911318568.JavaMail.zimbra@grenzecho.be>
2014-11-25 10:28 ` Fabrice Bongartz
2014-11-25 14:24 ` Arno Wagner
2014-11-25 15:27 ` Sven Eschenberg
2014-11-25 16:17 ` Arno Wagner
2014-11-25 23:26 ` Sven Eschenberg
2014-11-26 0:24 ` Arno Wagner
2014-11-27 15:24 ` Mark Connor
2014-11-27 16:47 ` Arno Wagner
2014-11-25 14:18 ` Arno Wagner [this message]
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=20141125141852.GA11425@tansi.org \
--to=arno@wagner.name \
--cc=dm-crypt@saout.de \
/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