Solved

Applying Centos Updates

Posted on 2013-05-21
3
268 Views
Last Modified: 2013-06-03
Hello Experts,

We have a CentOS release 6.2 server that I need to apply some updates. When I run yum update it shows all the packages that have updates

Transaction Summary
==============================================
Install      27 Package(s)
Upgrade     524 Package(s)

Open in new window


My question is... If I proceed to apply this updates will this upgrade the OS Version? or it
will just apply the update for programs?

Note: This server is dedicated only for Mysql and this is the "Slave".  During the update process is recommended to stop all the sync activity on the Mysql?
0
Comment
Question by:prsn
3 Comments
 
LVL 76

Assisted Solution

by:arnold
arnold earned 100 total points
ID: 39186333
Yes it will update the minor OS version from 6.2 to 6.4

There is no need to stop anything.  the mysql update if an will update mysql 5.1.x to 5.1.69.

yum list updates will list all the individual updates that will apply including kernel updates.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39186383
Yum update apply update for programs and os (packages and kernel in linux terms).

If you want yum to ignore specific mysql -

yum --exclude=mysql\* update

Open in new window

0
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 150 total points
ID: 39187518
The yum command will replace the files on the disk, but in Linux that does NOT mean that running programs will be updated.

For example:
  - If you update the binaries for MySQL with yum, you STILL have to restart the service to actually USE the new MySQL.

NOTE: Some (few) RPM installation modules include checking to see if the service/program is running and restarting them if they are... but that is rather rare.
So, if yum reports that it will be updating MySQL (mysqld), then AFTER yum is done, you would want to run the command
  service mysqld restart

Likewise, if you update your standard libraries or your kernel, it's not a bad idea to just restart the system to make sure you are actually running all of the new versions!

I run into this issue with people updating mail and samba versions all the time... yum says the update is fine, running the program with a -v says says the program is new... but the "new feature doesn't work"... (because the actual running process is still the old one). Restart the service and voila! it works properly!
So, in direct answer to your query -- no, it is not usually necessary to stop Linux services while you update... however, you will want to restart them once the update is completed (and the only... ONLY way to update your running kernel is to reboot).

I hope this explains things... and I wish you luck!

Dan
IT4SOHO
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now