All of lore.kernel.org
 help / color / mirror / Atom feed
From: Omen Wild <omen.wild@gmail.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Encrypt underlying disks after the fact?
Date: Tue, 2 Apr 2013 21:13:18 -0700	[thread overview]
Message-ID: <20130403041318.GA22334@mandarb.com> (raw)
In-Reply-To: <20130402003929.GA21628@tansi.org>

[-- Attachment #1: Type: text/plain, Size: 2638 bytes --]

Quoting Arno Wagner <arno@wagner.name> on Tue, Apr 02 02:39:
>
> With enought space, this should work. However if you encrypt the
> underlying disks, you will have to unlock each one individually
> or script something before mounting.

Good point. I would probably use the same passphrase on both to make
booting easier.

> Integrating RAID into the filesystem like ZFS does really is not that
> good an idea and this is one eaxmple why: It breaks the layering and
> the filesystem has to suddenly do everything, including encryption. Not
> good as it violates KISS. Sadly, the BTRFS developers are making the
> same mistake...

I use to totally agree with this, then I started using ZFS at work and
liked it so much I'm using it a home with the (slightly) experimental
ZFS on Linux.

> Detached header would mean you have one more device to worry about.
> I would recommend avoiding it in this scenario.

True. It was a question that came up browsing the docs. I was thinking a
header backup to an encrypted file stored on several CDs stored in
different places would help offset that. Mostly I'm trying to figure out
how to do this without completely wiping and restoring the data.

> Your device is only 2TB, are you sure you want ZFS on top of that?

You better believe it. Those 2TB contain all of my important data:
photos, video clips, email, scripts and configuration I've been
perfecting since starting with UNIX. Even though I'm using mirrored disks
I have still have still set /home dataset to have 2 copies, so all of the
really important data is actually on disk 4 times. Since this is only
15GB of space I feel the duplication is worth the space. Paranoid, yes.
Overly paranoid, I don't think so.

> Also, AFAIK, ZFS is Beta-quality on Linux and incomplete.

Sort of, but it's pretty solid, and it was mature on Solaris before they
started the integration so the foundation is really, really solid.

> You could also do something else if it does not fit or if you
> want to change thesize anyways:
> 
> 1. Make a degraded md RAID1 on a new disk.
> 2. Put a LUKS container on it
> 3. Put ZFS (single drive) on top of that
> 4. Copy all data over
> 5. Remove one disk from the SFS tool and add it to the md RAID1.

You lose one of the really neat features of ZFS doing it this way, the
ability to detect corruption via checksums and re-read from the other
disk (which is really unlikely to have corruption in the same file).
It then re-writes clean data to the previously broken mirror so you
have 2 clean copies of the data again.

-- 
Help fight continental drift.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 4270 bytes --]

      reply	other threads:[~2013-04-03  4:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01 23:25 [dm-crypt] Encrypt underlying disks after the fact? Omen Wild
2013-04-02  0:39 ` Arno Wagner
2013-04-03  4:13   ` Omen Wild [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=20130403041318.GA22334@mandarb.com \
    --to=omen.wild@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.