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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx'
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

-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission."

-----------------------------------------------------------------------------------------------------------------------------

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux