Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument
@ 2003-09-22 15:49 Tracy R Reed
  2003-09-23  7:12 ` Alasdair G Kergon
  0 siblings, 1 reply; 6+ messages in thread
From: Tracy R Reed @ 2003-09-22 15:49 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

Nobody replied to my last message about the kernel oops and I couldn't
figure it out so I thought I would try upgrading to the latest and
greatest including 2.6.0-test5. I seem to be having some sort of problem
with devmapper not communicating properly with something.

I think I've got the latest everything:

lrwxrwxrwx    1 root     root           20 Sep 20 14:35
/lib/libdevmapper.so -> libdevmapper.so.1.00

home:~# lvdisplay --version
  LVM version:     2.00.07 (2003-09-16)
  Library version: 1.00.05-ioctl-cvs (2003-09-01)
  Driver version:  1.0.6

I've got the latest 2.6, the latest devmapper, the latest lvm userland
tools from sistina... But snaps still don't work.

home:~# lvcreate --size 1G --snapshot --name snap /dev/system/tmp
  device-mapper ioctl cmd 2 failed: Invalid argument
  Couldn't load device 'system-snap'.
  Problem reactivating origin tmp

Now I've got an inactive snap lv and an inactive origin lv. I can remove
the snap lv and reactivate the origin lv and everything is fine.

Any ideas what's wrong with my setup?

-- 
Tracy Reed
http://copilotconsulting.com

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument
  2003-09-22 15:49 [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument Tracy R Reed
@ 2003-09-23  7:12 ` Alasdair G Kergon
  2003-09-23 12:08   ` Kevin Corry
  0 siblings, 1 reply; 6+ messages in thread
From: Alasdair G Kergon @ 2003-09-23  7:12 UTC (permalink / raw)
  To: linux-lvm

On Sat, Sep 20, 2003 at 06:57:57PM -0700, Tracy R Reed wrote:
> I think I've got the latest everything:
> home:~# lvdisplay --version
>   Driver version:  1.0.6
 
> I've got the latest 2.6, the latest devmapper, the latest lvm userland
> tools from sistina... But snaps still don't work.

Firstly, there's some versioning mix-up here, because the driver
in the 2.6 kernels is not 1.0.6.
 
Secondly, snapshots are not available under 2.6 yet, though the
implementation work is well-advanced.

Alasdair
-- 
agk@uk.sistina.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument
  2003-09-23 12:08   ` Kevin Corry
@ 2003-09-23 10:30     ` Joe Thornber
  2003-09-23 12:08       ` Kevin Corry
  2003-09-24  8:01     ` Tracy R Reed
  1 sibling, 1 reply; 6+ messages in thread
From: Joe Thornber @ 2003-09-23 10:30 UTC (permalink / raw)
  To: Kevin Corry; +Cc: linux-lvm, Alasdair G Kergon, Joe Thornber

On Tuesday, September 23, 2003, at 03:24 PM, Kevin Corry wrote:
>
> Do we think the v4 interface has now gotten enough testing to remove 
> the v1
> stuff from 2.6? :)
>

The next step is submit a patch that makes v4 the default.

- Joe

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument
  2003-09-23  7:12 ` Alasdair G Kergon
@ 2003-09-23 12:08   ` Kevin Corry
  2003-09-23 10:30     ` Joe Thornber
  2003-09-24  8:01     ` Tracy R Reed
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin Corry @ 2003-09-23 12:08 UTC (permalink / raw)
  To: linux-lvm, Alasdair G Kergon, Joe Thornber

On Tuesday 23 September 2003 07:11, Alasdair G Kergon wrote:
> On Sat, Sep 20, 2003 at 06:57:57PM -0700, Tracy R Reed wrote:
> > I think I've got the latest everything:
> > home:~# lvdisplay --version
> >   Driver version:  1.0.6
> >
> > I've got the latest 2.6, the latest devmapper, the latest lvm userland
> > tools from sistina... But snaps still don't work.
>
> Firstly, there's some versioning mix-up here, because the driver
> in the 2.6 kernels is not 1.0.6.

Actually, if he didn't select the "ioctl interface version 4" option in the 
kernel config, it will be version 1.0.6.

Do we think the v4 interface has now gotten enough testing to remove the v1 
stuff from 2.6? :)

-- 
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument
  2003-09-23 10:30     ` Joe Thornber
@ 2003-09-23 12:08       ` Kevin Corry
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Corry @ 2003-09-23 12:08 UTC (permalink / raw)
  To: Joe Thornber; +Cc: linux-lvm

On Tuesday 23 September 2003 10:30, Joe Thornber wrote:
> On Tuesday, September 23, 2003, at 03:24 PM, Kevin Corry wrote:
> > Do we think the v4 interface has now gotten enough testing to remove
> > the v1
> > stuff from 2.6? :)
>
> The next step is submit a patch that makes v4 the default.
>
> - Joe

Like this?

-- 
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/


--- a/drivers/md/Kconfig	2003-09-23 10:50:15.000000000 -0500
+++ b/drivers/md/Kconfig	2003-09-23 10:50:05.000000000 -0500
@@ -148,6 +148,7 @@
 config DM_IOCTL_V4
 	bool "ioctl interface version 4"
 	depends on BLK_DEV_DM
+	default y
 	---help---
 	  Recent tools use a new version of the ioctl interface, only
           select this option if you intend using such tools.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument
  2003-09-23 12:08   ` Kevin Corry
  2003-09-23 10:30     ` Joe Thornber
@ 2003-09-24  8:01     ` Tracy R Reed
  1 sibling, 0 replies; 6+ messages in thread
From: Tracy R Reed @ 2003-09-24  8:01 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

On Tue, Sep 23, 2003 at 09:24:44AM -0500, Kevin Corry spake thusly:
> On Tuesday 23 September 2003 07:11, Alasdair G Kergon wrote:
> > On Sat, Sep 20, 2003 at 06:57:57PM -0700, Tracy R Reed wrote:
> > > I think I've got the latest everything:
> > > home:~# lvdisplay --version
> > >   Driver version:  1.0.6
> > >
> > > I've got the latest 2.6, the latest devmapper, the latest lvm userland
> > > tools from sistina... But snaps still don't work.
> >
> > Firstly, there's some versioning mix-up here, because the driver
> > in the 2.6 kernels is not 1.0.6.
> > Secondly, snapshots are not available under 2.6 yet, though the
> > implementation work is well-advanced.
> 
> Actually, if he didn't select the "ioctl interface version 4" option in the 
> kernel config, it will be version 1.0.6.

Ah, I didn't notice that config option or recognize the implications of
it. No snapshots in 2.6 eh? That's unfortunate. I keep trying to find a
working configuration with which to take snapshots and keep coming up
short. I guess I'll just have to wait a while longer. Thanks for the info!

-- 
Tracy Reed
http://copilotconsulting.com

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-09-24  8:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-22 15:49 [linux-lvm] device-mapper ioctl cmd 2 failed: Invalid argument Tracy R Reed
2003-09-23  7:12 ` Alasdair G Kergon
2003-09-23 12:08   ` Kevin Corry
2003-09-23 10:30     ` Joe Thornber
2003-09-23 12:08       ` Kevin Corry
2003-09-24  8:01     ` Tracy R Reed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox