lkml.org 
[lkml]   [2010]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: cryptsetup + lvm on usb disk, unusable /dev/dm-* after suspend/resume cycle
On 07/26/2010 03:06 PM, Nils Radtke wrote:
> 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.

So instead of "cryptsetup luksClose" use dmsetup remove for crypt device too
(There was a bug in some version of cryptsetup which failed close if underlying device
disappeared, should be fixed in >=1.1.2, anyway "dmsetup remove" is low-level equivalent.)

Also see man page and "dmsetup remove -f" flag.

The usb device reinitialization is separate problem, maybe someone can help if you provide
more logs.

Milan


\
 
 \ /
  Last update: 2010-07-26 15:25    [W:0.055 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site