[Ocfs2-users] Invalid module format

Jizhong_Wang at whirlpool.com Jizhong_Wang at whirlpool.com
Mon Mar 21 09:31:47 CST 2005


I finally have it compiled/rebuilt on CentOS 4.0 with hard-coded sver in 
/root/ocfs2/vendor/redhat/ocfs2-2.6.9-%.EL.spec and a symbolic link with 
kernel-devel (2.6.9-%.EL-smp-i686 -> 
/usr/src/kernels/2.6.9-5.0.3.EL-smp-i686) with both the latest ocfs2 and 
ocfs2-tools. but I still can not use them, all modules gave me "Invalid 
module format) whenever I tried to use them. here is some infor.

[root at adcdba3t ocfs2]# uname -a
Linux adcdba3t 2.6.9-5.0.3.ELsmp #1 SMP Sat Feb 19 19:38:02 CST 2005 i686 
i686 i386 GNU/Linux

[root at adcdba3t ~]# cat /etc/cluster/cluster.conf
cluster:
        name = rac1
        node_count = 2
node:
        name = rac1-2t
        cluster = rac1
        number = 0
        ip_address = 10.0.0.1
        ip_port = 7777
node:
        name = rac1-3t
        cluster = rac1
        number = 1
        ip_address = 10.0.0.2
        ip_port = 7777

[root at adcdba3t ~]# /etc/init.d/o2cb configure
Configuring the O2CB driver.

This will configure the on-boot properties of the O2CB driver.
The following questions will determine whether the driver is loaded on
boot.  The current values will be shown in brackets ('[]').  Hitting
<ENTER> without typing an answer will keep that current value.  Ctrl-C
will abort.

Load O2CB driver on boot (y/n) [y]:
Cluster to start on boot (Enter "none" to clear) [rac1]:
Writing O2CB configuration: OK
Loading module "usysfs": Unable to load module "usysfs"
Failed

[root at adcdba3t ~]# modprobe usysfs
FATAL: Error inserting usysfs 
(/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/usysfs/usysfs.ko): Invalid 
module format

[root at adcdba3t ~]# modprobe ocfs2
WARNING: Error inserting usysfs 
(/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/usysfs/usysfs.ko): Invalid 
module format
WARNING: Error inserting ocfs2_nodemanager 
(/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/ocfs2/ocfs2_nodemanager.ko): 
Invalid module format
WARNING: Error inserting ocfs2_dlm 
(/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/ocfs2/ocfs2_dlm.ko): Invalid 
module format
FATAL: Error inserting ocfs2 
(/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/ocfs2/ocfs2.ko): Invalid module 
format


In case someone cares, here what I got when make ocfs2 (without hacking 
into ./vendor/redhat/ocfs2-2.6.9-%.EL.spec)

make[1]: Leaving directory `/root/ocfs2'
SPECVER="vendor/redhat/ocfs2-2.6.9-%.EL.spec"; \
        SPECVER="${SPECVER#*ocfs2-2.6.9-}"; \
        SPECVER="${SPECVER%.EL.spec}"; \
        sed -e 's/^%define sver.*%{generic}$/%define sver '${SPECVER}'/' < 
vendor/redhat/ocfs2-2.6.9-EL.spec-generic > 
vendor/redhat/ocfs2-2.6.9-%.EL.spec
rpmbuild -bs --define "_sourcedir ." --define "_srcrpmdir ." 
./vendor/redhat/ocfs2-2.6.9-%.EL.spec
error: Failed build dependencies:
        kernel-devel = 2.6.9-%¸þXò!.EL is needed by 
ocfs2-2.6.9-%¸þXò!.EL-0.99.4-1.i386
        kernel-smp-devel = 2.6.9-%¸þXò!.EL is needed by 
ocfs2-2.6.9-%¸þXò!.EL-0.99.4-1.i386
        kernel-hugemem-devel = 2.6.9-%¸þXò!.EL is needed by 
ocfs2-2.6.9-%¸þXò!.EL-0.99.4-1.i386
make: *** [rhel4_%_srpm] Error 1
rm vendor/redhat/ocfs2-2.6.9-%.EL.spec

I have no clues where those "¸þXò!." came from ...

If I ran it manually, i got

[root at adcdba3t ocfs2]# rpmbuild -bs --define "_sourcedir ." --define 
"_srcrpmdir ." ./vendor/redhat/ocfs2-2.6.9-%.EL.spec
error: line 44: Tag takes single token only: Name: ocfs2-2.6.9-%ò ¸~ò Xrò  
  !.EL



Jizhong Wang
Database Administrator
269-923-3695

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20050321/ab692a74/attachment.html


More information about the Ocfs2-users mailing list