Results 1 to 19 of 19
Thread: kernel upgrade
-
05-21-2004, 02:12 PM #1Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
kernel upgrade
i'm trying to do a kernel upgrade and it failed the system didnt boot
what files can i check to find any error messages from the unsuccessful boot with the new kernel? i cant seem to find any that give any info as to what went wrong
-
05-21-2004, 02:49 PM #2Web Hosting Master
- Join Date
- Dec 2003
- Location
- UK
- Posts
- 658
Assuming a RedHat based system, look in
/var/boot.log
This will show you what happened, if your kernel didn't start, then you'll have to rely on the DC's tech's putting a console on your box and copying the error messages for you.
After making a few silly mistakes (working too late into the night !), you really wish you had a box with a KVM over IP solution :-)Alex Monaghan - Monaghan Consultants Ltd
Web hosting, ADSL, IT & Database consultancy
Custom Web hosting Linux/cPanel (UK or USA servers) or Windows/DotNetPanel (UK only). Reseller accounts also available
-
05-21-2004, 03:31 PM #3Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
ya thats what I figured, but theirs nothin good in the boot.log file so I'm assuming its worse of an error than i though
gonna recompile the kernel and try again
-
05-21-2004, 03:36 PM #4Web Hosting Master
- Join Date
- Dec 2003
- Location
- UK
- Posts
- 658
Make sure you have included the drivers for the correct file system otherwise the kernel can't access the disks :-)
There's a good HowTo for 2.4.26 with grsecurity on WHT if you do a search.Alex Monaghan - Monaghan Consultants Ltd
Web hosting, ADSL, IT & Database consultancy
Custom Web hosting Linux/cPanel (UK or USA servers) or Windows/DotNetPanel (UK only). Reseller accounts also available
-
05-21-2004, 03:39 PM #5Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Originally posted by monaghan
Assuming a RedHat based system, look in
/var/boot.log
This will show you what happened, if your kernel didn't start, then you'll have to rely on the DC's tech's putting a console on your box and copying the error messages for you.
After making a few silly mistakes (working too late into the night !), you really wish you had a box with a KVM over IP solution :-)Giam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
05-21-2004, 03:39 PM #6Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
Originally posted by monaghan
Make sure you have included the drivers for the correct file system otherwise the kernel can't access the disks :-)
There's a good HowTo for 2.4.26 with grsecurity on WHT if you do a search.
I didn't do anything with the modules (this is my first kernel compile) so I'm going back through making sure I do it right this time
-
05-21-2004, 03:51 PM #7Web Hosting Master
- Join Date
- Dec 2003
- Location
- UK
- Posts
- 658
If it's your first compile, you might want to do it on a test rig first !
However, that doesn't mean the live box will go OK, the test rig here compiled & booted 1st time, it took 3 goes to get the live box running :-(
However once the kernel booted, I was able to view the boot.log to identify the fact that I'd spent so long checking the output of the kernel & modules builds, I'd actually forgotten to install the new modules before rebooting - proof that the sysadmin can be as dumb (if not dumber) than the users.
Have fun, I've been compiling kernels since the early days of Sun systems and I still get things wrong !Alex Monaghan - Monaghan Consultants Ltd
Web hosting, ADSL, IT & Database consultancy
Custom Web hosting Linux/cPanel (UK or USA servers) or Windows/DotNetPanel (UK only). Reseller accounts also available
-
05-21-2004, 04:07 PM #8Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
i just dont get it the WHM manual says do this
cp /boot/config-`uname -r` .config
that gives me
cp: cannot stat `/boot/config-2.4.24': No such file or directory
there is no config-2.4.24 file for my kernel boot kernel is this a major issue? make oldconfig still runs
-
05-21-2004, 04:09 PM #9Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
You can't do that. Show us the outputs:
Code:uname -r ls /boot
Giam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
05-21-2004, 04:12 PM #10Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
Code:root@zeus [/lib/modules/2.4.26-grsec]# uname -r 2.4.24
Code:root@zeus [/lib/modules/2.4.26-grsec]# ls /boot ./ initrd-2.4.26-grsec.img System.map-2.4.20-8 ../ kernel.h System.map-2.4.24 boot.0300 lost+found/ System.map-2.4.26-grsec boot.b map vmlinux-2.4.20-30.9 chain.b message vmlinux-2.4.20-31.9 config-2.4.20-30.9 message.ja vmlinux-2.4.20-8 config-2.4.20-31.9 module-info@ vmlinuz@ config-2.4.20-8 module-info-2.4.20-30.9 vmlinuz-2.4.20-30.9 config-2.4.26-grsec module-info-2.4.20-31.9 vmlinuz-2.4.20-31.9 grub/ module-info-2.4.20-8 vmlinuz-2.4.20-8 initrd-2.4.20-30.9.img os2_d.b vmlinuz-2.4.23 initrd-2.4.20-31.9.img quota.user* vmlinuz-2.4.24 initrd-2.4.20-8.img System.map@ vmlinuz-2.4.26-grsec initrd-2.4.23.img System.map-2.4.20-30.9 initrd-2.4.24.img System.map-2.4.20-31.9
-
05-21-2004, 04:16 PM #11Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Copy /boot/config-2.4.20-31.9 to /usr/local/src/linux-2.4.26/ instead.
Code:cd /usr/local/src/linux-2.4.26 make clean && make mrproper rm -f /boot/*2.4.26-grsec* rm -rf /lib/modules/2.4.26-grsec cp /boot/config-2.4.20-31.9 .config
Giam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
05-21-2004, 04:17 PM #12Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
that seems strange to me every other kernel had a config but the one i boot with....
i'll give that a shot thanks so much!
-
05-21-2004, 04:25 PM #13Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Then you got to ask who install 2.4.24 kernel for you
Giam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
05-21-2004, 04:57 PM #14Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
make oldconfig definately ran differently that time...
nohup make bzImage & running well without errors...
now make modules is actually taking longer than 3 seconds too
-
05-21-2004, 05:03 PM #15Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Of course it will take longer than that... far longer than that even you have a high end server
The thing is if you see any errors and you ignore and continue... you are really on your own since you ignore itGiam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
05-21-2004, 05:06 PM #16Junior Guru
- Join Date
- Mar 2004
- Posts
- 248
lol... errors ya i got a few
Code:root@zeus [/usr/local/src/linux-2.4.26]# cat modules.err gamma_dma.c:608:18: warning: #warning list_entry() is needed here radeon_mem.c:135: warning: `print_heap' defined but not used md5sum: WARNING: 1 of 13 computed checksums did NOT match st5481_usb.c: In function `usb_next_ctrl_msg': st5481_usb.c:51: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `usb_ctrl_msg': st5481_usb.c:67: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `usb_ctrl_complete': st5481_usb.c:134: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `usb_int_complete': st5481_usb.c:188: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `st5481_setup_usb': st5481_usb.c:244: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:253: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:263: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `st5481_start': st5481_usb.c:360: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `usb_in_complete': st5481_usb.c:474: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:504: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:510: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:512: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:514: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:522: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c: In function `st5481_start_rcv': st5481_usb.c:609: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_usb.c:612: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_d.c: In function `usb_d_out': st5481_d.c:362: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_d.c: In function `usb_d_out_complete': st5481_d.c:386: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_d.c: In function `dout_start_xmit': st5481_d.c:419: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_d.c:453: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_d.c: In function `st5481_d_l2l1': st5481_d.c:602: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_b.c: In function `usb_b_out': st5481_b.c:122: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_b.c: In function `usb_b_out_complete': st5481_b.c:176: warning: concatenation of string literals with __FUNCTION__ is deprecated st5481_b.c: In function `st5481_b_l2l1': st5481_b.c:367: warning: concatenation of string literals with __FUNCTION__ is deprecated
-
05-21-2004, 05:55 PM #17Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
haha... enjoy hunting or asking your best friend... you know who to ask huh don't you
I am not going to tell you which is which as you screw up a few times will actually help you to remember MORE and LONGER... this is how I learn from the hard wayGiam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
05-21-2004, 06:07 PM #18Web Hosting Master
- Join Date
- Dec 2003
- Location
- UK
- Posts
- 658
Screwing up a kernel compile is not the hard way of learning, formatting the wrong disk is much more fun, not done that for about 10 years, but it makes you learn :-)
Alex Monaghan - Monaghan Consultants Ltd
Web hosting, ADSL, IT & Database consultancy
Custom Web hosting Linux/cPanel (UK or USA servers) or Windows/DotNetPanel (UK only). Reseller accounts also available
-
05-21-2004, 06:09 PM #19Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Originally posted by monaghan
Screwing up a kernel compile is not the hard way of learning, formatting the wrong disk is much more fun, not done that for about 10 years, but it makes you learn :-)
Should I call this blurGiam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::