LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2010, 06:03 PM   #1
wmasry
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Rep: Reputation: 15
How to upgrade my kernel , and saving the old kernel modules


Dears,

I have a huge list of questions regarding the kernel upgrade which i need an answer to please, first my platform is RHEL4 with Nahant update 7 , my kernel is 2.6.9-78.ELhugemem i need to upgrade it and install a fix for a bug with package kernel-hugemem-2.6.9-78.0.1.EL.i686.rpm , my questions is as below.

1 - Will the new kernel make a new initrd file with it or use the old one.
2 - There are already many modified kernel parameters will it be lost or reset after the new kernel upgrade.
3 - Configurations like the network bonding , will it be impacted after the kernel upgrade (I am using network bonding and as you know we propagate some modules to the network in the network bonding configurations)
4 - there is some modules already loaded in the current initrd disk , will this be totally discarded with the new initrd image brought with the new kernel.
5 - What is the difference between 'adding a module to the initial ram disk by rebuilding it' and 'add the module directly in the /etc/modprobe.conf'
 
Old 04-19-2010, 09:34 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Hi,

1. it will generate a new one
2. kernel params in /boot/grub/menu.lst will be copied to the new entry
3. bonding config shouldn't have any issues, it's possible if the detection order of the nic's changes and you don't have HWADDR set in your network config's... but pretty unlikely due to a kernel upgrade.
4. generally not, depending on how the extra modules were added to the initrd image. if you manually unpacked the initrd and modified it you could be in trouble, but if you used mkinitrd you should be fine.
5. you only really add modules to initrd if you need them early on in the boot process (think mass storage), /etc/modprobe.conf is read later on (think network drivers, bonding, etc).

As a side note, /etc/modprobe.conf is deprecated now.. add files under /etc/modprobe.d/

cheers
 
Old 04-20-2010, 09:21 AM   #3
wmasry
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kbp View Post
Hi,

1. it will generate a new one
2. kernel params in /boot/grub/menu.lst will be copied to the new entry
3. bonding config shouldn't have any issues, it's possible if the detection order of the nic's changes and you don't have HWADDR set in your network config's... but pretty unlikely due to a kernel upgrade.
4. generally not, depending on how the extra modules were added to the initrd image. if you manually unpacked the initrd and modified it you could be in trouble, but if you used mkinitrd you should be fine.
5. you only really add modules to initrd if you need them early on in the boot process (think mass storage), /etc/modprobe.conf is read later on (think network drivers, bonding, etc).

As a side note, /etc/modprobe.conf is deprecated now.. add files under /etc/modprobe.d/

cheers

I am a little confused about point four , what is the difference "if i manually unpacked the image and modified it" or "modified it using the mkinitrd" , at the end when installing the new kernel version it will come with the its new initrd image and will totally discard the old one
 
Old 04-20-2010, 08:41 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
mkinitrd will generate an initrd based on arguments and the contents of /etc/modprobe.conf, if you hacked about with the initrd manually then things might not match up. You most likely have nothing to worry about - all that's really needed is mass storage driver and file system drivers and these will be detected. When you say "there is some modules already loaded in the current initrd disk", that doesn't tell us what sort of modules they are, if they're storage related you should be ok.

cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Take (Some) Modules With Me Upon Kernel Upgrade? Geeko-Girl Linux - Kernel 4 03-03-2007 04:11 PM
Modules are not loaded into the kernel, after upgrade! itz2000 Linux - Newbie 15 12-28-2006 03:50 PM
Kernel upgrade: built-in or modules ? sl4ckw4re Slackware 6 07-16-2006 12:22 PM
Modules Gone After Kernel Upgrade Corallis Linux - General 5 07-06-2004 03:34 AM
Missing modules when upgrade kernel 2.6 letdoit Slackware 7 05-26-2004 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration