<br><font size=2 face="sans-serif">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 -&gt; /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 &quot;Invalid module format) whenever I tried to use them. here is some infor.</font>
<br>
<br><font size=2 face="sans-serif">[root@adcdba3t ocfs2]# uname -a</font>
<br><font size=2 face="sans-serif">Linux adcdba3t 2.6.9-5.0.3.ELsmp #1 SMP Sat Feb 19 19:38:02 CST 2005 i686 i686 i386 GNU/Linux</font>
<br>
<br><font size=2 face="sans-serif">[root@adcdba3t ~]# cat /etc/cluster/cluster.conf</font>
<br><font size=2 face="sans-serif">cluster:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; name = rac1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; node_count = 2</font>
<br><font size=2 face="sans-serif">node:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; name = rac1-2t</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cluster = rac1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; number = 0</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ip_address = 10.0.0.1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ip_port = 7777</font>
<br><font size=2 face="sans-serif">node:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; name = rac1-3t</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cluster = rac1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; number = 1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ip_address = 10.0.0.2</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ip_port = 7777</font>
<br>
<br><font size=2 face="sans-serif">[root@adcdba3t ~]# /etc/init.d/o2cb configure</font>
<br><font size=2 face="sans-serif">Configuring the O2CB driver.</font>
<br>
<br><font size=2 face="sans-serif">This will configure the on-boot properties of the O2CB driver.</font>
<br><font size=2 face="sans-serif">The following questions will determine whether the driver is loaded on</font>
<br><font size=2 face="sans-serif">boot. &nbsp;The current values will be shown in brackets ('[]'). &nbsp;Hitting</font>
<br><font size=2 face="sans-serif">&lt;ENTER&gt; without typing an answer will keep that current value. &nbsp;Ctrl-C</font>
<br><font size=2 face="sans-serif">will abort.</font>
<br>
<br><font size=2 face="sans-serif">Load O2CB driver on boot (y/n) [y]:</font>
<br><font size=2 face="sans-serif">Cluster to start on boot (Enter &quot;none&quot; to clear) [rac1]:</font>
<br><font size=2 face="sans-serif">Writing O2CB configuration: OK</font>
<br><font size=2 face="sans-serif">Loading module &quot;usysfs&quot;: Unable to load module &quot;usysfs&quot;</font>
<br><font size=2 face="sans-serif">Failed</font>
<br>
<br><font size=2 face="sans-serif">[root@adcdba3t ~]# modprobe usysfs</font>
<br><font size=2 face="sans-serif">FATAL: Error inserting usysfs (/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/usysfs/usysfs.ko): Invalid module format</font>
<br>
<br><font size=2 face="sans-serif">[root@adcdba3t ~]# modprobe ocfs2</font>
<br><font size=2 face="sans-serif">WARNING: Error inserting usysfs (/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/usysfs/usysfs.ko): Invalid module format</font>
<br><font size=2 face="sans-serif">WARNING: Error inserting ocfs2_nodemanager (/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/ocfs2/ocfs2_nodemanager.ko): Invalid module format</font>
<br><font size=2 face="sans-serif">WARNING: Error inserting ocfs2_dlm (/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/ocfs2/ocfs2_dlm.ko): Invalid module format</font>
<br><font size=2 face="sans-serif">FATAL: Error inserting ocfs2 (/lib/modules/2.6.9-5.0.3.ELsmp/kernel/fs/ocfs2/ocfs2.ko): Invalid module format</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif">In case someone cares, here what I got when make ocfs2 (without hacking into ./vendor/redhat/ocfs2-2.6.9-%.EL.spec)</font>
<br>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/root/ocfs2'</font>
<br><font size=2 face="sans-serif">SPECVER=&quot;vendor/redhat/ocfs2-2.6.9-%.EL.spec&quot;; \</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; SPECVER=&quot;${SPECVER#*ocfs2-2.6.9-}&quot;; \</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; SPECVER=&quot;${SPECVER%.EL.spec}&quot;; \</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; sed -e 's/^%define sver.*%{generic}$/%define sver &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '${SPECVER}'/' &lt; vendor/redhat/ocfs2-2.6.9-EL.spec-generic &gt; vendor/redhat/ocfs2-2.6.9-%.EL.spec</font>
<br><font size=2 face="sans-serif">rpmbuild -bs --define &quot;_sourcedir .&quot; --define &quot;_srcrpmdir .&quot; ./vendor/redhat/ocfs2-2.6.9-%.EL.spec</font>
<br><font size=2 face="sans-serif">error: Failed build dependencies:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; kernel-devel = 2.6.9-%¸þXò!.EL is needed by ocfs2-2.6.9-%¸þXò!.EL-0.99.4-1.i386</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; kernel-smp-devel = 2.6.9-%¸þXò!.EL is needed by ocfs2-2.6.9-%¸þXò!.EL-0.99.4-1.i386</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; kernel-hugemem-devel = 2.6.9-%¸þXò!.EL is needed by ocfs2-2.6.9-%¸þXò!.EL-0.99.4-1.i386</font>
<br><font size=2 face="sans-serif">make: *** [rhel4_%_srpm] Error 1</font>
<br><font size=2 face="sans-serif">rm vendor/redhat/ocfs2-2.6.9-%.EL.spec</font>
<br>
<br><font size=2 face="sans-serif">I have no clues where those &quot;¸þXò!.&quot; came from ...</font>
<br><font size=2 face="sans-serif"><br>
If I ran it manually, i got</font>
<br>
<br><font size=2 face="sans-serif">[root@adcdba3t ocfs2]# rpmbuild -bs --define &quot;_sourcedir .&quot; --define &quot;_srcrpmdir .&quot; ./vendor/redhat/ocfs2-2.6.9-%.EL.spec</font>
<br><font size=2 face="sans-serif">error: line 44: Tag takes single token only: Name: ocfs2-2.6.9-%ò &nbsp; &nbsp; &nbsp; ¸~ò &nbsp; &nbsp; Xrò &nbsp; &nbsp; !.EL</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Jizhong Wang<br>
Database Administrator<br>
269-923-3695<br>
<br>
</font>