public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Regression: device-mapper cannot open devices with identical uuids anymore
@ 2009-08-31 11:52 Mario 'BitKoenig' Holbe
  2009-09-01 11:54 ` Milan Broz
  0 siblings, 1 reply; 2+ messages in thread
From: Mario 'BitKoenig' Holbe @ 2009-08-31 11:52 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1905 bytes --]

Hello,

somewhere between 2.6.26 and 2.6.30 device-mapper stopped being able to
open multiple devices with the same UUID:

# uname -a
Linux darkside 2.6.30-1-686 #1 SMP Sat Aug 15 19:11:58 UTC 2009 i686 GNU/Linux
# cp -ia /tmp/foo0 /tmp/foo1
# losetup /dev/loop0 /tmp/foo0
# losetup /dev/loop1 /tmp/foo1
# cryptsetup luksOpen /dev/loop0 foo0
Enter LUKS passphrase for /dev/loop0:
key slot 0 unlocked.
Command successful.
# cryptsetup luksOpen /dev/loop1 foo1
Enter LUKS passphrase for /dev/loop1:
key slot 0 unlocked.
[234800.953458] device-mapper: ioctl: device doesn't appear to be in the dev hash table.
Command failed: device-mapper: create ioctl failed: Device or resource busy

This did work in 2.6.26:

# uname -a
Linux abaris 2.6.26-2-686 #1 SMP Fri Aug 14 01:27:18 UTC 2009 i686 GNU/Linux
# cp -ia /tmp/foo0 /tmp/foo1
# losetup /dev/loop0 /tmp/foo0
# losetup /dev/loop1 /tmp/foo1
# cryptsetup luksOpen /dev/loop0 foo0
Enter LUKS passphrase: 
key slot 0 unlocked.
Command successful.
# cryptsetup luksOpen /dev/loop1 foo1
Enter LUKS passphrase: 
key slot 0 unlocked.
Command successful.

Equal preparation-sequence for both tests is:

# dd if=/dev/zero of=/tmp/foo0 bs=1M count=100
# losetup /dev/loop0 /tmp/foo0
# cryptsetup luksFormat /dev/loop0
# losetup -d /dev/loop0

Changing the UUID in the LUKS header of the foo1 image helps to
successfully open the second device, so the issue seems to be closely
related to the identical UUID.

I've stumbled across this issue because I backup crypted devices and
sometimes (not very often :)) I have to have a peek into one of the
backups...


PS: I'm mailing here because my mail doesn't seem to get delivered to
dm-devel@redhat.com.


Thanks for your work & regards
   Mario
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 481 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Regression: device-mapper cannot open devices with identical uuids anymore
  2009-08-31 11:52 Regression: device-mapper cannot open devices with identical uuids anymore Mario 'BitKoenig' Holbe
@ 2009-09-01 11:54 ` Milan Broz
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2009-09-01 11:54 UTC (permalink / raw)
  To: Mario 'BitKoenig' Holbe, linux-kernel

Mario 'BitKoenig' Holbe wrote:
> Hello,
> 
> somewhere between 2.6.26 and 2.6.30 device-mapper stopped being able to
> open multiple devices with the same UUID:

This is not related to kernel at all.

cryptsetup since 1.0.7 just started to set UUID for device and kernel 
device-mapper never allowed device with the same UUID.

See http://code.google.com/p/cryptsetup/issues/detail?id=34
(also for workaround, next version will have --disable-uuid option)

Milan
--
mbroz@redhat.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-01 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31 11:52 Regression: device-mapper cannot open devices with identical uuids anymore Mario 'BitKoenig' Holbe
2009-09-01 11:54 ` Milan Broz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox