public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nils Radtke <lkml@Think-Future.de>
To: Milan Broz <mbroz@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: cryptsetup + lvm on usb disk, unusable /dev/dm-* after suspend/resume  cycle
Date: Mon, 26 Jul 2010 15:06:05 +0200	[thread overview]
Message-ID: <20100726130605.GL31966@localhost> (raw)
In-Reply-To: <4C4CA601.6020201@redhat.com>

  Hi,

  Thanks for your answer.

On Sun 2010-07-25 @ 11-00-49PM +0200, Milan Broz wrote: 
# On 07/25/2010 06:06 PM, Nils Radtke wrote:
# 
# >   Using an external usb 2 hdd with recent kernels with cryptsetup containers that
# >   contain lvm volumes. 
# > 
# >   After a suspend/resume cycle, with active lvm volumes, the mounted fs is "offline", 
# >   the dm-* devices don't respond to commands issued. No more access possible.
# >   
# >   Have to reboot to free the devices.
# 
# I guess it is not dm/block layer problem but USB related - can you check syslog if
# the device is not attached after resume with another major:minor?
I'm not sure I can map this to what happened here. 

What I can tell is, a plain usb conn survives nowadays (there were kernels in the days
of 200x where x < 8 when usb didn't survive) suspend/resume cycles.

It is as well working with a usb + cryptsetup (w/o lvm): survives suspend/resume.

However usb + cryptsetup + lvm does not survive as of these days.

# If this happens - you can free the mappings using dmsetup:
# - try to force umount fs (if mounted), then run "dmsetup table" and manually remove
# orphaned mappings using "dmsetup remove".
That's what I tried and failed gloriously. I'm trying to revive my memory about the 
situation: fs could be unmounted, however, the cryptsetup luksClose failed (IRC) and 
therefore the dmsetup remove consequently failed also.

These experiences let me to the conclusion that there might be some issue
regarding dmsetup in the ensemble of usb + cryptsetup + lvm.

    Thanks for your opinion,


                  Nils


  reply	other threads:[~2010-07-26 13:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-25 16:06 cryptsetup + lvm on usb disk, unusable /dev/dm-* after suspend/resume cycle Nils Radtke
2010-07-25 21:00 ` Milan Broz
2010-07-26 13:06   ` Nils Radtke [this message]
2010-07-26 13:22     ` Milan Broz
2010-07-26 15:56       ` Nils Radtke

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=20100726130605.GL31966@localhost \
    --to=lkml@think-future.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbroz@redhat.com \
    /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