[pkg-cryptsetup-devel] Bug#538221: [codesite-noreply at google.com: Issue 34 in cryptsetup: Command failed: device-mapper: create ioctl failed: Device or resource busy]

Milan Broz mbroz at redhat.com
Fri Sep 4 07:51:52 UTC 2009


Stuart Pook wrote:
> hi Jonas
> 
> On 04/09/09 00:11, Jonas Meurer wrote:
>> for more information see the upstream issue at
>> http://code.google.com/p/cryptsetup/issues/detail?id=34
> 
> I did so but I still have problems and this time it is not a snapshot device.
> 
> : root; cryptsetup luksOpen /dev/mapper/vg0-services_var services_var --key-file /tmp/xx
> key slot 1 unlocked.
> Command failed: device-mapper: create ioctl failed: Device or resource busy
> 
> I don't understand why this fails. I have never made a snapshot of this device (I rebooted last night).

run "dmsetup info -c" and check UUID for all devices which have CRYPT- prefix.

run "cryptsetup luksDump /dev/mapper/vg0-services_var services_var", see UUID field

and check that there is no active device from dmsetup above with that UUID (ignore CRYPT- prefix).

If so, it is why it fails - --non-exclusive as side effect create device without UUID set,
so for kernel it is new device and allows its creation.

If there is no device with the same UUID, it is probably different problem.

Milan






More information about the pkg-cryptsetup-devel mailing list