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 HmsgEvdcAcry for ; Mon, 4 Mar 2013 15:04:19 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 4 Mar 2013 15:04:18 +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 989061404001 for ; Mon, 4 Mar 2013 15:04:18 +0100 (CET) Date: Mon, 4 Mar 2013 15:04:18 +0100 From: Arno Wagner Message-ID: <20130304140417.GA29072@tansi.org> References: <51349A77.4070709@logtenberg.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51349A77.4070709@logtenberg.eu> Subject: Re: [dm-crypt] Device $dev is not a valid LUKS device. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi Erik, first, you can make a header-backup, see the FAQ. Second, you can investigate what destroys the header. The same thing could well destroy a filesystem, RAID-superblock, etc. Or put differently: Something is very, very wrong in your set-up. Loss of the LUKS header can only happen if einther the user does it (directly or indirectly) or somethign is broken. Arno On Mon, Mar 04, 2013 at 01:58:31PM +0100, Erik Logtenberg wrote: > Hi all, > > I've been using dm-crypt for quite some years now, and every now and > then I am very unpleasantly surprised by the message that my entire > volume can no longer be read: > > Device /dev/disk/by-path/ip-foo.bar:mainstorage-lun-1 is not a valid > LUKS device. > > In this case the iscsi server was rebooted while the volume was still > mounted. The volume is used for making backups and no backups were > currently made, so no actual writes got lost. Nevertheless after reboot > it no longer recognizes my luks volume. > > I've had this kind of malice before and at that time was unable to fix > it. So in the end I gave up, created a new luks volume and started from > scratch. > > However I hope that is not how every future power failure is going to > end up. Is there anything I can do to fix this volume or anything I can > do to prevent such a simple event from causing such catastrophic results? > > Kind regards, > > Erik. > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt -- 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