Updating CentOS and its effect on Nagios
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Updating CentOS and its effect on Nagios
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Updating CentOS and its effect on Nagios
you should be able to just run the following:
Code: Select all
yum update- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: Updating CentOS and its effect on Nagios
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-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Updating CentOS and its effect on Nagios
The easiest thing to do is to remove old unused kernels
Run the following
you will get a list of things like this (yours will vary)
Now to remove the oldest one I can run the following
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
Run the following
Code: Select all
rpm -q kernelCode: 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.i686Code: Select all
yum remove kernel-2.6.32-358.2.1.el6.i686If you have questions along the way, you can post the output of the command you ran