could someone please advise?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
modom46
Forum Regular
Forum Regular
Posts: 259
Joined: Mon May 22, 2006 9:52 pm

could someone please advise?

Unread post by modom46 »

Hi,

I ran an update yesterday and there were 3 files that said:
warnings
/etc/localtime created as /etc/localtime.rpmnew
/etc/my.cnf created as /etc/my.cnf.rpmnew
/etc/yum.conf created as /etc/yum.conf.rpmnew
================================

I think these are the new files that were added so they would not override the other files and settings.

Some of the descrepancies are as follows:

/etc/yum.conf has
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
obsoletes=1
#gpgcheck=1
plugins=1
metadata_expire=1800

/etc/yum.conf.rpmnew has these that are different:
[main]
keepcache=0
gpgcheck=1
metadata_expire=1h
==========================

The /etc/localtime is a symbolic link:
lrwxrwxrwx 1 root root 27 Apr 20 21:38 localtime -> /usr/share/zoneinfo/CST6CDT
Would I override this file with the localtime.rpmnew file and setup the symbolic link again?
==========================


I am the most concerned about the [mysql.server] section completely missing in the rpmnew file and the user=mysql being moved from [mysql.server] to the [mysqld] section and also the basedir=/var/lib not being in the my.conf.rpmnew file at all.

my.cnf
[mysqld]
set-variable=local-infile=0 (not in my.cnf.rpmnew)

[mysql.server]
user=mysql
basedir=/var/lib
In the my.cnf.rpmnew there is not a [mysql.server] section and the user=mysql listing is listed in the my.cnf [mysqld] section.
The basedir=/var/lib listing is not listed in the my.cnf.rpmnew file at all.
=======================

My original my.cnf file is:
[mysqld]
#skip-grant-tables
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable=max_connections=300
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

#log=/tmp/my.log

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit=2048
-----------------------

The my.cnf.rpmnew file is:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
==========================


If you could help me understand this better I would really appreciate it.

All my ecommerce stores are running good and not any problems with the settings I have now on these 3 files.

Thank you!
warrenc
Forum User
Forum User
Posts: 41
Joined: Sat May 24, 2008 5:00 pm
Location: VA
Contact:

Unread post by warrenc »

Seems as if your yum, glibc, and mysql-libs packages were updated (automatically?).

Try:

egrep -i 'yum|glibc|mysql-libs' /var/log/yum.log

Or if not:

for i in yum glibc mysql-libs; do rpm -qi $i |egrep 'Name|Date'; done

Either should return dates/times these 3 packages were installed. The rpmnew extension is rpm's friendly way of saying there's a new (config) file for the version you installed, but it's not going to overwrite your existing one without your intervention. It's up to you whether or not you want to do this.

And maybe only update when you are fully prepared to do so:

chkconfig yum-updatesd off
service yum-updatesd stop
modom46
Forum Regular
Forum Regular
Posts: 259
Joined: Mon May 22, 2006 9:52 pm

Unread post by modom46 »

Hi,

This is what I got but is over my head.

[root@godslove ~]# egrep -i 'yum|glibc|mysql-libs' /var/log/yum.log
Dec 06 16:54:17 Updated: glibc-common.i386 2.5-18.el5_1.1
Dec 06 16:54:28 Updated: glibc.i686 2.5-18.el5_1.1
Dec 06 16:54:56 Installed: yum-metadata-parser.i386 1.0-8.fc6
Dec 06 16:56:01 Updated: yum.noarch 3.0.5-1.el5.centos.5
Dec 06 16:56:25 Updated: yum-updatesd.noarch 3.0.5-1.el5.centos.5
Jun 29 17:43:14 Updated: glibc-common.i386 2.5-24
[root@godslove ~]# for i in yum glibc mysql-libs; do rpm -qi $i |egrep 'Name|Date'; done
Name : yum Relocations: (not relocatable)
Release : 9.el5.centos.2.1 Build Date: Sat 21 Jun 2008 08:36:25 PM EDT
Install Date: Sun 29 Jun 2008 05:48:05 PM EDT Build Host: builder16.centos.org
Name : glibc Relocations: (not relocatable)
Release : 24 Build Date: Fri 23 May 2008 11:12:28 PM EDT
Install Date: Sun 29 Jun 2008 05:43:34 PM EDT Build Host: builder15.centos.org


Do these turn off any and all yum updates?
chkconfig yum-updatesd off
service yum-updatesd stop

I wanted to update ... I just don't know about the different settings in the my.cnf and my.cnf.rpmnew files and these values which are not listed in the my.cnf.rpmnew file:
[mysql.server]
user=mysql
basedir=/var/lib
warrenc
Forum User
Forum User
Posts: 41
Joined: Sat May 24, 2008 5:00 pm
Location: VA
Contact:

Unread post by warrenc »

Those new mysql variables are the default anyway I think. You had some minor customizations to your MySQL configuration and I doubt you have any reason to update it.

The information you posted actually kind of conflicts but mostly still leads me to believe this was just an automatic yum update - and yes, those two commands will effectively stop the yum update daemon immediately as well as on future boots. You can configure it to only download, send you mail, etc, but it's really just one more daemon you don't need to be running if you don't need it.

This way you can just 'yum list updates' or 'yum check-update' on the command line when you are ready to look into installing your OS updates. Scott's atomic-yum is pretty nice, too if you prefer the click action for stuff like that.
modom46
Forum Regular
Forum Regular
Posts: 259
Joined: Mon May 22, 2006 9:52 pm

Unread post by modom46 »

Can you tell me exactly what is conflicting?

I always run yum list updates.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

yum.conf and my.cnf have new defaults with the CentOS 5.2 packages. I switched to them (and copied over any local modifications) and all is fine. I wouldn't touch that localtime symlink though.
Lemonbit Internet Dedicated Server Management
modom46
Forum Regular
Forum Regular
Posts: 259
Joined: Mon May 22, 2006 9:52 pm

Unread post by modom46 »

Breun,

Then it is ok to change the my.cnf file according to these values:
In the my.cnf.rpmnew there is not a [mysql.server] section and the user=mysql listing is listed in the my.cnf [mysqld] section.
The basedir=/var/lib listing is not listed in the my.cnf.rpmnew file at all.

I would add user=mysql to the [mysqld] section, remove basedir=/var/lib and completely remove the [mysql.server] section? This is how it has been for a long time now.
[mysql.server]
user=mysql
basedir=/var/lib
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You shouldn't have to do those modifications. Just back up your current configuration and see if things work after moving my.cnf.rpmnew to my.cnf and restarting mysqld. If things don't work you can always go back.
Lemonbit Internet Dedicated Server Management
modom46
Forum Regular
Forum Regular
Posts: 259
Joined: Mon May 22, 2006 9:52 pm

Unread post by modom46 »

Ok thanks!

So far so good!
Post Reply