[linux-lvm] LVM2 on 2.4.22. (Fedora core 1 with nptl)

tugg tugg at dial.pipex.com
Fri Nov 21 07:17:02 UTC 2003

Trying to install LVM2 on 2.4.22. (Fedora core 1 with nptl)

Downloaded device mapper (device-mapper-stable.tgz) and LVM2 (LVM2.0-
stable.tgz) from sistina.com. Unpacked to device-mapper.1.00.5 and LVM2.2.00.07.

For device mapper: did configure followed by make install. There is no patch 
for 2.4.22 so I assumed that the kernel was already patched (mistake?). LVM and 
device mapper are already loadable modules, so no need to recompile kernel 
(correct?). Added script to /etc/modules.conf and reboot. DMESG shows LVM 
version 1.0.5+(22/07/2002) module loaded.

pvscan -h gives me the following:

Logical Volume Manager 1.0.3
Heinz Mauelshagen, Sistina Software  19/02/2002 (IOP 10)

pvscan --  scan for physical volumes

pvscan [-d|--debug] {-e|--exported | -n/--novolumegroup} [-h|--help]
	[-s|--short] [-u|--uuid] [-v[v]|--verbose [--verbose]] [--version]
Why is it telling me 1.0.3 when DMESG says 1.0.5+?

dmsetup --version gives me:

Library version:   1.00.05-ioctl-cvs (2003-09-01)
device-mapper: ioctl interface mismatch: kernel(1.0.3), user(4.0.0), cmd(0)
Driver version:    1.0.3

The ioctl interface mismatch message behaves kind of strangely in that it isn't 
written to std error, i.e. dmsetup --version 1> dmsetup.log 2>&1 doesn't write 
the message to dmsetup.log. It still appears on the console. Even more 
bizarrely, if I log in through OpenSSH it doesn't appear in my session - it 
appears on the physical console (i.e. the monitor connected to the server), and 
it does this even when no user is logged on!!! It also doesn't appear in a 
terminal session under X. Is this behaviour 'by design'? I missed the message 
initially and only found it when I physically went to the server...

For LVM:

Did configure and make install. Got the following error message:

device/dev-io.c: In function `dev_get_size':
device/dev-io.c:215: error: `BLKGETSIZE64' undeclared (first use in this 
device/dev-io.c:215: error: (Each undeclared identifier is reported only once
device/dev-io.c:215: error: for each function it appears in.)
make[1]: *** [device/dev-io.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/LVM/LVM2.2.00.07/lib'
make: *** [lib] Error 2

Is this caused by the ioctl mismatch or is there something else going on here? 
If it is a known problem, is there a workaround?

After trying all of the above, found patches for 2.4.22 via mailing list 
archives (2.4.22-dm-1.tar.bz2) and upacked to get directory 2.4.22-dm-1 
containing patch files 00001 through 00016 and INDEX. Used cat to create one 
large patch file (file patches-2.4.22.patch attached) with all the patches 
(mistake?) and did patch --dry-run -p1 
with this file (only dry run, so nothing applied yet). This indicates some 
patches will apply, some are already applied, and quite a few will fail (see 
attached patches-2.4.22.log file). Is this because I installed device mapper 
before the patches, or do these patches just not fit my system? 

Also, HOWTO says I need 1.0.6 or later (I assume this is the driver version, 
not the library version?) - do I need another kernel patch to do that, is it 
included in the patches I am trying to apply, or will that install as part of 

Okay, I admit assuming that 2.4.22 didn't need patches was not clever, but the 
patches aren't anywhere to be found on the sistina.com web site and can only be 
found by trawling the archives for a link hidden in a message!!! So, can anyone 
help me fix this mess and get LVM2 up and running? I would appreciate any help 
or advice that anyone can give. Don't know that 
much about linux (not a kernel hacker...) so please try and keep replies as 
simple as possible :-)

Thanks in advance

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patches-2.4.22.log
Type: application/octet-stream
Size: 10719 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20031121/2e0826b9/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patches-2.4.22.patch
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20031121/2e0826b9/attachment.ksh>

More information about the linux-lvm mailing list