LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2006, 04:39 PM   #1
simeoa
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
NIS broken with kernel upgrade


Hello,

I installed CentOS 3.4 which has kernel 2.4.21-27 on the distro cd's. I did a full yum update which brought the system up to CentOS 3.6 with kernel 2.4.21-37. Everything works fine with this. I then downloaded the latest 2.4.32 kernel src, created a .config file from /boot/config-2.4.21-37.ELsmp and
proceeded with makeing a new kernel with...

make dep
make clean
make bzImage
make modules
make modules_install
mkinitrd -v /boot/initrd-2.4.32.img 2.4.32
make install

After booting with the new kernel, nslookup has a
segmentation fault and ypbind can not start as it can
not locate a NIS domain server. Booting off the prior
kernels everything works fine.

Can anyone give me a hint here why it doesn't work on 2.4.32? I can not go to a kernel 2.6 at this time.

I haven't been able to build a 2.4.32 kernel on CentOs 4.x which is why I went to version 3.4 with the OS.

thank you,
Allan
 
Old 04-27-2006, 06:50 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
First CentOS 3 is now at 3.7 and the kernel is at 2.4.21-40 but that's beside the point.

Second using a Red Hat supplied kernel config file is only a starting point you need to configure the vanilla kernel.org further, do this while your in 'make menuconfig' or 'make config' or 'make xconfig' or whichever you choose use.

Third the steps are;

make mrproper
make oldconfig
make menuconfig (this is what Red Hat recommends, see link below)
make dep
make clean
make bzImage
make modules_install
make install

Notice I used 'make menuconfig' this is where and when you adjust or tweak the configuration for your hardware and adjust or fix any missing parts (like the network section) of the configuration.

Finally notice I did not use 'mkinitrd -v /boot/initrd-2.4.32.img 2.4.32' because there is no reason to, the 'make install' command does this and more.

You may find that reading will help also;
http://www.redhat.com/docs/manuals/e...dularized.html
 
Old 04-28-2006, 07:50 AM   #3
simeoa
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the response. Strange yum didn't pick up 3.7 for the update.

Anyway, I thought copying over the prior config file from the current booted kernel would put the same options in the new kernel build by doing a make oldconfig and ask questions that have new parameters not built in to the prior kernel????? I use make menuconfig also but didn't think it was needed since I already have a .config file from a prior kernel, not that I have a clue right now what wouldn't be configured in it since the network card is up and I can get to the system, just nslookup and NIS isn't working.
 
Old 04-28-2006, 08:15 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Red Hat kernels and the associated config files do not matchup exactly to vanilla kernels. They are OK to get a starting point for building, but you need to check, verify and adjust. Red Hat and others are known to tweak(backport, add patches and other changes) that are not normally found with the standard kernel.org sources.
 
Old 04-28-2006, 08:55 AM   #5
simeoa
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Fixed: After searching the web, I saw a blip saying rename /lib/tls to /lib/tls.disabled. Did that, rebooted system and now I'm able to use
the 2.4.32 kernel. nslookup and NIS works fine now.

thanks,
Allan
 
  


Reply



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
broken upgrade mbreith Linux - Software 2 02-08-2006 03:46 PM
Broken X after upgrade barkers Debian 3 10-20-2005 09:36 AM
iwlist broken by kernel upgrade....Sort of Hangdog42 Linux - Wireless Networking 2 09-14-2005 08:17 PM
System Down: Broken LILO after failed kernel upgrade. Please help! Yalla-One Linux - Software 1 03-30-2005 03:53 PM
gbde broken after upgrade. dica *BSD 0 11-30-2004 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:47 PM.

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
Open Source Consulting | Domain Registration