[dm-devel] RE: Error while creating mapped device...

Manu Tayal manut at mindtree.com
Wed Jun 1 08:28:42 UTC 2005


The version of Linux I am using is 2.4.26 and the version of device-mapper is
1.00.18.

Do let me know if any more information is required.

Thanks
Manu

-----Original Message-----
From: Manu Tayal 
Sent: Wednesday, June 01, 2005 1:54 PM
To: 'dm-devel at redhat.com'
Subject: RE: Error while creating mapped device...

Another piece of information:

I found the logs as:

	Device-mapper: device /dev/hda1 too small for target
	Device-mapper: dm-linear: Device lookup failed
	Device-mapper: error adding target to table

	Device-mapper: device /dev/hda5 too small for target
	Device-mapper: dm-linear: Device lookup failed
	Device-mapper: error adding target to table

So there seems to be some size problem.

	blockdev --getsize /dev/hda1		= 2041137
	blockdev --getsize /dev/hda5		= 1043217

Is there a limitation on the size of the device or is this a bug?

Regards,
Manu.


-----Original Message-----
From: Manu Tayal 
Sent: Wednesday, June 01, 2005 9:51 AM
To: 'dm-devel at redhat.com'
Subject: Error while creating mapped device...



Hi,
I wanted to create a mapped device for all the physical partitions on my
disk. Following is the partition information:

	/dev/hda1		/boot
	/dev/hda2		/
	/dev/hda3		/home
	/dev/hda5		swap

I am using device-mapper to create the mapped device. I execute the following
command:

	#echo 0 $(blockdev --getsize /dev/hda1) linear /dev/hda1 0 
					| dmsetup create hda1

I am doing the same thing for all the devices. I am able to create mapped
devices for /dev/hda2 and /dev/hda3. But /dev/hda1 and /dev/hda5 give me the
following error:

		device-mapper ioctl cmd 9 failed: Invalid argument

I am unable to understand as to why should hda1 and hda5 behave differently.
Any help is appreciated.

Regards,
Manu

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20050601/c783b084/attachment.txt>


More information about the dm-devel mailing list