Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, 29 May 2012

Sar/SysStat Installation and configuration


Sar/SysStat Installation and configuration
=================================

yum install sysstat

Then check the file /etc/cron.d/sysstat .  It should be as given below :

# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A


Permission of this file should be 644, other wise you will get the following error in cron log.

==============
 (*system*) BAD FILE MODE (/etc/cron.d/sysstat)
==============

Another possible error is,

Cannot open /var/log/sa/sa28: No such file or directory

This file will be automatically created after 10 minutes. For testing this, you can execute the following command, which will save the current details.

root /usr/lib64/sa/sa1 1 1

Saturday, 17 March 2012

MySQL installation Error - InnoDB: Error: pthread_create returned 11

Hi,

In the new version of MySQL, after compiling it from source code,i it may not start. While analyzing the error logs if you see the following error :


InnoDB: Error: pthread_create returned 11

Apply this fix :

 ulimit -s unlimited