[pkg-cryptsetup-devel] Bug#538221: Bug#538221: cryptsetup: Command failed: device-mapper: create ioctl failed: Device or resource busy

Stuart Pook debian48 at pook.it
Sun Aug 2 18:40:55 UTC 2009


hi Jonas

On 31/07/09 01:58, Jonas Meurer wrote:
> this sounds like a udev race condition. could you give cryptsetup
> 2:1.0.7-1 from debian/unstable a try?

2:1.0.7-1 does not work either

: root; cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; dpkg -s cryptsetup | grep Version
Version: 2:1.0.7-1
: root; cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; strace -o /tmp/cryptsetup.output  cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; strace -f -o /tmp/cryptsetup.output2  cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command failed: device-mapper: create ioctl failed: Device or resource busy
: root; apt-get -t testing install cryptsetup/testing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version 2:1.0.6+20090405.svn49-1 (Debian:testing) for cryptsetup
The following packages will be DOWNGRADED:
  cryptsetup
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 71 not upgraded.
Need to get 0B/331kB of archives.
After this operation, 8192B disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: warning: downgrading cryptsetup from 2:1.0.7-1 to 2:1.0.6+20090405.svn49-1.
(Reading database ... 250249 files and directories currently installed.)
Preparing to replace cryptsetup 2:1.0.7-1 (using .../cryptsetup_2%3a1.0.6+20090405.svn49-1_i386.deb) ...
Unpacking replacement cryptsetup ...
Processing triggers for man-db ...
Setting up cryptsetup (2:1.0.6+20090405.svn49-1) ...
Installing new version of config file /etc/init.d/cryptdisks-early ...
Installing new version of config file /etc/init.d/cryptdisks ...
Installing new version of config file /etc/bash_completion.d/cryptsetup ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.30-1-686
localepurge: Disk space freed in /usr/share/locale: 12K
: root; cryptsetup luksOpen /dev/mapper/vg0-asterisk_ROOT_snapshot asterisk_ROOT_snapshot --key-file /tmp/xx
key slot 0 unlocked.
Command successful.


> and in case that you're still able
> to reproduce the bug, please provide the output of 'strace cryptsetup
> luksOpen ...'.

I will email them to you (because they might contain sensitive information).

Stuart





More information about the pkg-cryptsetup-devel mailing list