Page 1 of 1

Updating CentOS and its effect on Nagios

Posted: Fri Sep 22, 2017 3:14 pm
by snapon_admin
Currently we're sitting on CentOS version 6.5. If I wanted to upgrade that to 6.9 (I believe that's the latest) How would I go about doing that with the most minimal risk to our Nagios install? I apologize for such a generic and likely simple question, but until I took on this project I had almost no Linux experience and even now pretty much all of my current experience has been self taught. Thanks for any assistance you can provide.

Re: Updating CentOS and its effect on Nagios

Posted: Fri Sep 22, 2017 3:16 pm
by scottwilkerson
you should be able to just run the following:

Code: Select all

yum update

Re: Updating CentOS and its effect on Nagios

Posted: Fri Sep 22, 2017 3:26 pm
by snapon_admin
What's the best way to expand /boot without breaking everything? Says I need 20M more in /boot.

Code: Select all

[root@lisl-ngos-01-pv var]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      197G  164G   23G  88% /
tmpfs                 7.8G     0  7.8G   0% /dev/shm
/dev/sda1              97M   83M  9.0M  91% /boot
tmpfs                 500M   34M  467M   7% /var/nagiosramdisk
You have new mail in /var/spool/mail/root

Re: Updating CentOS and its effect on Nagios

Posted: Fri Sep 22, 2017 3:52 pm
by scottwilkerson
The easiest thing to do is to remove old unused kernels

Run the following

Code: Select all

rpm -q kernel
you will get a list of things like this (yours will vary)

Code: Select all

kernel-2.6.32-358.2.1.el6.i686
kernel-2.6.32-431.23.3.el6.i686
kernel-2.6.32-504.23.4.el6.i686
kernel-2.6.32-573.1.1.el6.i686
kernel-2.6.32-573.18.1.el6.i686
Now to remove the oldest one I can run the following

Code: Select all

yum remove kernel-2.6.32-358.2.1.el6.i686
And this will free space on the root partition.

If you have questions along the way, you can post the output of the command you ran