Return-Path: Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 14 Mar 2014 17:39:30 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOV8r-0002D5-RB for dm-crypt@saout.de; Fri, 14 Mar 2014 17:39:30 +0100 Received: from S0106586d8f095d06.vc.shawcable.net ([24.85.237.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 17:39:29 +0100 Received: from peter by S0106586d8f095d06.vc.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 17:39:29 +0100 From: PePa Date: Fri, 14 Mar 2014 16:39:05 +0000 (UTC) Message-ID: References: <20140314132256.GA31187@tansi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] =?utf-8?q?cryptsetup-reencode=3A_LUKS-=24=7BUUID=7D=2E?= =?utf-8?q?new_is_too_small?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Arno Wagner writes: > The IO error is worrying though, it should _not_ happen. > Have a look into the system error log to see if this is > some lower-level error. It may also be some problem > with your LVM setup. (I cannot help there, in my opinion > LVM is too complicated and causes more trouble than it > has benefits.) > > Arno I have no idea what the IO error signifies, as the system is still functioning normal (I left it on, in case). But I am convinced this error cannot have anything to do with the LVM setup, as it is happening on a lower layer. I have not had a bad experience with LVM ever in the last 7 years since I started deploying it, and I don't know what trouble you have had with it (or heard about), but I think for now I will keep using it. I am wondering though, if it would be a good idea to change the default luks header size, even if only a smaller header is required according to the parameters. If by default a header size is chosen that could accommodate a reencrypt to a larger size, all the shifting doesn't need to happen, and it will only cost you a few MiBs, which is a small price to pay when usually you're dealing with at least GiB at this level. Peter > On Fri, Mar 14, 2014 at 08:59:28 CET, PePa wrote: > > Reporting back, I did: > > cryptsetup-reencrypt -c aes-xts-plain64 -s 512 -h sha512 > > --reduce-device-size 4MiB /dev/sda4 > > > > It stopped here: > > Progress: 99.4%, ETA 02:48, 710848 MiB written, speed 27.0 MiB/s > > IO error during reencryption. > > > > Curiously, I did: > > cryptsetup luksOpen /dev/sda4 secret > > > > Output>: > > Device /dev/sda4 is not a valid LUKS device. > > > > Is there anything I can still try to salvage this situation?? > > > > Thanks, > > Peter > > > > > > _______________________________________________ > > dm-crypt mailing list > > dm-crypt@... > > http://www.saout.de/mailman/listinfo/dm-crypt >