Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > device-mapper: reload ioctl failed: Invalid argument

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-16-2009   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 1
device-mapper: reload ioctl failed: Invalid argument

I have got a strange error while working through the project....

I am using dmsetup to make flash drive as cache to hard disk by the
below command

/dev/sdb1 --> flash drive
/dev/sda1 ---> hard disk

>>echo start_offset_disk end_offset_disk cache /dev/dsa1 /dev/sdb1 | dmsetup create foo

I am getting following error:
device-mapper: reload ioctl failed: Invalid argument
Command failed

any body have any idea about this...plz reply....

and i am also not sure about the start_offset_disk and
end_offset_disk....presently i am using the values output by fdisk -l
below

>fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x68000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3200 25702400 7 HPFS/NTFS
/dev/sda2 3201 9701 52219282+ 7 HPFS/NTFS
/dev/sda3 9702 16204 52224000 7 HPFS/NTFS
/dev/sda4 16205 19457 26129722+ 5 Extended
/dev/sda5 16205 16452 1992028+ 82 Linux swap / Solaris
/dev/sda6 16453 19457 24137631 83 Linux

Disk /dev/sdb: 4005 MB, 4005527552 bytes
255 heads, 63 sectors/track, 486 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005ce7e

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 487 3911552 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(485, 254, 63) logical=(486, 248, 1


so for example my command goes like this:

>>echo 1 3200 cache /dev/sda1 /dev/sdb1 | dmsetup create foo

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

plz reply Its urgent
ganigaadu is offline  


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:04 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2