Linux
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Linux

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old November 14th, 2006, 12:40 AM
Matt McHenry
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
lvcreate gives 'device-mapper: reload ioctl failed:Invalid argument'

As suggested in your other post, I upgraded my kernel and lvm tools.
Still no luck. :(

# uname -a
Linux localhost 2.6.18-gentoo-r2 #1 SMP PREEMPT Sun Nov 12 18:00:54 EST 2006
i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux

# dmsetup version
Library version: 1.02.10 (2006-09-19)
Driver version: 4.7.0

I don't have an idea why the lvcreate is failing You could try to
interface with device-mapper directly and see what happens. To do that
type:

# echo "0 31457280 linear 8:11 31457664" | dmsetup -vvvv create maingroup-dvd
device-mapper: reload ioctl failed: Invalid argument
Command failed
dm version [16384]
dm create maingroup-dvd [16384]
dm reload maingroup-dvd [16384]
dm remove maingroup-dvd [16384]

Another simple thing to try is bumping up the verbosity; e.g. 'lvcreate
-vvvv -L 15G -n dvd maingroup'. This will give alot of output, so you may
wish to redirect it to a file. Having everything printed can often give
great clues as to the problem.

I think my first message got rejected because of the size of the
output, so instead it's at http://66.93.60.83/~matt/lvcreate.log. To my
untrained eye, things look fine until this point:

# libdm-deptree.c:1370 Adding target: 0 31457280 linear 8:11 31457664
# ioctl/libdm-iface.c:1557 dm table (254:11) [16384]
# ioctl/libdm-iface.c:1557 dm reload (254:11) N [16384]
# ioctl/libdm-iface.c:1574 device-mapper: reload ioctl failed: Invalid
# argument


Matt McHenry
http://www.speakeasy.org/~jerith/
jerith (AT) speakeasy (DOT) org
be052 (AT) scn (DOT) org


linux-lvm mailing list
linux-lvm (AT) redhat (DOT) com

read the LVM HW-T at http://tldp.org/HWT/LVM-HWT/

Reply With Quote
  #2  
Old November 14th, 2006, 01:10 PM
Alasdair G Kergon
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
lvcreate gives 'device-mapper: reload ioctl failed:Invalid argument'

Tue, Nov 14, 2006 at 12:11:02AM -0500, Matt McHenry wrote:
# echo "0 31457280 linear 8:11 31457664" | dmsetup -vvvv create
maingroup-dvd
device-mapper: reload ioctl failed: Invalid argument
Command failed

Now look in your kernel message log for a slightly more detailed error message.

And provide the output of 'pvs -o +dev_size'

Alasdair
--
agk (AT) redhat (DOT) com


linux-lvm mailing list
linux-lvm (AT) redhat (DOT) com

read the LVM HW-T at http://tldp.org/HWT/LVM-HWT/

Reply With Quote
  #3  
Old November 14th, 2006, 01:40 PM
Matt McHenry
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
lvcreate gives 'device-mapper: reload ioctl failed:Invalid argument'

Now look in your kernel message log for a slightly more detailed error
message.

Nov 13 20:03:03 [kernel] device-mapper: table: device 8:11 too small for target
Nov 13 20:03:03 [kernel] device-mapper: table: 254:11: linear: dm-linear: Device lookup failed
Nov 13 20:03:03 [kernel] device-mapper: ioctl: error adding target to table

# pvs -o +dev_size
PV VG Fmt Attr PSize PFree DevSize
/dev/sda10 maingroup lvm2 a- 38.15G 516.00M 38.16G
/dev/sda11 maingroup lvm2 a- 38.15G 23.15G 19.08G
/dev/sda12 maingroup lvm2 a- 19.07G 19.07G 19.07G
/dev/sda6 maingroup lvm2 a- 19.08G 0 19.08G
/dev/sda7 maingroup lvm2 a- 38.15G 0 38.16G
/dev/sda8 maingroup lvm2 a- 76.30G 0 76.31G
/dev/sda9 maingroup lvm2 a- 76.30G 0 76.31G


Matt McHenry
http://www.speakeasy.org/~jerith/
jerith (AT) speakeasy (DOT) org
be052 (AT) scn (DOT) org


linux-lvm mailing list
linux-lvm (AT) redhat (DOT) com

read the LVM HW-T at http://tldp.org/HWT/LVM-HWT/

Reply With Quote
  #4  
Old November 14th, 2006, 01:40 PM
Alasdair G Kergon
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
lvcreate gives 'device-mapper: reload ioctl failed:Invalid argument'

Tue, Nov 14, 2006 at 01:20:57PM -0500, Matt McHenry wrote:
Nov 13 20:03:03 [kernel] device-mapper: table: device 8:11 too small for target

PV VG Fmt Attr PSize PFree DevSize
/dev/sda11 maingroup lvm2 a- 38.15G 23.15G 19.08G
/dev/sda12 maingroup lvm2 a- 19.07G 19.07G 19.07G

So your partition /dev/sda11 now has a size of 19GB but lvm2 thinks it
can use 38GB of it.

Have you edited the partition table?

Alasdair
--
agk (AT) redhat (DOT) com


linux-lvm mailing list
linux-lvm (AT) redhat (DOT) com

read the LVM HW-T at http://tldp.org/HWT/LVM-HWT/

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Linux > lvcreate gives 'device-mapper: reload ioctl failed:Invalid argument'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek