install on RHEL 4.8 - kernel module not loading

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

install on RHEL 4.8 - kernel module not loading

Shawn
When I issue the /etc/init.d/mhvtl start command, the following:

[root@pit-nv1 etc]# /etc/init.d/mhvtl start
No kernel module loaded to feed these daemons.

Need mhvtl kernel module version at least 0.18.11

Please see http://sites.google.com/site/linuxvtl2/


I downloaded the stable source mhvtl-2010-11-17.tgz, followed the instructions to build and install the RPMs for RedHat, and then executed the make/make install in the BUILD/mhvtl-0.18/kernel directory.  The commands all complete successfully, and an lsmod shows that the mhvtl module is loaded:

[root@pit-nv1 kernel]# lsmod | grep mhvtl
mhvtl                  30784  0
scsi_mod              120525  7 mhvtl,st,sg,aic7xxx,libata,cciss,sd_mod

But still, even after reboots the error message saying there was no kernel module loaded persists.

Please let me know if there is additional information I can provide that would be helpful.

Thanks in advance,
ShawnM
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Andreas Piesk
do you have a sys-filesystem mounted at /sys?

the init-script (line 310+) checks the module by looking it up in /sys/module.

regards,
-ap
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Shawn
I do have a /sys location, and the mhvtl looks like this:

[root@pit-nv1 /]# ll /sys/module/mhvtl/
total 0
-r--r--r--  1 root root 4096 Nov 29 15:49 refcnt
drwxr-xr-x  2 root root    0 Nov 29 15:49 sections
[root@pit-nv1 /]# ll /sys/module/mhvtl/sections/
total 0
-r--r--r--  1 root root 4096 Nov 29 15:49 __ex_table
-r--r--r--  1 root root 4096 Nov 29 15:49 __param
-r--r--r--  1 root root 4096 Nov 29 15:49 __versions

which doesn't seem to match what the init script is looking for...

SM
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Andreas Piesk
could you run the attached test-skript with 'sh -x b.sh'? it should load the modules on your system and verify the version. unfortunately the version check is not 100% safe, because with no exported version in /sys it has to check the module file which is not necessarily the same as the loaded module.

b.sh
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Mark Harvey
Administrator
Thanks for the 'modinfo -F version' tip..

I didn't know that one existed :)

Cheers
Mark
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Shawn
In reply to this post by Andreas Piesk
bsh.out

output from the script attached.

ShawnM
nia
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

nia
Administrator
my modinfo -F version mhvtl (Gentoo, Fedora and Oracle Linux) does not produce extra characters as shown in ShawnM bsh.out

~ # modinfo -F version mhvtl
0.18.12
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Mark Harvey
Administrator
Can you please post the output of "uname -a" please.

The contents of /sys/modules/mhvtl does not match anything I've seen before.

My laptop running ubuntu:
root@l-034246:~# ls -l /sys/module/mhvtl/
drwxr-xr-x 2 root root    0 2010-12-01 14:40 holders
-r--r--r-- 1 root root 4096 2010-12-01 14:40 initstate
drwxr-xr-x 2 root root    0 2010-12-01 14:40 notes
-r--r--r-- 1 root root 4096 2010-12-01 14:40 refcnt
drwxr-xr-x 2 root root    0 2010-12-01 14:40 sections
-r--r--r-- 1 root root 4096 2010-12-01 14:40 srcversion
-r--r--r-- 1 root root 4096 2010-12-01 14:40 version

root@l-034246:~# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

root@l-034246:~# cat /sys/module/mhvtl/version
0.18.11

A CentOS 5.4 build:
[root@mhvtl ~]# ls -l /sys/module/mhvtl/
total 0
-r--r--r-- 1 root root 4096 Dec  1 14:47 refcnt
drwxr-xr-x 2 root root    0 Dec  1 14:44 sections
-r--r--r-- 1 root root 4096 Dec  1 14:47 srcversion
-r--r--r-- 1 root root 4096 Dec  1 14:44 version
[root@mhvtl ~]# cat /etc/*release
CentOS release 5.4 (Final)
[root@mhvtl ~]# cat /sys/module/mhvtl/version
0.18.11


I'll see if I have any RedHat 4.x builds when I'm in the office tomorrow and check against these.

Cheers
Mark
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Shawn
[root@pit-nv1 ~]# uname -a
Linux pit-nv1.combinenet.com 2.6.9-89.0.23.ELsmp #1 SMP Fri Mar 5 17:56:21 EST 2010 i686 i686 i386 GNU/Linux
[root@pit-nv1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)


I've checked some of the other modules in the /sys/module directory, and their structure is all similar to that of mhvtl.  I also checked another RHEL4 box we have just to make sure something wasn't funky with this server, and it also looked this way.

Thanks for your help,

Shawn
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Andreas Piesk
i don't think it's your box. the Red Hat kernels are heavily patched and some times something goes wrong.

it seems modinfo reports the version together with srcversion. could you please post the complete output of 'modinfo mhvtl'?

@Mark:

how about a version check in vtllibrary? the attached patch against 0.19 shows what i mean. the patch is ugly and designed to fail because it compares 0.18.11 from the module with 0.19 from vtlibrary but OK for testing :)

get_version.patch

regards,
-ap
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Shawn
Andreas,

Here's the output you requested:

[root@pit-nv1 ~]# modinfo mhvtl
filename:       /lib/modules/2.6.9-89.0.23.ELsmp/kernel/drivers/scsi/mhvtl.ko
author:         Eric Youngdale + Douglas Gilbert + Mark Harvey
description:    SCSI vtl adapter driver
license:        GPL
version:        0.18.11 A36644C7C02212413E4D3CE
parm:           dsense:use descriptor sense format(def: fixed)
parm:           every_nth:timeout every nth command(def=100)
parm:           max_luns:number of SCSI LUNs per target to simulate
parm:           num_tgts:number of SCSI targets per host to simulate
parm:           opts:1->noise, 2->medium_error, 4->...
parm:           scsi_level:SCSI level to simulate(def=5[SPC-3])
parm:           add_lu:Initiate adding logical unit defined by: minor, channel, target, lun
vermagic:       2.6.9-89.0.23.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4
depends:        scsi_mod


ShawnM
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Andreas Piesk
yep, looks like version followed by srcversion. try the attached script b.sh.
it gets the version with 'modinfo -F version mhvtl | cut -d" " -f1'. this should work on RHEL4 and shouldn't break anything on kernels with a separate srcversion field.

b.sh

regards,
-ap
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Shawn
Output from script:

[root@pit-nv1 ~]# sh -x b.sh
+ modprobe -q mhvtl opts=
+ '[' 0 -ne 0 ']'
+ '[' -e /sys/module/mhvtl/version ']'
++ modinfo -F version mhvtl
++ cut '-d ' -f1
+ vtlVersion=0.18.11
++ echo 0.18.11
++ cut -d. -f1
+ vtlMajVersion=0
++ echo 0.18.11
++ cut -d. -f2
+ vtlMinVersion=18
++ echo 0.18.11
++ cut -d. -f3
+ vtlRelVersion=11
+ '[' 0 -lt 0 -o 18 -lt 18 -o 11 -lt 11 ']'
+ modprobe -q sg
+ '[' 0 -ne 0 ']'
+ sleep 1


ShawnM
Reply | Threaded
Open this post in threaded view
|

Re: install on RHEL 4.8 - kernel module not loading

Andreas Piesk
please try the attached patch against 0.19 or 0.18. it creates a init script which should work on your RHEL4 box.

mhvtl-initscript.patch

regards,
-ap