Skip to contentSkip to conversation

dmsetup and 2.6.31 kernel?

linux-lvm Hadmut Danisch 3 participants 3 messages Jan 28, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

just a question:

With a 2.6.31 kernel (ubuntu) I run into the problem that some dmsetup and dmlosetup commands that used to work before do not work anymore.

e.g.

dd if=/dev/zero of=/tmp/testdisk count=1000 dmsetup create xxxtest --table '0 1000 loop /tmp/testdisk 0'

produces

device-mapper: reload ioctl failed: Invalid argument Command failed

an strace shows that all problems are caused by

ioctl(3, DM_TABLE_LOAD, 0x959c430) = -1 EINVAL (Invalid argument)

Even compiling the latest source from your cvs repository does not solve the problem.

Any idea how to solve that problem?

regards
Hadmut

#1 lore raw
Quoted 7 lines · Hadmut Danisch

With a 2.6.31 kernel (ubuntu) I run into the problem that some dmsetup and dmlosetup commands that used to work before do not work anymore.

e.g.

dd if=/dev/zero of=/tmp/testdisk count=1000 dmsetup create xxxtest --table '0 1000 loop /tmp/testdisk 0'

dm-loop target was never in upstream kernel, it is still available only as separate kernel patch.

You had patched kernel previously perhaps?

Milan

#2 lore raw
Quoted 6 lines · Milan Broz
Quoted 5 lines · Hadmut Danisch

With a 2.6.31 kernel (ubuntu) I run into the problem that some dmsetup and dmlosetup commands that used to work before do not work anymore.

e.g.

Quoted 7 lines
Quoted 2 lines

dd if=/dev/zero of=/tmp/testdisk count=1000 dmsetup create xxxtest --table '0 1000 loop /tmp/testdisk 0'

dm-loop target was never in upstream kernel, it is still available only as separate kernel patch.

You had patched kernel previously perhaps?

I think at some point someone was packaging unofficial Ubuntu kernels with the dm-loop patch applied (I got some bugmail from launchpad about it).

Hadmut, is it possible you had one of these installed previously?

Regards,
Bryn.