Hi, Both packages compiled fine, but I am getting the unknown symbol issue. Maybe I am overlooking something or are there compile time / configure options need to solve this. All the modules were built, installed and I ran a "depmod -aq" just in case. Example on opensuse-windows 10.1: modprobe ocfs2 WARNING: Error inserting ocfs2_nodemanager (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko): Unknown symbol in module, or unknown parameter (see dmesg) WARNING: Error inserting ocfs2_dlm (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko): Unknown symbol in module, or unknown parameter (see dmesg) FATAL: Error inserting ocfs2 (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko): Unknown symbol in module, or unknown parameter (see dmesg) RCR
Jeff Mahoney wrote:> Randy Ramsdell wrote: > >> Hi, > >> > >> Both packages compiled fine, but I am getting the unknown symbol issue. > >> Maybe I am overlooking something or are there compile time / configure > >> options need to solve this. > >> All the modules were built, installed and I ran a "depmod -aq" just in > >> case. > >> > >> > >> Example on opensuse-windows 10.1: > >> > >> modprobe ocfs2 > >> > >> WARNING: Error inserting ocfs2_nodemanager > >> > (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko): > >> Unknown symbol in module, or unknown parameter (see dmesg) > >> WARNING: Error inserting ocfs2_dlm > >> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko): Unknown > >> symbol in module, or unknown parameter (see dmesg) > >> FATAL: Error inserting ocfs2 > >> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko): Unknown > symbol in > >> module, or unknown parameter (see dmesg) > > Can you provide your dmesg? > > -Jeff > > -- > Jeff Mahoney > SUSE Labsocfs2_nodemanager: module not supported by Novell, setting U taint flag. ocfs2_nodemanager: disagrees about version of symbol config_group_init ocfs2_nodemanager: Unknown symbol config_group_init ocfs2_nodemanager: disagrees about version of symbol config_item_get ocfs2_nodemanager: Unknown symbol config_item_get ocfs2_nodemanager: Unknown symbol machine_restart ocfs2_nodemanager: disagrees about version of symbol configfs_unregister_subsystem ocfs2_nodemanager: Unknown symbol configfs_unregister_subsystem ocfs2_nodemanager: disagrees about version of symbol configfs_register_subsystem ocfs2_nodemanager: Unknown symbol configfs_register_subsystem ocfs2_nodemanager: disagrees about version of symbol config_group_init_type_name ocfs2_nodemanager: Unknown symbol config_group_init_type_name ocfs2_nodemanager: disagrees about version of symbol config_item_init_type_name ocfs2_nodemanager: Unknown symbol config_item_init_type_name ocfs2_nodemanager: disagrees about version of symbol config_item_put ocfs2_nodemanager: Unknown symbol config_item_put ocfs2_dlm: module not supported by Novell, setting U taint flag. ocfs2_dlm: Unknown symbol mlog_and_bits ocfs2_dlm: Unknown symbol o2nm_this_node ocfs2_dlm: Unknown symbol o2hb_check_node_heartbeating ocfs2_dlm: Unknown symbol mlog_not_bits ocfs2_dlm: Unknown symbol o2hb_check_local_node_heartbeating ocfs2_dlm: Unknown symbol o2hb_setup_callback ocfs2_dlm: Unknown symbol o2net_send_message_vec ocfs2_dlm: Unknown symbol o2hb_fill_node_map ocfs2_dlm: Unknown symbol o2net_unregister_handler_list ocfs2_dlm: Unknown symbol o2net_send_message ocfs2_dlm: Unknown symbol o2net_register_handler ocfs2_dlm: Unknown symbol o2hb_register_callback ocfs2_dlm: Unknown symbol o2hb_unregister_callback ocfs2: module not supported by Novell, setting U taint flag. ocfs2: Unknown symbol dlm_print_one_lock ocfs2: Unknown symbol mlog_and_bits ocfs2: Unknown symbol o2nm_this_node ocfs2: Unknown symbol dlm_errmsg ocfs2: Unknown symbol mlog_not_bits ocfs2: Unknown symbol dlmlock ocfs2: Unknown symbol o2nm_get_node_by_num ocfs2: Unknown symbol o2nm_get_hb_ctl_path ocfs2: Unknown symbol o2hb_check_local_node_heartbeating ocfs2: Unknown symbol o2hb_setup_callback ocfs2: Unknown symbol dlm_unregister_eviction_cb ocfs2: Unknown symbol dlm_unregister_domain ocfs2: Unknown symbol dlm_register_domain ocfs2: Unknown symbol dlm_register_eviction_cb ocfs2: Unknown symbol o2net_unregister_handler_list ocfs2: Unknown symbol o2net_send_message ocfs2: Unknown symbol dlm_setup_eviction_cb ocfs2: Unknown symbol o2net_register_handler ocfs2: Unknown symbol dlm_errname ocfs2: Unknown symbol o2hb_register_callback ocfs2: Unknown symbol o2hb_unregister_callback ocfs2: Unknown symbol dlmunlock ocfs2: Unknown symbol o2nm_node_put
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Randy Ramsdell wrote:> Hi, > > Both packages compiled fine, but I am getting the unknown symbol issue. > Maybe I am overlooking something or are there compile time / configure > options need to solve this. > All the modules were built, installed and I ran a "depmod -aq" just in > case. > > > Example on opensuse-windows 10.1: > > modprobe ocfs2 > > WARNING: Error inserting ocfs2_nodemanager > (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko): > Unknown symbol in module, or unknown parameter (see dmesg) > WARNING: Error inserting ocfs2_dlm > (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko): Unknown > symbol in module, or unknown parameter (see dmesg) > FATAL: Error inserting ocfs2 > (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko): Unknown symbol in > module, or unknown parameter (see dmesg)Can you provide your dmesg? - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGG616LPWxlyuTD7IRAvasAKCBX5VoYfip5VJwY16CCd5BEFX8iQCfQds4 7lVxz5Elf3Fa/L3i2jVMQSE=7B1A -----END PGP SIGNATURE-----
Randy Ramsdell wrote:> Jeff Mahoney wrote: > >> Randy Ramsdell wrote: >> >>>> Hi, >>>> >>>> Both packages compiled fine, but I am getting the unknown symbol issue. >>>> Maybe I am overlooking something or are there compile time / configure >>>> options need to solve this. >>>> All the modules were built, installed and I ran a "depmod -aq" just in >>>> case. >>>> >>>> >>>> Example on opensuse-windows 10.1: >>>> >>>> modprobe ocfs2 >>>> >>>> WARNING: Error inserting ocfs2_nodemanager >>>> >>>> >> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko): >> >>>> Unknown symbol in module, or unknown parameter (see dmesg) >>>> WARNING: Error inserting ocfs2_dlm >>>> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko): Unknown >>>> symbol in module, or unknown parameter (see dmesg) >>>> FATAL: Error inserting ocfs2 >>>> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko): Unknown >>>> >> symbol in >> >>>> module, or unknown parameter (see dmesg) >>>> >> Can you provide your dmesg? >> >> -Jeff >> >> -- >> Jeff Mahoney >> SUSE Labs >> > ocfs2_nodemanager: module not supported by Novell, setting U taint flag. > ocfs2_nodemanager: disagrees about version of symbol config_group_init > ocfs2_nodemanager: Unknown symbol config_group_init > ocfs2_nodemanager: disagrees about version of symbol config_item_get > ocfs2_nodemanager: Unknown symbol config_item_get > ocfs2_nodemanager: Unknown symbol machine_restart > ocfs2_nodemanager: disagrees about version of symbol > configfs_unregister_subsystem > ocfs2_nodemanager: Unknown symbol configfs_unregister_subsystem > ocfs2_nodemanager: disagrees about version of symbol > configfs_register_subsystem > ocfs2_nodemanager: Unknown symbol configfs_register_subsystem > ocfs2_nodemanager: disagrees about version of symbol > config_group_init_type_name > ocfs2_nodemanager: Unknown symbol config_group_init_type_name > ocfs2_nodemanager: disagrees about version of symbol > config_item_init_type_name > ocfs2_nodemanager: Unknown symbol config_item_init_type_name > ocfs2_nodemanager: disagrees about version of symbol config_item_put > ocfs2_nodemanager: Unknown symbol config_item_put > ocfs2_dlm: module not supported by Novell, setting U taint flag. > ocfs2_dlm: Unknown symbol mlog_and_bits > ocfs2_dlm: Unknown symbol o2nm_this_node > ocfs2_dlm: Unknown symbol o2hb_check_node_heartbeating > ocfs2_dlm: Unknown symbol mlog_not_bits > ocfs2_dlm: Unknown symbol o2hb_check_local_node_heartbeating > ocfs2_dlm: Unknown symbol o2hb_setup_callback > ocfs2_dlm: Unknown symbol o2net_send_message_vec > ocfs2_dlm: Unknown symbol o2hb_fill_node_map > ocfs2_dlm: Unknown symbol o2net_unregister_handler_list > ocfs2_dlm: Unknown symbol o2net_send_message > ocfs2_dlm: Unknown symbol o2net_register_handler > ocfs2_dlm: Unknown symbol o2hb_register_callback > ocfs2_dlm: Unknown symbol o2hb_unregister_callback > ocfs2: module not supported by Novell, setting U taint flag. > ocfs2: Unknown symbol dlm_print_one_lock > ocfs2: Unknown symbol mlog_and_bits > ocfs2: Unknown symbol o2nm_this_node > ocfs2: Unknown symbol dlm_errmsg > ocfs2: Unknown symbol mlog_not_bits > ocfs2: Unknown symbol dlmlock > ocfs2: Unknown symbol o2nm_get_node_by_num > ocfs2: Unknown symbol o2nm_get_hb_ctl_path > ocfs2: Unknown symbol o2hb_check_local_node_heartbeating > ocfs2: Unknown symbol o2hb_setup_callback > ocfs2: Unknown symbol dlm_unregister_eviction_cb > ocfs2: Unknown symbol dlm_unregister_domain > ocfs2: Unknown symbol dlm_register_domain > ocfs2: Unknown symbol dlm_register_eviction_cb > ocfs2: Unknown symbol o2net_unregister_handler_list > ocfs2: Unknown symbol o2net_send_message > ocfs2: Unknown symbol dlm_setup_eviction_cb > ocfs2: Unknown symbol o2net_register_handler > ocfs2: Unknown symbol dlm_errname > ocfs2: Unknown symbol o2hb_register_callback > ocfs2: Unknown symbol o2hb_unregister_callback > ocfs2: Unknown symbol dlmunlock > ocfs2: Unknown symbol o2nm_node_put > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users >Does this help? I cannot get this to run after compile on two different servers. Note: This compile was done exactly like 1.2.4, except for the patches needed on that release. Anyone? Thanks, Randy Ramsdell
eff Mahoney wrote:> > Randy Ramsdell wrote: > >>> > >> Randy Ramsdell wrote: >>> >>>> > >>> Jeff Mahoney wrote: >>>> > >>> >>>> >>>>> > >>>> Randy Ramsdell wrote: >>>>> > >>>> >>>>> >>>>>>> > >>>>>> Hi, >>>>>>> > >>>>>> >>>>>>> > >>>>>> Both packages compiled fine, but I am getting the unknown >>>>>>> > > symbol issue. > >>>>>>> > >>>>>> Maybe I am overlooking something or are there compile time / >>>>>>> > > configure > >>>>>>> > >>>>>> options need to solve this. >>>>>>> > >>>>>> All the modules were built, installed and I ran a "depmod -aq" >>>>>>> > > just in > >>>>>>> > >>>>>> case. >>>>>>> > >>>>>> >>>>>>> > >>>>>> >>>>>>> > >>>>>> Example on opensuse-windows 10.1: >>>>>>> > >>>>>> >>>>>>> > >>>>>> modprobe ocfs2 >>>>>>> > >>>>>> >>>>>>> > >>>>>> WARNING: Error inserting ocfs2_nodemanager >>>>>>> > >>>>>> >>>>>>> > >>>>>> >>>>>>> >>>>> > >>>> >>>>> > > (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko): > >>>>> > >>>> >>>>> >>>>>>> > >>>>>> Unknown symbol in module, or unknown parameter (see dmesg) >>>>>>> > >>>>>> WARNING: Error inserting ocfs2_dlm >>>>>>> > >>>>>> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko): >>>>>>> > > Unknown > >>>>>>> > >>>>>> symbol in module, or unknown parameter (see dmesg) >>>>>>> > >>>>>> FATAL: Error inserting ocfs2 >>>>>>> > >>>>>> (/lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko): Unknown >>>>>>> > >>>>>> >>>>>>> >>>>> > >>>> symbol in >>>>> > > ><snip>> > > > Well, it looks as though you built the modules against a different > > kernel than the one you're running. > > > > -Jeff > > > > -- > > Jeff Mahoney > > SUSE Labs >Yes It does but during the compile I see the process enter into the correct location and the method used was the same for 1.2.4. Here are the steps I used for 1.2.4 and 1.2.5 : ./configure --with-kernel-source=/usr/src/linux ls -l /usr/src: linux -> linux-2.6.16.27-0.6 linux-obj -> linux-2.6.16.27-0.6-obj uname -a : dfb02010313 2.6.16.27-0.6-smp #1 SMP Wed Dec 13 09:34:50 UTC 2006 i686 i686 i386 GNU/Linux make : make[2]: Leaving directory `/root/src/ocfs2-1.2.5/fs/ocfs2/dlm' make -C /lib/modules/2.6.16.27-0.6-smp/build M=/root/src/ocfs2-1.2.5/fs modules make[2]: Entering directory `/usr/src/linux-2.6.16.27-0.6-obj/i386/smp' make -C ../../../linux-2.6.16.27-0.6 O=../linux-2.6.16.27-0.6-obj/i386/smp modules <snip compiling objects> WARNING: "machine_restart" [/root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko] undefined! </snip compiling objects> CC /root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.mod.o LD [M] /root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko CC /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlm.mod.o LD [M] /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlm.ko CC /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlmfs.mod.o LD [M] /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlmfs.ko CC /root/src/ocfs2-1.2.5/fs/ocfs2/ocfs2.mod.o LD [M] /root/src/ocfs2-1.2.5/fs/ocfs2/ocfs2.ko make[2]: Leaving directory `/usr/src/linux-2.6.16.27-0.6-obj/i386/smp'>From this, it appears to be compiling against the correct kernel.make install: <snip> make -C fs install make[1]: Entering directory `/root/src/ocfs2-1.2.5/fs' make -C /lib/modules/2.6.16.27-0.6-smp/build M=/root/src/ocfs2-1.2.5/fs modules_install make[2]: Entering directory `/usr/src/linux-2.6.16.27-0.6-obj/i386/smp' make -C ../../../linux-2.6.16.27-0.6 O=../linux-2.6.16.27-0.6-obj/i386/smp modules_install INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlm.ko INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/dlm/ocfs2_dlmfs.ko INSTALL /root/src/ocfs2-1.2.5/fs/ocfs2/ocfs2.ko DEPMOD 2.6.16.27-0.6-smp Again, it looks like it compiled against correct kernel. Also note that it called "depmod" and that the modules are copied to the correct locations with the To me this all looks legit except that I did not add a configure option for the "smp" part which I have had to do with other packages. E.G. open-iscsi Am I missing something or what changed since last release? Can you compile this and it works ? I will recompile 1.2.4 and see if these steps work there just in case I missed something. Randy Ramsdell
Jeff Mahoney wrote:> > >> WARNING: "machine_restart" > >> [/root/src/ocfs2-1.2.5/fs/ocfs2/cluster/ocfs2_nodemanager.ko] > undefined! > > Well this part is important. You won't be able to use the resultant > module anyway. You'll need to replace that call with > emergency_restart(). machine_restart() doesn't exist in that kernel. >Yes I thought so. There are 2 other compile errors, but I didn't include those as they appear trivial. I fixed the above: replaced machine_restart(NULL) with emergency_restart() (Note the NULL)> >> I will recompile 1.2.4 and see if these steps work there just in case I > >> missed something. > > I'm able to reproduce this locally. It looks like what's happening is > that modprobe is retrieving the ocfs2 module from extra/ but not the > dependencies. It's loading the correct ocfs2.ko module, but loading > ocfs2_nodemanager.ko and ocfs2_dlm.ko from > kernel/fs/ocfs2/{cluster,dlm}. If I move the original modules away, it > works as expected. This is probably a bug in modprobe. > > Alternatively, you can use the SLES10 SP1 kernel, which already has > OCFS2 1.2.5 merged. > > -Jeff > > -- > Jeff Mahoney > SUSE LabsNot sure about this. 1.2.4 compiles and runs fine. I actually move the modules out of "extra" for both 1.2.4 and 1.2.5. cp /lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/cluster/ocfs2_nodemanager.ko /lib/modules/2.6.16.27-0.6-smp/kernel/fs/ocfs2/cluster/ cp /lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlm.ko /lib/modules/2.6.16.27-0.6-smp/kernel/fs/ocfs2/dlm/ocfs2_dlm.ko cp /lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/dlm/ocfs2_dlmfs.ko /lib/modules/2.6.16.27-0.6-smp/kernel/fs/ocfs2/dlm/ocfs2_dlmfs.ko cp /lib/modules/2.6.16.27-0.6-smp/extra/ocfs2/ocfs2.ko /lib/modules/2.6.16.27-0.6-smp/kernel/fs/ocfs2/ocfs2.ko This is the location where suse puts modules for stock kernel so I just deleted the old (in this case was 1.2.4 from a previous install) . I could as easily left them in "extra" and did to test but the modules do not load in either location. How are you able to load the modules, even the work around doesn't work? Basically, if I remove all the ocfs2 modules and replace them with the new compiled 1.2.5 in either location in mod. dir., I still get same errors on loading from init.d script o2cb or manually. I do not see how you are loading them at all or I am not sure about this. "If I move the original modules away, it works as expected." Randy Ramsdell