DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] LUKS safety on RAID 1 mirror
@ 2014-11-25 10:03 Mark Connor
       [not found] ` <1460172830.1886432.1416911318568.JavaMail.zimbra@grenzecho.be>
  2014-11-25 14:18 ` Arno Wagner
  0 siblings, 2 replies; 10+ messages in thread
From: Mark Connor @ 2014-11-25 10:03 UTC (permalink / raw)
  To: dm-crypt

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.

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).
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.

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?

Thanks

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

end of thread, other threads:[~2014-11-27 16:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox