DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Device $dev is not a valid LUKS device.
Date: Mon, 4 Mar 2013 15:04:18 +0100	[thread overview]
Message-ID: <20130304140417.GA29072@tansi.org> (raw)
In-Reply-To: <51349A77.4070709@logtenberg.eu>

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

  reply	other threads:[~2013-03-04 14:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-04 12:58 [dm-crypt] Device $dev is not a valid LUKS device Erik Logtenberg
2013-03-04 14:04 ` Arno Wagner [this message]
2013-03-04 14:18   ` Erik Logtenberg
2013-03-04 14:36     ` Erik Logtenberg
2013-03-04 14:36     ` Arno Wagner

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=20130304140417.GA29072@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /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