DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Two Spirit <twospirit6905@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] gpt over luks - entire data disk encryption
Date: Thu, 19 Jul 2012 13:07:18 +0200	[thread overview]
Message-ID: <5007EA66.2010801@gmail.com> (raw)
In-Reply-To: <CAKRxpuv-YXow3YC4dJvUM9Vs2q8YrJOTtnWzATTUvtLYbFJhLg@mail.gmail.com>

On 07/18/2012 11:46 PM, Two Spirit wrote:
> After some corruptions to my luks environment, I get an opportunity to make some upgrades to my setup.
> I need some help. I'm testing a raid5+1 environment, and would like to do whole data disk encryptions
> with GPT. once I partition the disk using GPT, I can't run the "cryptsetup luksClose". I've done
> whole disk encryption without a partition table with no problems, and I also have done luks encryption
> on a GPT partition without problems.
> 
> The only way I have found to be able to run luksClose is to blow away the partition table(which is not
> acceptable solution). I suspect that udevadm (running ubuntu-12.04) is involved as a /dev/mapper/raid51p1 
> exists. When I get rid of the /dev/mapper/raid51p1, and only the /dev/mapper/raid51 exists, I can then run "luksClose".

For now, use
kpartx -d -pp /dev/mapper/raid51
before you try to luksClose (kpart is part of multipath-tools if not packaged separately)

Milan

      parent reply	other threads:[~2012-07-19 11:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 21:46 [dm-crypt] gpt over luks - entire data disk encryption Two Spirit
2012-07-19  8:24 ` Milan Broz
2012-07-19  8:43   ` Milan Broz
2012-07-19 11:07 ` Milan Broz [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=5007EA66.2010801@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=twospirit6905@gmail.com \
    /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