2011/9/14 Ann Davis
Hi,
On 9/14/2011 at 02:25 PM, in message
, Ciro Iriarte wrote: 2011/9/14 Ann Davis : Hi, On 9/14/2011 at 09:04 AM, in message
, Ciro Iriarte wrote: Hi, I'm experimenting with kmp packages, the thing is that if the version don't match exactly the version of the kernel I can't load them... Current kernel installs modules in /lib/modules/2.6.32.45-0.3-pae, but my OBS generated kmp puts them in /lib/modules/2.6.32.45-1-pae/updates. In that situation, modprobe fails with "ERROR: modinfo: could not find module <name>".
I tought kmp could handle minor version changes in kernel, although in this case I've built the kmp with that exact same target kernel, OBS is the one changing the release numbers..
I assume you're building against SLES 11 SP1...? KMP should be able to handle this change as long as the symsets required by your KMP are satisfied by the running kernel. When the KMP is installed, you should get a /lib/modules/2.6.32.45-0.3-pae/updates/weak-updates/<driver-name> link that points to /lib/modules/2.6.32.45-1-pae/updates/<driver-name>. Do you get this link?
Regards,
Ann
Yes, I'm recompiling ip_vs included on HAE with latest kernel update available...
glb1:~ # rpm -ql cluster-network-kmp-pae /lib/modules/2.6.32.45-1-pae /lib/modules/2.6.32.45-1-pae/updates /lib/modules/2.6.32.45-1-pae/updates/ipvs /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_dh.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_ftp.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_lblc.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_lblcr.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_lc.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_nq.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_rr.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_sed.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_sh.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_wlc.ko /lib/modules/2.6.32.45-1-pae/updates/ipvs/ip_vs_wrr.ko /lib/modules/2.6.32.45-1-pae/updates/netfilter /lib/modules/2.6.32.45-1-pae/updates/netfilter/ipt_CLUSTERIP.ko
glb1:~ # find /lib/modules/$(uname -r) -iname "*updates*" /lib/modules/2.6.32.45-0.3-pae/weak-updates /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates
There are no links for ip_vs.ko after installing kmp package.
The above looks fine, but it doesn't indicate whether there are any files or links in /lib/modules/$(uname -r)/weak-updates/updates/. What is the output of "find /lib/modules/$(uname -r)/weak-updates/updates/? There should be links here.
Note that the links are created by the kmp postinstall, so they won't appear in "rpm -ql cluster-network-kmp-pae".
If there are no links in /lib/modules/$(uname -r)/weak-updates/updates/, then what is the output of "rpm -q --scripts cluster-network-kmp-pae"? This should show the postinstall script that makes the links.
Thanks,
Ann
Regards,
Didn't want to clutter your script with the output :) glb1:~ # find /lib/modules/$(uname -r)/weak-updates -ls 56528 0 drwxr-xr-x 4 root root 96 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates 56531 0 drwxr-xr-x 3 root root 80 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/extra 56532 0 drwxr-xr-x 3 root root 104 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/extra/hp-nx_nic 56535 0 lrwxrwxrwx 1 root root 58 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/extra/hp-nx_nic/nx_xport.ko -> /lib/modules/2.6.32.24-0.2-pae/extra/hp-nx_nic/nx_xport.ko 56533 0 drwxr-xr-x 2 root root 80 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/extra/hp-nx_nic/driver 56534 0 lrwxrwxrwx 1 root root 63 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/extra/hp-nx_nic/driver/nx_nic.ko -> /lib/modules/2.6.32.24-0.2-pae/extra/hp-nx_nic/driver/nx_nic.ko 56529 0 drwxr-xr-x 5 root root 216 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates 56543 0 drwxr-xr-x 2 root root 80 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/hp-be2net 56544 0 lrwxrwxrwx 1 root root 58 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/hp-be2net/be2net.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/hp-be2net/be2net.ko 56542 0 lrwxrwxrwx 1 root root 48 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/e1000e.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/e1000e.ko 56536 0 drwxr-xr-x 3 root root 72 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/drivers 56537 0 drwxr-xr-x 3 root root 72 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/drivers/net 56538 0 drwxr-xr-x 2 root root 112 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/drivers/net/mlx4 56539 0 lrwxrwxrwx 1 root root 68 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/drivers/net/mlx4/mlx4_core.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/drivers/net/mlx4/mlx4_core.ko 56540 0 lrwxrwxrwx 1 root root 66 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/drivers/net/mlx4/mlx4_en.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/drivers/net/mlx4/mlx4_en.ko 56530 0 lrwxrwxrwx 1 root root 45 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/tg3.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/tg3.ko 56545 0 drwxr-xr-x 2 root root 80 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/hp-be2iscsi 56546 0 lrwxrwxrwx 1 root root 62 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/hp-be2iscsi/be2iscsi.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/hp-be2iscsi/be2iscsi.ko 56541 0 lrwxrwxrwx 1 root root 47 Sep 13 15:58 /lib/modules/2.6.32.45-0.3-pae/weak-updates/updates/e1000.ko -> /lib/modules/2.6.32.24-0.2-pae/updates/e1000.ko glb1:~ # rpm -q --scripts cluster-network-kmp-pae postinstall scriptlet (using /bin/sh): nvr=cluster-network-kmp-pae-1.4_2.6.32.45_1-4.4 wm2=/usr/lib/module-init-tools/weak-modules2 if [ -x $wm2 ]; then /bin/bash -${-/e/} $wm2 --add-kmp $nvr fi preuninstall scriptlet (using /bin/sh): nvr=cluster-network-kmp-pae-1.4_2.6.32.45_1-4.4 rpm -ql $nvr | sed -n '/\.ko$/p' > /var/run/rpm-$nvr-modules postuninstall scriptlet (using /bin/sh): nvr=cluster-network-kmp-pae-1.4_2.6.32.45_1-4.4 modules=( $(cat /var/run/rpm-$nvr-modules) ) rm -f /var/run/rpm-$nvr-modules if [ ${#modules[*]} = 0 ]; then echo "WARNING: $nvr does not contain any kernel modules" >&2 exit 0 fi wm2=/usr/lib/module-init-tools/weak-modules2 if [ -x $wm2 ]; then printf '%s\n' "${modules[@]}" | /bin/bash -${-/e/} $wm2 --remove-kmp $nvr fi Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org