Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have to mount iscsi images to loop.
Yesterday someone with a similar problem asked that already.

The difference is, my iscsi image is splitted into 5 parts.

ls -la
insgesamt 4718592004
-rw-rw-rw- 1 root root 1099511627776 Mai 10 10:20 iSCSI_1_LUN0_000
-rw-rw-rw- 1 root root 1099511627776 Mai 5 11:47 iSCSI_1_LUN0_001
-rw-rw-rw- 1 root root 1099511627776 Mai 5 11:47 iSCSI_1_LUN0_002
-rw-rw-rw- 1 root root 1099511627776 Mai 5 11:47 iSCSI_1_LUN0_003
-rw-rw-rw- 1 root root 433791696896 Mai 5 11:21 iSCSI_1_LUN0_004

size1=$(blockdev --getsz /dev/loop0)
size2=$(blockdev --getsz /dev/loop1)
size3=$(blockdev --getsz /dev/loop2)
size4=$(blockdev --getsz /dev/loop3)
size5=$(blockdev --getsz /dev/loop4)
dmsetup create my-backup << EOF
0 $size1 linear /dev/loop0 0
$size1 $size2 linear /dev/loop1 0
$size1 $size2 $size3 linear /dev/loop2 0
$size1 $size2 $size3 $size4 linear /dev/loop3 0
$size1 $size2 $size3 $size4 $size5 linear /dev/loop4 0
EOF

    device-mapper: reload ioctl failed: Das Argument ist ungültig
    Command failed

In dmesg can see the following:

device-mapper: table: 252:0: 2147483648: unknown target type device-mapper: ioctl: error adding target to table

Can someone give me a hint what I need to do.

share|improve this question
    
I was able to resolve this issue with nbd-client + nbd-server as described [in another thread.][1] [1]: unix.stackexchange.com/questions/56926/… –  Sebastian May 13 at 13:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.