LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   device-mapper: reload ioctl failed: Invalid argument (https://www.linuxquestions.org/questions/linux-newbie-8/device-mapper-reload-ioctl-failed-invalid-argument-832675/)

sethusubbiah 09-16-2010 06:03 PM

device-mapper: reload ioctl failed: Invalid argument
 
Hi ,

I installed a new tool called DM-IOBAND, which can monitor the number of read and write calls made to a partition in the disk and also allows setting a bandwidth cap on the read and write made to the disk.

I downloaded a kernel module and used insmod to insert the module. It worked and i did modprobe.

When I gave dmsetup targets | grep ioband
I got ioband v1.14.0

It was fine till that step.

When I try to associate /dev/sda3 with ioband1 :

echo "0 $(blockdev --getsize /dev/sda3) ioband /dev/sda3 1 0 0 none weight 0 :40" | dmsetup create ioband1

I keep getting this error :
device-mapper: reload ioctl failed: Invalid argument
Command failed


Can someone help me out ? Thanks !

Regards,
Sethu

kslen 11-13-2010 12:18 PM

This is a complete shot in the dark on my behalf as I have no experience with dm-ioband. But I have encountered strange results going away simply by using ' instead of " when issuing commands.


All times are GMT -5. The time now is 10:41 PM.