11 April 2011 0 Comments

How to test disk performance in Linux

A lot of performance issues can be caused by poor disk performance. Here’s how to test the read and write performance on a Linux system using dd. 1. Write a file 2x the size of the RAM to make sure we get the real write rate. In this example the RAM of the server is [...]

Tags: , ,
7 October 2010 0 Comments

Hobbit doesn’t recognize last apt-get update

After installing the hobbit-plugins package, all my lenny servers were marked red on the hobbit server and the error message was: “Last apt update: 175.7 day(s) ago”. The reason is that the hobbit-client relies on the file: /var/lib/apt/lists/lock but apt isn’t updating that anymore. To fix this I created a cron job to update apt-get [...]

Tags: , , ,
12 August 2010 0 Comments

Debugging logrotate issues

If your log files aren’t automatically rotated by the logrotate program there are probably some errors in the config files located in /etc/logrotate.d. To find out where the error is, run this command: logrotate -d -f /etc/logrotate.conf You will see some debug messages on the console and hopefully a error that will lead you to [...]

Tags: ,