Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Useful info:

OS: CentOS 5.8 final
Kernel: 2.6.32-042stab056.8

My kernel came prebuilt with the server, I don't know anything about kernels and not a lot about linux however as far as I do know I should have some modules loaded by the kernel.

I came across this problem because I am unable to run iscsi as it is expecting certain modules to be loaded.

lsmod returns nothing.

depmod -a returns:

WARNING: Couldn't open directory /lib/modules/2.6.32-042stab056.8: No such file or directory
FATAL: Could not open /lib/modules/2.6.32-042stab056.8/modules.dep.temp for writing: No such file or directory

I have rebooted and nothing has changed.

Does anyone know why this is happening?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Something is broken. The /lib/modules/2.6.32-042stab056.8 directory should be populated with module files, but it clearly isn't. Chances are your kernel RPM didn't install correctly. I suggest forcibly re-applying it.

share|improve this answer
    
Thanks for confirming my suspicions, however I have no idea what I am doing with this and don't want to break everything. (I am very new to linux and the terminal) is there any walkthrough you know of for doing this? –  George Reith Jun 10 '12 at 21:49
1  
If yum reinstall kernel doesn't do it for you, you're beyond walk-through. –  sysadmin1138 Jun 10 '12 at 21:59
    
yum reinstall kernel installed a different version and my system isn't picking up on it, still thinks it is the old version. I also think the version it installed doesn't support SMP –  George Reith Jun 10 '12 at 22:15
    
@GeorgeReith You'll need a reboot for them to synchronize. When you install a new kernel, the module FILES for the old one go away but modules STILL LOADED are still loaded. When you reboot, it should pick up the new kernel files and modules. –  sysadmin1138 Jun 10 '12 at 22:27
    
I wasn't clear enough, yum reinstall kernel returns Package(s) kernel available, but not installed. so my current kernel version is not in any yum repo. However yum install kernel works and adds the new kernel but doesn't replace the old version even after a reboot. –  George Reith Jun 10 '12 at 22:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.