LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-01-2003, 10:57 AM   #1
jamesrh
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
up2date for Kernel update on RH7.3


Hi,
I'm about a medium ability level administrator of a leased RH7.3 server at an ISP. I have a server that's serving about 20 domains for web and email. I'm using the Plesk web server management tool. I ONLY have ssh access over the Internet to my server, but have the ability to remotely powercycle it.

I run up2date manually every day or two, or when I receive a notification from RH, and have so far chosen not to install kernel updates.

At the moment, there appears to be an iptables update that relies on a later version of the kernel to the one I'm using now.

My question is, how reliable is the up2date kernel update system? What is the worst that can happen, and is there anything I can do to prevent against a worse case scenario to ensure that my box is at least bootable afterwards

I currently have kernel 2.4.18-24.7.x and up2date shows 2.4.20 as being the next available one.

Thanks for any advice!

James
 
Old 09-01-2003, 11:23 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You can always go to the RedHat Network website (or any FTP site that has the RedHat RPMs), download the RPM and install it manually.
 
Old 09-01-2003, 01:56 PM   #3
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
Or you could get the kernel form kernel.org, and diy

As for bootable, keep your old kernel so if it fails you can go back
 
Old 09-01-2003, 01:59 PM   #4
jamesrh
LQ Newbie
 
Registered: May 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Joey.Dale
Or you could get the kernel form kernel.org, and diy

As for bootable, keep your old kernel so if it fails you can go back
So if it fails I can go back?

How do I get back to change it if it fails?

A rephrase of my question is:

Is up2date a reasonably reliable method of updating my kernel? I know I can do it manually, but I'd like to use up2date for simplicity and quickness. What problems have people had? Is it reasonably reliable? With the description of my server situation in my first post, should I even been thinking about up2date?
 
Old 09-01-2003, 03:16 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Up2Date will not upgrade the kernel, it will install the new kernel and leave the old kernel on the system.
If you want to remove the old kernel, you will have to do it manually.

So, your Linux box will have both kernel 2.4.18-24.7.x and kernel 2.4.20-20.9
If the new kernel fails for some reason, you can reboot the system and boot with the old kernel.
 
Old 09-01-2003, 03:22 PM   #6
jamesrh
LQ Newbie
 
Registered: May 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mathieu
Up2Date will not upgrade the kernel, it will install the new kernel and leave the old kernel on the system.
If you want to remove the old kernel, you will have to do it manually.

So, your Linux box will have both kernel 2.4.18-24.7.x and kernel 2.4.20-20.9
If the new kernel fails for some reason, you can reboot the system and boot with the old kernel.
And I can choose which kernel I boot from when I only have ssh access?
 
Old 09-01-2003, 04:04 PM   #7
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You will need to edit your bootloader's configuration file (Grub or Lilo) and set the default boot option.
 
Old 09-01-2003, 11:39 PM   #8
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
how do u update the kernel, i tried to do an update with rhn just now and all it does is tell me that i need the newest kernel to install the newest iptables.

how do i get the newest kernel via rhn

note: i know how to do this in gnome but i dont have X on this machine, i need to know how to do it via command-line interface.
 
Old 09-02-2003, 06:00 AM   #9
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
Quote:
note: i know how to do this in gnome but i dont have X on this machine, i need to know how to do it via command-line interface.
as root:
# up2date <enter>

It should give you the option to update the kernel when it scans for updates....unless you are already running a later kernel.

Also, it's important to note that these kernel updates do not include the kernel source rpms, so you will have to go find them manually and install them for your new kernel.
 
Old 09-02-2003, 02:48 PM   #10
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
it doesnt give me the kernel option because the 1st half of the options get cut off and up2date | less or up2date |more does nothing, i even tried up2date > file.txt but that doesnt work either.

i eve tried up2date -u kernel-2.4.20-20.7 and it says "no suck package" and i know i dont have the latest kernel. i tried just compiling the kernel myself from scratch, everything worked except for my network card.
 
Old 09-02-2003, 03:00 PM   #11
summerp
Red Hat
 
Registered: Aug 2003
Location: Raleigh, NC
Distribution: Red Hat
Posts: 4

Rep: Reputation: 0
# up2date -uf kernel

The 'f' is there because by default, the kernel is on your "skipped list" and that forces up2date to overlook that list. You can update any single package the same way (up2date <packagename>). up2date will then install the package and its dependencies ('man up2date').

For changing boot options remotely, if you use grub as your bootloader, check your default boot option in /boot/grub/grub.conf (remember it counts down the stanzas from 0). You can configure which one you would like to start up there via command line before you reboot. For lilo, change /etc/lilo.conf to reflect what you would like changed and re-run lilo.

HTH,
Summer
 
Old 09-02-2003, 03:28 PM   #12
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
To add to the above response, up2date is supposed to update your /boot/grub/grub.conf file. Keep in mind the above entry....and it's always a good idea to check before rebooting.

The worst that can happen....
When you boot your system the kernel won't boot...that's why up2date installs kernel's with rpm -ivh...you should have the instance of the older kernel remain on the system so that you can boot to it. Most of the time, this happens because you have a third party module that needs to be recompiled against the kernel. If you don't have one of those installed, I'd say you don't have much to worry about.
 
Old 09-02-2003, 06:50 PM   #13
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
yea, the -uf kernel worked. i've used up2date to upgrade kernels before but this is just my 1st time doing it without using Gnome (or any form of X).

Thanks for the help.
 
  


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
should i update kernel and kernel utils with up2date? cd1680 Fedora 2 03-13-2005 11:56 AM
update without up2date gocanon Red Hat 6 11-26-2003 10:03 AM
kernel update kills laptop RH7.3 ASUS L3800 Smerk Linux - Distributions 3 01-15-2003 09:23 PM
up2date kernel update in text mode Furtzi Linux - Newbie 2 03-18-2002 06:54 AM
RH7.2 up2date MrGreg Linux - Software 0 11-07-2001 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:09 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
Open Source Consulting | Domain Registration