Tuesday 11 October 2011

linux: sar missing data files

By default, sar will be keeping logs only for ten days so you either back them up or extend the period that sar uses to log rotate.

Files you want to be looking at are two scripts (they are most likely already in your crontab):

/usr/lib64/sa/sa1
/usr/lib64/sa/sa2

linux: error: "x x x" specifies multiple packages

[root@foo ~]# rpm -e mysql-5.0.77-4.el5_6.6
error: "mysql-5.0.77-4.el5_6.6" specifies multiple packages

[root@foo ~]# rpm -qa|grep mysql
mysql-5.0.77-4.el5_6.6
freeradius2-mysql-2.1.7-7.el5
mysql-devel-5.0.77-4.el5_6.6
mysql-devel-5.0.77-4.el5_6.6

[root@foo ~]# rpm -qa --queryformat "%{name}.%{arch}\n"|grep mysql
mysql.i386
freeradius2-mysql.x86_64
mysql-devel.x86_64
mysql-devel.i386
mysql.x86_64

[root@foo ~]# rpm -e mysql-devel.i386

[root@foo ~]# rpm -e mysql.i386

[root@foo ~]# rpm -qa --queryformat "%{name}.%{arch}\n"|grep mysql
freeradius2-mysql.x86_64
mysql-devel.x86_64
mysql.x86_64