Do you have a /lib/modules/`uname -r`/build directory? Then you could try:
./configure --prefix=/opt/orangefs
--with-kernel=/lib/modules/`uname -r`/build
Let me know if that works.
Sam Sampson
Omnibond Systems LLC
From: [email protected]
[mailto:[email protected]] On Behalf Of XS LITE
Sent: Sunday, August 05, 2012 4:01 PM
To: [email protected]
Subject: [Pvfs2-users] insmod pvfs2.ko produce a systematic error "Invalid
module format"
Hello,
I'm trying hard to make a test config of OrangeFS. I have spent many nights
to figure out what was going wrong.. but no chance to get it working.
Each attempt (and there were plenty !!) ends with inability to mount the FS,
because the pvfs2.ko module refuse to load into the kernel (2.6.32).
(Ubuntu 10.04 LTS x86 : uname -a Linux ubuntu-server 2.6.32-30-generic-pae
#59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011 i686 GNU/Linux)
insmod: error inserting
'/opt/orangefs/lib/modules/2.6.32.59+drm33.24/kernel/fs/pvfs2/pvfs2.ko': -1
Invalid module format
I have been able to reproduce this error, systematically.
Following is my test setup. Could you please try on your side, and tell me
what should be done to success ? Thanks a lot !!
1. download the virtualbox image of Ubuntu Server 10.04 LTS x86
http://virtualboxes.org/images/ubuntu-server/
2. unzip and open the image with virtualbox :
sudo su root
apt-get update
3. followed the install instruction from OrangeFS doc (and corrected some
typos)
http://www.omnibond.com/orangefs/docs/v_2_8_5/System_Requirements.htm
apt-get install -y gcc flex bison libssl-dev libdb-dev linux-source perl
make
cd /usr/src/
tar -xjf linux-source-2.6.32.tar.bz2
cd linux-source-2.6.32
cp /boot/config-2.6.32-30-generic-pae .config
make oldconfig
make prepare
make modules_prepare
4. followed the build instruction from OrangeFS doc :
http://www.omnibond.com/orangefs/docs/v_2_8_5/Build_OrangeFS.htm
cd /usr/src
wget http://www.orangefs.org/downloads/2.8.6/source/orangefs-2.8.6.tar.gz
tar -xzf orangefs-2.8.6.tar.gz
cd orangefs-2.8.6
./configure --prefix=/opt/orangefs
--with-kernel=/usr/src/linux-source-2.6.32
make
make install
make kmod
---> displays a warning :
WARNING: Symbol version dump /usr/src/linux-source-2.6.32/Module.symvers
is missing; modules will have no dependencies and modversions.
make kmod_prefix=/opt/orangefs kmod_install
5. TRY TO LOAD THE MODULE INTO THE KERNEL :
insmod `find /opt/orangefs -name pvfs2.ko`
--> output the error :
insmod: error inserting
'/opt/orangefs/lib/modules/2.6.32.59+drm33.24/kernel/fs/pvfs2/pvfs2.ko': -1
Invalid module format
Thanks a lot for any help to get this working, as it is making me mad ( I
eventualy recompile the whole kernel, and all modules, but nothing change)
Best regards,
XSlite, from France
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users