From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 95DQo-UqxBgt for ; Thu, 19 Jul 2012 13:07:22 +0200 (CEST) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 19 Jul 2012 13:07:22 +0200 (CEST) Received: by bkwj5 with SMTP id j5so2557538bkw.37 for ; Thu, 19 Jul 2012 04:07:22 -0700 (PDT) Message-ID: <5007EA66.2010801@gmail.com> Date: Thu, 19 Jul 2012 13:07:18 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] gpt over luks - entire data disk encryption List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Two Spirit Cc: dm-crypt@saout.de 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