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 vVlqK1yqHFRO for ; Wed, 16 Jan 2013 22:08:41 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 16 Jan 2013 22:08:41 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-164-49.dclient.hispeed.ch [84.74.164.49]) by v4.tansi.org (Postfix) with ESMTPA id 193F31404001 for ; Wed, 16 Jan 2013 22:08:41 +0100 (CET) Date: Wed, 16 Jan 2013 22:08:40 +0100 From: Arno Wagner Message-ID: <20130116210840.GA10215@tansi.org> References: <50F6F2BE.9080203@strike.wu.ac.at> <50F7063B.9090607@strike.wu.ac.at> <20130116201455.GB9508@tansi.org> <50F712D8.801@strike.wu.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50F712D8.801@strike.wu.ac.at> Subject: Re: [dm-crypt] migrate luks key-slots to another luks container List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Wed, Jan 16, 2013 at 09:51:36PM +0100, Alexander 'Leo' Bergolth wrote: > Am 16.01.2013 21:14, schrieb Arno Wagner: > >Any reason why you want to change the cipher? After all, you can > >not enlarge the key and keep the keyslots. > > > >As to size, just enlarge the partition. Offset, I don't know, > >but if you do not need to keep any data, just changing the > >repective fiels in the header should do it. But is there really > >any reason to change the offset? > > The motivation behind this is because I'd like to migrate the data > to another system using a different raid layout. > To ensure correct data alignment with the new stripe size, I need to > change the payload-offset using --align-payload. Ah, that makes sense. However, do you actually need this alignment? If yor filesystem has, say, 4kB blocks and your stripe-size is a multiple of that, it will be aligned anyways. 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 ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell