[Ocfs2-users] ocfs2_dlmfs

Randy Ramsdell rramsdell at livedatagroup.com
Thu Apr 19 06:17:28 PDT 2007


Sunil Mushran wrote:
> 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
>
>

Interesting. I do have a version of modprobe that includes the switch.

Anyway, I told my boss that I cannot reliably build ocfs2 v1.2.5 from
one rebuilt server to another at this point. So far it has been a week
of trial and error for something that should really only take a few
minutes each server and it it quite possibly errors on my end. I can
easily build 1.2.4 (after your patches) very quickly on these systems
without error so I have recommended that instead, but I will continue my
troubleshooting and  build of v.1.2.5 later next week.

Once again thanks for your input and help regarding these issues!

Here is my output from both for symbol dlmlock:

# nm ocfs2_dlm.ko | grep __crc_dlmlock
6b106b75 A __crc_dlmlock

and ...

# modprobe --dump-modversions ocfs2_dlmfs.ko | grep dlmlock
0x6b106b75      dlmlock




> 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
>>
>>
>>  




More information about the Ocfs2-users mailing list