The error suggests the chksum of dlmlock in ocfs_dlm.ko not match
the expected one in ocfs2_dlmfs.ko. This should not happen if you are
building both as part of the same build.

Useful commands to debug:

# nm ocfs2_dlm.ko | grep __crc_dlmlock
dce6db76 A __crc_dlmlock
# modprobe --dump-modversions ocfs2_dlmfs.ko | grep dlmlock
0xdce6db76      dlmlock

Notice the matching checksums. The only bummer is that the version of modprobe
shipped with most distros does not appear to have --dump-modversions.
I could only find it in in one shipped with fc6.
ftp://mirrors.kernel.org/fedora/core/6/source/SRPMS/module-init-tools-3.3-0.pre1.4.17.src.rpm

Randy Ramsdell wrote:
Sunil Mushran wrote:
# find /lib/modules/`uname -r` -name \*ocfs\*

What is the output of the above? The error indicates a mismatch
between ocfs2_dlm.ko and ocfs2_dlmfs.ko.

I provided the output of locate which essentially does the same thing
and I also including a long listing of ls to show that the modules were
actually rebuilt today.

ls -l `locate ocfs2` |grep modules |grep 2.6.16.27-0.9-smp

-rw-r--r--  1 root root  970513 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/cluster/ocfs2_nodemanager.ko
-rw-r--r--  1 root root 1932116 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlm.ko
-rw-r--r--  1 root root  361897 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlmfs.ko
-rw-r--r--  1 root root 4580126 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/ocfs2.ko



find /lib/modules/`uname -r` -name \*ocfs\*

/lib/modules/2.6.16.27-0.9-smp/extra/ocfs2
/lib/modules/2.6.16.27-0.9-smp/kernel/fs/ocfs2
/lib/modules/2.6.16.27-0.9-smp/kernel/fs/ocfs2/cluster/ocfs2_user_heartbeat.ko
<---- I really don't know what this module is for.
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlm.ko
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlmfs.ko
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/cluster/ocfs2_nodemanager.ko
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/ocfs2.ko


Randy Ramsdell wrote:
    Man I really can't believe all the issues I have faced getting this
to ocfs2 v.1.2.5 to work and I really APPRECIATE all the input so far.
Does anyone else compile these packages? I do remember that someone
saying  to upgrade the kernel to fix ocfs2 issues or upgrade the
drivers. Using a new kernel to upgrade a driver seems way too excessive
when a simple module upgrade would take care of that.

Here is a new issue I am just found on one of the nodes.
Any thoughts?

/etc/init.d/o2cb start
Mounting configfs filesystem at /sys/kernel/config: OK
Loading module "ocfs2_dlmfs": Unable to load module "ocfs2_dlmfs"
Failed

modprobe ocfs2_dlmfs
FATAL: Error inserting ocfs2_dlmfs
(/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlmfs.ko):
Unknown symbol in module, or unknown parameter (see dmesg)

dmesg
ocfs2_dlmfs: module not supported by Novell, setting U taint flag.
ocfs2_dlmfs: disagrees about version of symbol dlmlock
ocfs2_dlmfs: Unknown symbol dlmlock
ocfs2_dlmfs: disagrees about version of symbol dlm_unregister_domain
ocfs2_dlmfs: Unknown symbol dlm_unregister_domain
ocfs2_dlmfs: disagrees about version of symbol dlm_register_domain
ocfs2_dlmfs: Unknown symbol dlm_register_domain
ocfs2_dlmfs: disagrees about version of symbol dlmunlock
ocfs2_dlmfs: Unknown symbol dlmunlock

lsmod:

jbd                    62880  1 ocfs2
ocfs2_dlm             163080  1 ocfs2
ocfs2_nodemanager     139584  2 ocfs2,ocfs2_dlm
configfs               27536  3 ocfs2,ocfs2_nodemanager


As you can see from the dates, I built this again this mourning.

ls -l `locate ocfs2` |grep modules |grep 2.6.16.27-0.9-smp

-rw-r--r--  1 root root  970513 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/cluster/ocfs2_nodemanager.ko

-rw-r--r--  1 root root 1932116 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlm.ko
-rw-r--r--  1 root root  361897 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/dlm/ocfs2_dlmfs.ko
-rw-r--r--  1 root root 4580126 Apr 18 09:11
/lib/modules/2.6.16.27-0.9-smp/updates/ocfs2/ocfs2.ko



_______________________________________________
Ocfs2-users mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-users


_______________________________________________
Ocfs2-users mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-users

_______________________________________________
Ocfs2-users mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-users

Reply via email to