All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Testing LVM2
@ 2003-07-13 17:22 Nils Juergens
  2003-07-14 19:30 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Nils Juergens @ 2003-07-13 17:22 UTC (permalink / raw)
  To: Linux LVM Mailing List

Hi,

i'm currently in the process of starting to test the 2.5 linux kernel
series, now that the 2.6-pre are around the corner. While i'm at it and
having set up a box completely for testing (and trying to break) stuff 
i thought i might give lvm2 a try (not that i expect it to break :) ).

Thus, i got LVM2.2.00.03-rc4.tgz and device-mapper.1.00.02-rc3.tgz of the
ftp server.

My question is: Is this stuff supposed to work with the 2.5 kernel series or
do i have to switch to 2.4 to test lvm2? I know that the device-mapper is
included in the 2.5 series, but is it recent enough? Also, are there
different (and thus incompatible) versions of either the device mapper
and/or the device-mapper-libs around?

Trying to compile the above device-mapper after doing

configure --with-kernel-dir=/usr/src/linux-2.5.75

i get (using gcc-3.3 from Debian unstable):

[snipped other make output]
make[1]: Entering directory /root/device-mapper.1.00.02-rc3/lib'
gcc -c -Iioctl -I. -I../include -I/usr/src/linux-2.5.75/include -fPIC -Wall
-Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -O2 -DDM_COMPAT
ioctl/libdevmapper.c -o ioctl/libdevmapper.o
ioctl/libdevmapper.c:55: error: DM_TABLE_LOAD' undeclared here (not in a
function)
ioctl/libdevmapper.c:55: error: initializer element is not constant
ioctl/libdevmapper.c:55: error: (near initialization for _cmd_data_v4[1].cmd')
ioctl/libdevmapper.c:55: error: initializer element is not constant
ioctl/libdevmapper.c:55: error: (near initialization for
_cmd_data_v4[1].version')
ioctl/libdevmapper.c:55: error: initializer element is not constant
ioctl/libdevmapper.c:55: error: (near initialization for _cmd_data_v4[1]')
ioctl/libdevmapper.c:56: error: initializer element is not constant
ioctl/libdevmapper.c:56: error: (near initialization for
_cmd_data_v4[2].version')

[snipped more "initializer element is not constant" and
"SOMETHING_IN_UPPERCASE undeclared here" error messages]

ioctl/libdevmapper.c:648: error: structure has no member named event_nr'
ioctl/libdevmapper.c: In function _flatten':
ioctl/libdevmapper.c:851: error: structure has no member named event_nr'
make[1]: *** [ioctl/libdevmapper.o] Error 1
make[1]: Leaving directory /root/device-mapper.1.00.02-rc3/lib'
make: *** [lib] Error 2

thanks,

Nils

-- 
Nils Juergens  | nils@muon.de | icq 7090774
Having problems sending big files over the net?
Try out Efisto (http://efisto.rnbhq.org).

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

* Re: [linux-lvm] Testing LVM2
  2003-07-13 17:22 [linux-lvm] Testing LVM2 Nils Juergens
@ 2003-07-14 19:30 ` Alasdair G Kergon
  2003-07-15 10:42   ` Nils Juergens
  0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2003-07-14 19:30 UTC (permalink / raw)
  To: Nils Juergens; +Cc: Linux LVM Mailing List

On Mon, Jul 14, 2003 at 12:21:49AM +0000, Nils Juergens wrote:
> configure --with-kernel-dir=/usr/src/linux-2.5.75

Does ./configure *without* the --with-kernel-dir bit work any better?

Alasdair
-- 
agk@uk.sistina.com

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

* Re: [linux-lvm] Testing LVM2
  2003-07-14 19:30 ` Alasdair G Kergon
@ 2003-07-15 10:42   ` Nils Juergens
  2003-07-15 11:25     ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Nils Juergens @ 2003-07-15 10:42 UTC (permalink / raw)
  To: linux-lvm

On Tue, 15.07.03, Alasdair G Kergon <agk@uk.sistina.com> wrote:
> On Mon, Jul 14, 2003 at 12:21:49AM +0000, Nils Juergens wrote:
> > configure --with-kernel-dir=/usr/src/linux-2.5.75
> 
> Does ./configure *without* the --with-kernel-dir bit work any better?

In fact, it does. But using lvm2 does not.

I created a vg with on pv and one lv named "test". Then i create ext3
filesystem on it and mount it. Then i try to create a snapshot of this lv:

root@guldukat:~# lvcreate -s -n snap /dev/vol/test  -L 50M
Rounding up size to full physical extent 52.00 MB
device-mapper ioctl cmd 2 failed: Invalid argument
Couldn't load device 'vol-snap'.
Problem reactivating origin test

dmesg says:

device-mapper: ioctl interface mismatch: kernel(1.0.6), user(4.0.0), cmd(0)
device-mapper: ioctl interface mismatch: kernel(1.0.6), user(4.0.0), cmd(0)
device-mapper: internal error adding target to table
device-mapper: ioctl interface mismatch: kernel(1.0.6), user(4.0.0), cmd(0)
device-mapper: ioctl interface mismatch: kernel(1.0.6), user(4.0.0), cmd(0)
kjournald starting.  Commit interval 5 seconds
EXT3 FS on dm-2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
device-mapper: ioctl interface mismatch: kernel(1.0.6), user(4.0.0), cmd(0)
device-mapper: internal error adding target to table

so i guess i have to update the device-mapper in the kernel.

thanks,

Nils
	
-- 
Nils Juergens  | nils@muon.de | icq 7090774
Having problems sending big files over the net?
Try out Efisto (http://efisto.rnbhq.org).

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

* Re: [linux-lvm] Testing LVM2
  2003-07-15 10:42   ` Nils Juergens
@ 2003-07-15 11:25     ` Alasdair G Kergon
  0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2003-07-15 11:25 UTC (permalink / raw)
  To: Nils Juergens; +Cc: linux-lvm

On Tue, Jul 15, 2003 at 05:41:34PM +0000, Nils Juergens wrote:
> In fact, it does. But using lvm2 does not.
 
> I created a vg with on pv and one lv named "test". Then i create ext3
> filesystem on it and mount it. Then i try to create a snapshot of this lv:

Snapshots are not ported to 2.5 yet.

We'll see if we can make this more obvious from the error messages!

Alasdair
-- 
agk@uk.sistina.com

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

end of thread, other threads:[~2003-07-15 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-13 17:22 [linux-lvm] Testing LVM2 Nils Juergens
2003-07-14 19:30 ` Alasdair G Kergon
2003-07-15 10:42   ` Nils Juergens
2003-07-15 11:25     ` Alasdair G Kergon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.