You are not logged in.

#1 2013-07-03 10:05:41

fruitC
Member
Registered: 2013-07-03
Posts: 3

[SOLVED] cryptsetup/LUKS RAID5 problem

Hi,

I can't format a partition on an RAID5 with cryptsetup/LUKS.
I get the following error:

device-mapper: reload ioctl on temporary-cryptsetup-2414 failed: Invalid argument
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-2414 failed: No such device or address

cryptsetup debug output:

root@raidserver15:/data$ cryptsetup --debug -h sha512 -c aes-cbc-essiv:sha512 -s 128 --align-payload=4096 luksFormat /dev/md127p3
# cryptsetup 1.6.1 processing "cryptsetup --debug -h sha512 -c aes-cbc-essiv:sha512 -s 128 --align-payload=4096 luksFormat /dev/md127p3"
# Running command luksFormat.
# Locking memory.
# Installing SIGINT/SIGTERM handler.
# Unblocking interruption on signal.

WARNING!
========
This will overwrite data on /dev/md127p3 irrevocably.

Are you sure? (Type uppercase yes): YES
# Allocating crypt device /dev/md127p3 context.
# Trying to open and read device /dev/md127p3.
# Initialising device-mapper backend library.
# Timeout set to 0 miliseconds.
# Iteration time set to 1000 miliseconds.
# Interactive passphrase entry requested.
Enter passphrase:
Verify passphrase:
# Formatting device /dev/md127p3 as type LUKS1.
# Crypto backend (gcrypt 1.5.2) initialized.
# Generating LUKS header version 1 using hash sha512, aes, cbc-essiv:sha512, MK 16 bytes
# Crypto backend (gcrypt 1.5.2) initialized.
# KDF pbkdf2, hash sha512: 200722 iterations per second.
# Data offset 4096, UUID 7d5104a3-e3ad-4e28-ae05-e88fafbbdac8, digest iterations 24500
# Updating LUKS header of size 1024 on device /dev/md127p3
# Key length 16, device size 9708314591 sectors, header size 1029 sectors.
# Reading LUKS header of size 1024 from device /dev/md127p3
# Key length 16, device size 9708314591 sectors, header size 1029 sectors.
# Adding new keyslot -1 using volume key.
# Calculating data for key slot 0
# Crypto backend (gcrypt 1.5.2) initialized.
# KDF pbkdf2, hash sha512: 200722 iterations per second.
# Key slot 0 use 98008 password iterations.
# Using hash sha512 for AF in key slot 0, 4000 stripes
# Updating key slot 0 [0x1000] area.
# Calculated device size is 125 sectors (RW), offset 8.
# dm version   OF   [16384] (*1)
# dm versions   OF   [16384] (*1)
# Detected dm-crypt version 1.12.1, dm-ioctl version 4.24.0.
# Device-mapper backend running with UDEV support enabled.
# DM-UUID is CRYPT-TEMP-temporary-cryptsetup-2482
# Udev cookie 0xd4d673a (semid 393216) created
# Udev cookie 0xd4d673a (semid 393216) incremented to 1
# Udev cookie 0xd4d673a (semid 393216) incremented to 2
# Udev cookie 0xd4d673a (semid 393216) assigned to CREATE task(0) with flags DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES (0xe)
# dm create temporary-cryptsetup-2482 CRYPT-TEMP-temporary-cryptsetup-2482 OF   [16384] (*1)
# dm reload temporary-cryptsetup-2482  OFW    [16384] (*1)
device-mapper: reload ioctl on  failed: Invalid argument
# Udev cookie 0xd4d673a (semid 393216) decremented to 1
# Udev cookie 0xd4d673a (semid 393216) incremented to 2
# Udev cookie 0xd4d673a (semid 393216) assigned to REMOVE task(2) with flags DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES (0xe)
# dm remove temporary-cryptsetup-2482  OFW    [16384] (*1)
# Uevent not generated! Calling udev_complete internally to avoid process lock-up.
# Udev cookie 0xd4d673a (semid 393216) decremented to 1
# temporary-cryptsetup-2482: Stacking NODE_DEL [verify_udev]
# Udev cookie 0xd4d673a (semid 393216) decremented to 0
# Udev cookie 0xd4d673a (semid 393216) waiting for zero
# Udev cookie 0xd4d673a (semid 393216) destroyed
# temporary-cryptsetup-2482: Processing NODE_DEL [verify_udev]
Failed to open temporary keystore device.
# Udev cookie 0xd4da7b2 (semid 425984) created
# Udev cookie 0xd4da7b2 (semid 425984) incremented to 1
# Udev cookie 0xd4da7b2 (semid 425984) incremented to 2
# Udev cookie 0xd4da7b2 (semid 425984) assigned to REMOVE task(2) with flags (0x0)
# dm remove temporary-cryptsetup-2482  OFT    [16384] (*1)
device-mapper: remove ioctl on temporary-cryptsetup-2482 failed: No such device or address
# Udev cookie 0xd4da7b2 (semid 425984) decremented to 1
# Udev cookie 0xd4da7b2 (semid 425984) decremented to 0
# Udev cookie 0xd4da7b2 (semid 425984) waiting for zero
# Udev cookie 0xd4da7b2 (semid 425984) destroyed
# WARNING: other process locked internal device temporary-cryptsetup-2482, retrying remove.
# dm reload temporary-cryptsetup-2482  NFR   [16384] (*1)
device-mapper: reload ioctl on temporary-cryptsetup-2482 failed: No such device or address
# Udev cookie 0xd4dcff6 (semid 458752) created
# Udev cookie 0xd4dcff6 (semid 458752) incremented to 1
# Udev cookie 0xd4dcff6 (semid 458752) incremented to 2
# Udev cookie 0xd4dcff6 (semid 458752) assigned to REMOVE task(2) with flags (0x0)
# dm remove temporary-cryptsetup-2482  OFT    [16384] (*1)
device-mapper: remove ioctl on temporary-cryptsetup-2482 failed: No such device or address
# Udev cookie 0xd4dcff6 (semid 458752) decremented to 1
# Udev cookie 0xd4dcff6 (semid 458752) decremented to 0
# Udev cookie 0xd4dcff6 (semid 458752) waiting for zero
# Udev cookie 0xd4dcff6 (semid 458752) destroyed
# WARNING: other process locked internal device temporary-cryptsetup-2482, retrying remove.
# Udev cookie 0xd4d8bee (semid 491520) created
# Udev cookie 0xd4d8bee (semid 491520) incremented to 1
# Udev cookie 0xd4d8bee (semid 491520) incremented to 2
# Udev cookie 0xd4d8bee (semid 491520) assigned to REMOVE task(2) with flags (0x0)
# dm remove temporary-cryptsetup-2482  OFT    [16384] (*1)
device-mapper: remove ioctl on temporary-cryptsetup-2482 failed: No such device or address
# Udev cookie 0xd4d8bee (semid 491520) decremented to 1
# Udev cookie 0xd4d8bee (semid 491520) decremented to 0
# Udev cookie 0xd4d8bee (semid 491520) waiting for zero
# Udev cookie 0xd4d8bee (semid 491520) destroyed
# WARNING: other process locked internal device temporary-cryptsetup-2482, retrying remove.
# Udev cookie 0xd4d3723 (semid 524288) created
# Udev cookie 0xd4d3723 (semid 524288) incremented to 1
# Udev cookie 0xd4d3723 (semid 524288) incremented to 2
# Udev cookie 0xd4d3723 (semid 524288) assigned to REMOVE task(2) with flags (0x0)
# dm remove temporary-cryptsetup-2482  OFT    [16384] (*1)
device-mapper: remove ioctl on temporary-cryptsetup-2482 failed: No such device or address
# Udev cookie 0xd4d3723 (semid 524288) decremented to 1
# Udev cookie 0xd4d3723 (semid 524288) decremented to 0
# Udev cookie 0xd4d3723 (semid 524288) waiting for zero
# Udev cookie 0xd4d3723 (semid 524288) destroyed
# WARNING: other process locked internal device temporary-cryptsetup-2482, retrying remove.
# Udev cookie 0xd4d1c69 (semid 557056) created
# Udev cookie 0xd4d1c69 (semid 557056) incremented to 1
# Udev cookie 0xd4d1c69 (semid 557056) incremented to 2
# Udev cookie 0xd4d1c69 (semid 557056) assigned to REMOVE task(2) with flags (0x0)
# dm remove temporary-cryptsetup-2482  OFT    [16384] (*1)
device-mapper: remove ioctl on temporary-cryptsetup-2482 failed: No such device or address
# Udev cookie 0xd4d1c69 (semid 557056) decremented to 1
# Udev cookie 0xd4d1c69 (semid 557056) decremented to 0
# Udev cookie 0xd4d1c69 (semid 557056) waiting for zero
# Udev cookie 0xd4d1c69 (semid 557056) destroyed
# Releasing crypt device /dev/md127p3 context.
# Releasing device-mapper backend.
# Unlocking memory.
Command failed with code 5: Input/output error
root@raidserver15:/data$

dmesg output:

[ 8555.394991] sha512_ssse3: Using AVX optimized SHA-512 implementation
[ 8555.395533] device-mapper: table: 253:0: crypt: Error creating IV
[ 8555.395534] device-mapper: ioctl: error adding target to table
[ 8646.812990] device-mapper: table: 253:0: crypt: Error creating IV
[ 8646.812994] device-mapper: ioctl: error adding target to table
[ 8761.264446] device-mapper: table: 253:0: crypt: Error creating IV
[ 8761.264449] device-mapper: ioctl: error adding target to table
[ 8984.345262] device-mapper: table: 253:0: crypt: Error creating IV
[ 8984.345265] device-mapper: ioctl: error adding target to table
[ 9097.897169] device-mapper: table: 253:0: crypt: Error creating IV
[ 9097.897172] device-mapper: ioctl: error adding target to table

mdstat:

Personalities : [raid6] [raid5] [raid4]
md127 : active raid5 sda[0] sdc[2] sdb[1]
      4883518464 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
      bitmap: 0/19 pages [0KB], 65536KB chunk

unused devices: <none>

strace output:

write(1, "# Updating key slot 0 [0x1000] a"..., 37# Updating key slot 0 [0x1000] area.
) = 37
open("/dev/md127p3", O_RDONLY)          = 5
fstat(5, {st_mode=S_IFBLK|0660, st_rdev=makedev(259, 2), ...}) = 0
ioctl(5, BLKSSZGET, 512)                = 0
close(5)                                = 0
stat("/dev/md127p3", {st_mode=S_IFBLK|0660, st_rdev=makedev(259, 2), ...}) = 0
open("/dev/md127p3", O_RDWR)            = 5
ioctl(5, BLKROGET, 0)                   = 0
ioctl(5, BLKGETSIZE64, 4970657070592)   = 0
close(5)                                = 0
write(1, "# Calculated device size is 125 "..., 56# Calculated device size is 125 sectors (RW), offset 8.
) = 56
uname({sys="Linux", node="gwmserver0", ...}) = 0
stat("/dev/mapper/control", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 236), ...}) = 0
open("/dev/mapper/control", O_RDWR)     = 5
open("/proc/devices", O_RDONLY)         = 6
fstat(6, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8dcbbf7000
read(6, "Character devices:\n  1 mem\n  4 /"..., 1024) = 411
close(6)                                = 0
munmap(0x7f8dcbbf7000, 4096)            = 0
write(1, "# dm version   OF   [16384] (*1)"..., 33# dm version   OF   [16384] (*1)
) = 33
ioctl(5, DM_VERSION, 0x10366a0)         = 0
write(1, "# dm versions   OF   [16384] (*1"..., 34# dm versions   OF   [16384] (*1)
) = 34
ioctl(5, DM_LIST_VERSIONS, 0x10365d0)   = 0
write(1, "# Detected dm-crypt version 1.12"..., 61# Detected dm-crypt version 1.12.1, dm-ioctl version 4.24.0.
) = 61
semctl(0, 0, SEM_INFO, 0x7fff253e14f0)  = 0
open("/etc/udev/udev.conf", O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=44, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8dcbbf7000
read(6, "# see udev(7) for details\n\n#udev"..., 4096) = 44
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0x7f8dcbbf7000, 4096)            = 0
open("/run/udev/queue.bin", O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8dcbbf7000
read(6, "\313\7\0\0\0\0\0\0\314\7\0\0\0\0\0\0$\0/devices/virtu"..., 4096) = 54
close(6)                                = 0
munmap(0x7f8dcbbf7000, 4096)            = 0
write(1, "# Device-mapper backend running "..., 59# Device-mapper backend running with UDEV support enabled.
) = 59
write(1, "# DM-UUID is CRYPT-TEMP-temporar"..., 50# DM-UUID is CRYPT-TEMP-temporary-cryptsetup-2525
) = 50
open("/dev/urandom", O_RDONLY)          = 6
read(6, "b\313", 2)                     = 2
semget(0xd4dcb62, 1, IPC_CREAT|IPC_EXCL|0600) = 786432
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 47# Udev cookie 0xd4dcb62 (semid 786432) created
) = 47
semctl(786432, 0, SETVAL, 0x1)          = 0
semctl(786432, 0, GETVAL, 0xffffffffffffffff) = 1
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) incremented to 1
) = 56
close(6)                                = 0
semop(786432, {{0, 1, 0}}, 1)           = 0
semctl(786432, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 146# Udev cookie 0xd4dcb62 (semid 786432) assigned to CREATE task(0) with flags DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES (0xe)
) = 146
open("/dev/md127p3", O_RDONLY)          = 6
ioctl(6, BLKRAGET, 4096)                = 0
close(6)                                = 0
write(1, "# dm create temporary-cryptsetup"..., 93# dm create temporary-cryptsetup-2525 CRYPT-TEMP-temporary-cryptsetup-2525 OF   [16384] (*1)
) = 93
ioctl(5, DM_DEV_CREATE, 0x103a6e0)      = 0
write(1, "# dm reload temporary-cryptsetup"..., 59# dm reload temporary-cryptsetup-2525  OFW    [16384] (*1)
) = 59
ioctl(5, DM_TABLE_LOAD, 0x103a6e0)      = -1 EINVAL (Invalid argument)
write(2, "device-mapper: reload ioctl on  "..., 56device-mapper: reload ioctl on  failed: Invalid argument) = 56
write(2, "\n", 1
)                       = 1
semget(0xd4dcb62, 1, 0)                 = 786432
semctl(786432, 0, GETVAL, 0xffffffffffffffff) = 2
semop(786432, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) decremented to 1
) = 56
semget(0xd4dcb62, 1, 0)                 = 786432
semop(786432, {{0, 1, 0}}, 1)           = 0
semctl(786432, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 146# Udev cookie 0xd4dcb62 (semid 786432) assigned to REMOVE task(2) with flags DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES (0xe)
) = 146
write(1, "# dm remove temporary-cryptsetup"..., 59# dm remove temporary-cryptsetup-2525  OFW    [16384] (*1)
) = 59
ioctl(5, DM_DEV_REMOVE, 0x103a6e0)      = 0
write(1, "# Uevent not generated! Calling "..., 83# Uevent not generated! Calling udev_complete internally to avoid process lock-up.
) = 83
semget(0xd4dcb62, 1, 0)                 = 786432
semctl(786432, 0, GETVAL, 0xffffffffffffffff) = 2
semop(786432, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) decremented to 1
) = 56
write(1, "# temporary-cryptsetup-2525: Sta"..., 61# temporary-cryptsetup-2525: Stacking NODE_DEL [verify_udev]
) = 61
semget(0xd4dcb62, 1, 0)                 = 786432
semctl(786432, 0, GETVAL, 0xffffffffffffffff) = 1
semop(786432, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) decremented to 0
) = 56
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 56# Udev cookie 0xd4dcb62 (semid 786432) waiting for zero
) = 56
semop(786432, {{0, 0, 0}}, 1)           = 0
semctl(786432, 0, IPC_RMID, 0)          = 0
write(1, "# Udev cookie 0xd4dcb62 (semid 7"..., 49# Udev cookie 0xd4dcb62 (semid 786432) destroyed
) = 49
write(1, "# temporary-cryptsetup-2525: Pro"..., 63# temporary-cryptsetup-2525: Processing NODE_DEL [verify_udev]
) = 63
stat("/dev/mapper/temporary-cryptsetup-2525", 0x7fff253e0460) = -1 ENOENT (No such file or directory)
open("/dev/mapper/temporary-cryptsetup-2525", O_RDWR|O_SYNC|O_DIRECT) = -1 ENOENT (No such file or directory)
write(2, "Failed to open temporary keystor"..., 42Failed to open temporary keystore device.
) = 42
open("/dev/urandom", O_RDONLY)          = 6
read(6, "\255m", 2)                     = 2
semget(0xd4d6dad, 1, IPC_CREAT|IPC_EXCL|0600) = 819200
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 47# Udev cookie 0xd4d6dad (semid 819200) created
) = 47
semctl(819200, 0, SETVAL, 0x1)          = 0
semctl(819200, 0, GETVAL, 0xffffffffffffffff) = 1
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 56# Udev cookie 0xd4d6dad (semid 819200) incremented to 1
) = 56
close(6)                                = 0
semop(819200, {{0, 1, 0}}, 1)           = 0
semctl(819200, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 56# Udev cookie 0xd4d6dad (semid 819200) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 83# Udev cookie 0xd4d6dad (semid 819200) assigned to REMOVE task(2) with flags (0x0)
) = 83
write(1, "# dm remove temporary-cryptsetup"..., 59# dm remove temporary-cryptsetup-2525  OFT    [16384] (*1)
) = 59
ioctl(5, DM_DEV_REMOVE, 0x10366f0)      = -1 ENXIO (No such device or address)
write(2, "device-mapper: remove ioctl on t"..., 90device-mapper: remove ioctl on temporary-cryptsetup-2525 failed: No such device or address) = 90
write(2, "\n", 1
)                       = 1
semget(0xd4d6dad, 1, 0)                 = 819200
semctl(819200, 0, GETVAL, 0xffffffffffffffff) = 2
semop(819200, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 56# Udev cookie 0xd4d6dad (semid 819200) decremented to 1
) = 56
semget(0xd4d6dad, 1, 0)                 = 819200
semctl(819200, 0, GETVAL, 0xffffffffffffffff) = 1
semop(819200, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 56# Udev cookie 0xd4d6dad (semid 819200) decremented to 0
) = 56
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 56# Udev cookie 0xd4d6dad (semid 819200) waiting for zero
) = 56
semop(819200, {{0, 0, 0}}, 1)           = 0
semctl(819200, 0, IPC_RMID, 0)          = 0
write(1, "# Udev cookie 0xd4d6dad (semid 8"..., 49# Udev cookie 0xd4d6dad (semid 819200) destroyed
) = 49
write(1, "# WARNING: other process locked "..., 92# WARNING: other process locked internal device temporary-cryptsetup-2525, retrying remove.
) = 92
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fff253e15d0)       = 0
write(1, "# dm reload temporary-cryptsetup"..., 58# dm reload temporary-cryptsetup-2525  NFR   [16384] (*1)
) = 58
ioctl(5, DM_TABLE_LOAD, 0x10368b0)      = -1 ENXIO (No such device or address)
write(2, "device-mapper: reload ioctl on t"..., 90device-mapper: reload ioctl on temporary-cryptsetup-2525 failed: No such device or address) = 90
write(2, "\n", 1
)                       = 1
open("/dev/urandom", O_RDONLY)          = 6
read(6, "\272\222", 2)                  = 2
semget(0xd4d92ba, 1, IPC_CREAT|IPC_EXCL|0600) = 851968
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 47# Udev cookie 0xd4d92ba (semid 851968) created
) = 47
semctl(851968, 0, SETVAL, 0x1)          = 0
semctl(851968, 0, GETVAL, 0xffffffffffffffff) = 1
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 56# Udev cookie 0xd4d92ba (semid 851968) incremented to 1
) = 56
close(6)                                = 0
semop(851968, {{0, 1, 0}}, 1)           = 0
semctl(851968, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 56# Udev cookie 0xd4d92ba (semid 851968) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 83# Udev cookie 0xd4d92ba (semid 851968) assigned to REMOVE task(2) with flags (0x0)
) = 83
write(1, "# dm remove temporary-cryptsetup"..., 59# dm remove temporary-cryptsetup-2525  OFT    [16384] (*1)
) = 59
ioctl(5, DM_DEV_REMOVE, 0x1036690)      = -1 ENXIO (No such device or address)
write(2, "device-mapper: remove ioctl on t"..., 90device-mapper: remove ioctl on temporary-cryptsetup-2525 failed: No such device or address) = 90
write(2, "\n", 1
)                       = 1
semget(0xd4d92ba, 1, 0)                 = 851968
semctl(851968, 0, GETVAL, 0xffffffffffffffff) = 2
semop(851968, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 56# Udev cookie 0xd4d92ba (semid 851968) decremented to 1
) = 56
semget(0xd4d92ba, 1, 0)                 = 851968
semctl(851968, 0, GETVAL, 0xffffffffffffffff) = 1
semop(851968, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 56# Udev cookie 0xd4d92ba (semid 851968) decremented to 0
) = 56
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 56# Udev cookie 0xd4d92ba (semid 851968) waiting for zero
) = 56
semop(851968, {{0, 0, 0}}, 1)           = 0
semctl(851968, 0, IPC_RMID, 0)          = 0
write(1, "# Udev cookie 0xd4d92ba (semid 8"..., 49# Udev cookie 0xd4d92ba (semid 851968) destroyed
) = 49
write(1, "# WARNING: other process locked "..., 92# WARNING: other process locked internal device temporary-cryptsetup-2525, retrying remove.
) = 92
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fff253e15d0)       = 0
open("/dev/urandom", O_RDONLY)          = 6
read(6, "_\261", 2)                     = 2
semget(0xd4db15f, 1, IPC_CREAT|IPC_EXCL|0600) = 884736
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 47# Udev cookie 0xd4db15f (semid 884736) created
) = 47
semctl(884736, 0, SETVAL, 0x1)          = 0
semctl(884736, 0, GETVAL, 0xffffffffffffffff) = 1
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 56# Udev cookie 0xd4db15f (semid 884736) incremented to 1
) = 56
close(6)                                = 0
semop(884736, {{0, 1, 0}}, 1)           = 0
semctl(884736, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 56# Udev cookie 0xd4db15f (semid 884736) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 83# Udev cookie 0xd4db15f (semid 884736) assigned to REMOVE task(2) with flags (0x0)
) = 83
write(1, "# dm remove temporary-cryptsetup"..., 59# dm remove temporary-cryptsetup-2525  OFT    [16384] (*1)
) = 59
ioctl(5, DM_DEV_REMOVE, 0x1036690)      = -1 ENXIO (No such device or address)
write(2, "device-mapper: remove ioctl on t"..., 90device-mapper: remove ioctl on temporary-cryptsetup-2525 failed: No such device or address) = 90
write(2, "\n", 1
)                       = 1
semget(0xd4db15f, 1, 0)                 = 884736
semctl(884736, 0, GETVAL, 0xffffffffffffffff) = 2
semop(884736, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 56# Udev cookie 0xd4db15f (semid 884736) decremented to 1
) = 56
semget(0xd4db15f, 1, 0)                 = 884736
semctl(884736, 0, GETVAL, 0xffffffffffffffff) = 1
semop(884736, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 56# Udev cookie 0xd4db15f (semid 884736) decremented to 0
) = 56
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 56# Udev cookie 0xd4db15f (semid 884736) waiting for zero
) = 56
semop(884736, {{0, 0, 0}}, 1)           = 0
semctl(884736, 0, IPC_RMID, 0)          = 0
write(1, "# Udev cookie 0xd4db15f (semid 8"..., 49# Udev cookie 0xd4db15f (semid 884736) destroyed
) = 49
write(1, "# WARNING: other process locked "..., 92# WARNING: other process locked internal device temporary-cryptsetup-2525, retrying remove.
) = 92
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fff253e15d0)       = 0
open("/dev/urandom", O_RDONLY)          = 6
read(6, "\321I", 2)                     = 2
semget(0xd4d49d1, 1, IPC_CREAT|IPC_EXCL|0600) = 917504
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 47# Udev cookie 0xd4d49d1 (semid 917504) created
) = 47
semctl(917504, 0, SETVAL, 0x1)          = 0
semctl(917504, 0, GETVAL, 0xffffffffffffffff) = 1
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 56# Udev cookie 0xd4d49d1 (semid 917504) incremented to 1
) = 56
close(6)                                = 0
semop(917504, {{0, 1, 0}}, 1)           = 0
semctl(917504, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 56# Udev cookie 0xd4d49d1 (semid 917504) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 83# Udev cookie 0xd4d49d1 (semid 917504) assigned to REMOVE task(2) with flags (0x0)
) = 83
write(1, "# dm remove temporary-cryptsetup"..., 59# dm remove temporary-cryptsetup-2525  OFT    [16384] (*1)
) = 59
ioctl(5, DM_DEV_REMOVE, 0x1036690)      = -1 ENXIO (No such device or address)
write(2, "device-mapper: remove ioctl on t"..., 90device-mapper: remove ioctl on temporary-cryptsetup-2525 failed: No such device or address) = 90
write(2, "\n", 1
)                       = 1
semget(0xd4d49d1, 1, 0)                 = 917504
semctl(917504, 0, GETVAL, 0xffffffffffffffff) = 2
semop(917504, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 56# Udev cookie 0xd4d49d1 (semid 917504) decremented to 1
) = 56
semget(0xd4d49d1, 1, 0)                 = 917504
semctl(917504, 0, GETVAL, 0xffffffffffffffff) = 1
semop(917504, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 56# Udev cookie 0xd4d49d1 (semid 917504) decremented to 0
) = 56
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 56# Udev cookie 0xd4d49d1 (semid 917504) waiting for zero
) = 56
semop(917504, {{0, 0, 0}}, 1)           = 0
semctl(917504, 0, IPC_RMID, 0)          = 0
write(1, "# Udev cookie 0xd4d49d1 (semid 9"..., 49# Udev cookie 0xd4d49d1 (semid 917504) destroyed
) = 49
write(1, "# WARNING: other process locked "..., 92# WARNING: other process locked internal device temporary-cryptsetup-2525, retrying remove.
) = 92
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fff253e15d0)       = 0
open("/dev/urandom", O_RDONLY)          = 6
read(6, "Y8", 2)                        = 2
semget(0xd4d3859, 1, IPC_CREAT|IPC_EXCL|0600) = 950272
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 47# Udev cookie 0xd4d3859 (semid 950272) created
) = 47
semctl(950272, 0, SETVAL, 0x1)          = 0
semctl(950272, 0, GETVAL, 0xffffffffffffffff) = 1
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 56# Udev cookie 0xd4d3859 (semid 950272) incremented to 1
) = 56
close(6)                                = 0
semop(950272, {{0, 1, 0}}, 1)           = 0
semctl(950272, 0, GETVAL, 0xffffffffffffffff) = 2
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 56# Udev cookie 0xd4d3859 (semid 950272) incremented to 2
) = 56
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 83# Udev cookie 0xd4d3859 (semid 950272) assigned to REMOVE task(2) with flags (0x0)
) = 83
write(1, "# dm remove temporary-cryptsetup"..., 59# dm remove temporary-cryptsetup-2525  OFT    [16384] (*1)
) = 59
ioctl(5, DM_DEV_REMOVE, 0x1036690)      = -1 ENXIO (No such device or address)
write(2, "device-mapper: remove ioctl on t"..., 90device-mapper: remove ioctl on temporary-cryptsetup-2525 failed: No such device or address) = 90
write(2, "\n", 1
)                       = 1
semget(0xd4d3859, 1, 0)                 = 950272
semctl(950272, 0, GETVAL, 0xffffffffffffffff) = 2
semop(950272, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 56# Udev cookie 0xd4d3859 (semid 950272) decremented to 1
) = 56
semget(0xd4d3859, 1, 0)                 = 950272
semctl(950272, 0, GETVAL, 0xffffffffffffffff) = 1
semop(950272, {{0, -1, IPC_NOWAIT}}, 1) = 0
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 56# Udev cookie 0xd4d3859 (semid 950272) decremented to 0
) = 56
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 56# Udev cookie 0xd4d3859 (semid 950272) waiting for zero
) = 56
semop(950272, {{0, 0, 0}}, 1)           = 0
semctl(950272, 0, IPC_RMID, 0)          = 0
write(1, "# Udev cookie 0xd4d3859 (semid 9"..., 49# Udev cookie 0xd4d3859 (semid 950272) destroyed
) = 49
write(1, "# Releasing crypt device /dev/md"..., 47# Releasing crypt device /dev/md127p3 context.
) = 47
write(1, "# Releasing device-mapper backen"..., 35# Releasing device-mapper backend.
) = 35
close(5)                                = 0
write(1, "# Unlocking memory.\n", 20# Unlocking memory.
)   = 20
munlockall()                            = 0
setpriority(PRIO_PROCESS, 0, 0)         = 0
write(2, "Command failed with code 5", 26Command failed with code 5) = 26
write(2, ": Input/output error\n", 21: Input/output error
)  = 21
exit_group(1)                           = ?
+++ exited with 1 +++

I tried different cryptsetup options, same result.

edit:
udev events:

KERNEL[147.921287] change   /devices/virtual/block/md127/md127p3 (block)
UDEV  [148.000482] change   /devices/virtual/block/md127/md127p3 (block)
KERNEL[148.956240] change   /devices/virtual/block/md127/md127p3 (block)
UDEV  [148.985896] change   /devices/virtual/block/md127/md127p3 (block)
KERNEL[150.412013] change   /devices/virtual/block/md127/md127p3 (block)
KERNEL[150.412110] add      /devices/virtual/bdi/253:0 (bdi)
KERNEL[150.412202] add      /devices/virtual/block/dm-0 (block)
KERNEL[150.412355] remove   /devices/virtual/block/dm-0 (block)
UDEV  [150.412398] add      /devices/virtual/bdi/253:0 (bdi)
KERNEL[150.412417] remove   /devices/virtual/bdi/253:0 (bdi)
KERNEL[150.412458] remove   /devices/virtual/block/dm-0 (block)
UDEV  [150.412480] remove   /devices/virtual/bdi/253:0 (bdi)
UDEV  [150.412518] add      /devices/virtual/block/dm-0 (block)
UDEV  [150.413142] remove   /devices/virtual/block/dm-0 (block)
UDEV  [150.413182] remove   /devices/virtual/block/dm-0 (block)
UDEV  [150.430302] change   /devices/virtual/block/md127/md127p3 (block)

Solved: I switched to aes-xts-plain64 because the container is larger that 2TiB. Also the -s 128 was wrong.

Last edited by fruitC (2013-07-03 12:08:03)

Offline

Board footer

Powered by FluxBB