LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RHEL4 insmod/modprobe issues (https://www.linuxquestions.org/questions/linux-newbie-8/rhel4-insmod-modprobe-issues-663854/)

t3chn0m0nk3y 08-19-2008 11:34 AM

RHEL4 insmod/modprobe issues
 
I have a bizarre issue. We have a Dell PowerEdge server with RHEL4 up7 installed and working without much issue.

Problem is that we just upgraded from RH9 with a RocketRaid 1740 sata raid controller installed and need it to work perfectly as it is the core of our imaging/scanning system.

I downloaded the latest opensource driver source from highpoint-tech.com, compiled and "insmod rr174x.ko" the driver. It works great.

HOWEVER, on every reboot it disapears and I have to manually rerun "insmod rr174x.ko"

I've also noticed that when I "modprobe rr174x" it gives me the following message, even after insmod has been run and the RAID shows up just ducky.

FATAL: Module rr174x not found.

This is what I've tried:

cp /driverloc/rr174x.ko /lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/scsi/rr174x.ko

didn't work.

added /lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/scsi/rr174x.ko: to /lib/modules/2.6.9-78.0.1.ELsmp/modules.dep directly after the other scsi devices were listed.

This gets the device recognized on boot, BUT breaks GRUB on reboot when an entry is put in the /etc/fstab to mount /dev/sda1 to /RAID (as I need it to be)

any ideas?

-TM

t3chn0m0nk3y 08-19-2008 04:15 PM

Help still needed!
 
I'm hoping someone out there can at least give me some clues, as this system is a backbone to our daily work flow. It's very important that we correct this issue because of the way this system integrates with other servers in our network.

Any help would be greatly appreciated!!

-TM

t3chn0m0nk3y 08-20-2008 08:39 AM

Help!!!!
 
Can no one help me??

Should I post this question in a different section of the forum??????

-TM

t3chn0m0nk3y 08-21-2008 06:34 AM

??
 
I'm quickly loosing my faith in this site. Can no one offer even a shred of advice here??????

-TM

misconfiguration 09-02-2008 12:57 PM

A few questions
 
Hi,

I stumbled upon this thread while researching another issue.

First I need to know if the driver automatically installed a entry in /etc/modprobe.conf. My guess is that there is no reference to this module, thus rendering the automatic load obsolete. If there is an entry in /etc/modprobe.conf I would try to rebuild my dependency list using depmod and rebooting. If that still doesn't work, try a remake of your ramdisk.

Please list cat out /etc/modprobe.conf and post it in this thread.

Also, it may not hurt to probe all of your working kernel modules by issuing;

depmod -a | and reboot.

t3chn0m0nk3y 09-02-2008 01:32 PM

thank you!!
 
Here is the contents of /etc/modprobe.conf

alias eth0 e1000
alias scsi_hostadapter ata_piix
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
alias usb-controller ehci-hcd
alias usb-controller1 ohci-hcd
alias usb-controller2 uhci-hcd

unfortunately I cannot issue the depmod -a && reboot command now since the system is live. I will try it tonight at 5pm when everone goes home.

/etc/redhat-release:

Red Hat Enterprise Linux ES release 4 (Nahant Update 7)

uname -a:

Linux myserver.mydomain.com 2.6.9-78.0.1.ELsmp #1 SMP Tue Jul 22 18:11:48 EDT 2008 i686 i686 i386 GNU/Linux

Also the driver in question can be viewed here:

http://www.highpoint-tech.com/USA/bios_rr1740.htm

THANK YOU!!

misconfiguration 09-02-2008 01:50 PM

Here is the thing, I see no reference to your module rr174x in /etc/modprobe.conf, this could be an issue. I'm sorry that I didn't take in consideration that your system is in production, generally posts of this nature would reside in the Enterprise Linux section of the forums. I understand the system has to stay up, issuing depmod -a will not bring your system down, so it will not hurt to probe all modules and rebuild a dependency list; I would advise to do this now.

About adding an entry to this module in /etc/modprobe.conf, this is generally quite easy besides one little tricky part. You need to know which slot the SCSI card is that you are working with.

You will need to determine where the card is physically attached on the server, using the conventional computer counting method (0=1, 1=2 etc.) and set your scsi_hostadapter and reference your module. ( A good way to check and see where this is install is by a long-listing on the /proc/scsi/ directory.)

Lets say the card is in the second PCI slot on the server, here is how it would work.

/etc/modprobe.conf

# add the following line for your card Y = the integer representing the
# physical connection of this card.
alias scsi_hostadapter_Y rr174x

This will tell the kernel taht hostadapter_Y will use the module rr174x.

Or we could do this they easy sloppy way and add insmod rr174x to /etc/inittab or /etc/rc.d/rc.local :)

misconfiguration 09-02-2008 01:53 PM

I have noticed something else while following your link, you are using RHEL 4, the driver only references the RHEL 5 version; did you build this from source or install the pre-compiled package for RHEL 5?

t3chn0m0nk3y 09-02-2008 02:11 PM

Yes this was built from the opensource edition of the driver.

before I follow your instructions I just want to clarify:

at this moment, because I added the entries into modules.dep the device is being recognized on boot. I know that's a hack, but should I remove those entries before doing this fix? -just looking for clarification because it IS a production box.

the other issue is that the device is not recognized at the time /etc/fstab is ran during boot, even though the device is present at startup. would this work around that or just correct it? Either way ideally I would like to put the entry in the fstab so there are no surprises.

Also i ran depmod -a I will reboot at first opportunity.

thanks!

misconfiguration 09-02-2008 02:22 PM

If you have manually added anything to modules.dep I would personally remove those entries and let depmod handle the proper linking of modules, the modules.dep file is there to ensure the modules are loaded, unloaded and linked in the proper order. Remove your manual entries and run your depmod -a; this will automatically add any needed entries to modules.dep. After all is done and the modules are installed successfully you shouldn't run into the issue in /etc/fstab anymore, ideally we want the modules to be loaded into the kernel before local filesystems are mounted. I am confident this action will help you, if it doesn't we could always create a new ramdisk image while your module is already loaded.

Let me know the outcome, feel free to email me with any questions//concerns.

unSpawn 09-02-2008 03:17 PM

Quote:

Originally Posted by misconfiguration (Post 3267470)
Let me know the outcome, feel free to email me with any questions//concerns.

Please keep discussions in one place (here on LQ, that is) so users who find this thread later on may also benefit from it.

t3chn0m0nk3y 09-02-2008 03:22 PM

OK, I ran depmod -an |grep rr174x and got

/lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/scsi/rr174x.ko: /lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/scsi/scsi_mod.ko
rr174x 0x00001103 0x00001740 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
rr174x 0x00001103 0x00001742 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
alias pci:v00001103d00001740sv*sd*bc*sc*i* rr174x
alias pci:v00001103d00001742sv*sd*bc*sc*i* rr174x

looks good. but then it occured to me, way back when I started having this problem running "modprobe rr174x" on the reboots when it wasnt loading gave me:

FATAL: Module rr174x not found.

But insmod rr174x.ko from the appropriate dir worked fine. out of curiosity I ran modprobe again and it still gives me the error. Bare in mind I have not resrtarted as yet, but this to me seems like a clue-in to why its not loading properly. If Insmod did it's job correctly, it should be showing up.

I did add the following to /etc/modprobe.conf

alias scsi_hostadapter_1 rr174x

which should point at the correct driver, provided it can find it... thoughts?

misconfiguration 09-02-2008 04:22 PM

Yes adding the alias in /etc/modprobe.conf should load the proper driver providing that the module will be able to be found. After the depmod was created I would go ahead and reboot, to ensure everything booted fine. Remember modinfo <module> will give you a more detailed explanation of your loaded modules.

What happens if you do a modprobe -a rr174x, and modprobe -l |grep rr174x?

t3chn0m0nk3y 09-03-2008 01:05 PM

Well, I finally had a chance to reboot the server. unfortunately we are back to square 1.

again during boot it failed on the fstab line to mount /dev/sda1 to /mountpoint citing unrecognized device.

As usual I had to drop to prompt, comment out the line in /etc/fstab and reboot

Then once started go to the dir where I have the .ko mod stored and insmod rr174x.ko (which gives no output, but works.) Out of curiosity I ran modprobe again and received the same FATAL: Module not found error as before.

Then remounted the device and it works fine. However the fact that this has to be done every time there is a reboot is not acceptable. I guess we will have to look into the ramdisk options?

misconfiguration 09-03-2008 02:16 PM

Just to sum things up; currently when the module is loaded and you run modprobe -a and then a modprobe -l |grep rr174x.ko does it still give you the FATAL: error? Also, what directory is the module you're loading located?

Keep in mind that the RAMDISK we will build will pass the module information to the kernel before sysinit is called.

In order to rebuild the RAMDISK, I would advise the following.

1.) Ensure the module rr174x.ko is loaded and working, determine by using lsmod, modprobe and modinfo.
2.) Do the following:

cd /boot
mv initrd-$(uname -r).img initrd-$(uname -r).img.bak # This is for safe keeping
mkinitrd -f initrd-$(uname -r).img $(uname -r)
reboot (when you can schedule the appropriate downtimes)

Please note: until you get this module to properly load into the kernel before /etc/fstab gets called you will continue to have this problem.


All times are GMT -5. The time now is 08:31 PM.