Category: Linux

MegaCli for Debian / Ubuntu

Unfortunately LSI and Dell doesn’t provide the MegaCli tool as source or .deb package, therefor it is not possible (by default) to install MegaCli on Debian servers. I managed to get MegaCli working on a Debian server. Download MegaCli from LSI: # cd ~ # wget “” Unpack the downloaded file: # unzip if […]

hdparm: HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

I just wanted to benchmark the read speed of the hard drives in my server using hdparm, but got the following warning message: HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device I have fixed this by updating hdparm to its newest version: Download, untar and install hdparm: # wget “” -O hdparm.tgz # […]

Howto: RAID status on HP servers

Here is how you can view the status of your RAID configuration and the status of your physical drives. First we have to download and install the hpacucli tool. CentOS: # wget # rpm -ivh hpacucli-8.60-8.0.noarch.rpm Debian: # wget # dpkg -i hpacucli_8.60-8.0_i386.deb Once the tool is installed, start it: # hpacucli HP […]

DirectAdmin: Unable to determine Usertype user.conf needs to be repaired

I jut have installed DirectAdmin, but could not log in to DirectAdmin, I got the following error message: Unable to determine Usertype user.conf needs to be repaired I quickly solved this by running: # cd /usr/local/directadmin # ./directadmin i If this doesn’t solve the problem, let me know and I will assist you.

DirectAdmin and Exim problems: retry time not reached for any host

It took some time, but finally I found a workaround for this problem. Exim was keeping the mails in his queue for an unknown reason for me. In the log file (/var/log/exim/mainlog) I saw the following error message: retry time not reached for any host I don’t know what it means or why the message […]

fix error while loading shared libraries libstdc

Sorry, this article is not available anymore, it got deleted after a server crash. Please feel free to contact me at if you need assistance.

Cannot create database with DirectAdmin

I see a lot of DirectAdmin users who cannot create a mysql database. When you see the following error, I am sure I can help you out: Error connecting to MySQL: Access denied for user ‘da_admin’@’localhost’ (using password: YES) First make sure your mysql root password is working, you can test it out using the […]

Monitoring LSI RAID adapter with mpt-status

I have a few HP and Dell servers I manage that use LSI RAID controllers. To ensure remotely that a hard drive is not failed I was in need of a tool. I found the mpt-status utility, which is a tool for monitoring LSI RAID controllers. However, the installation took some time as I got […]

How to reset the MySQL root password

If you have forgotten the mysql root passwod, you can set a new password if you have root access to the server. 1. Stop MySQL server. # /etc/init.d/mysql stop 2. Start MySQL with –skip-grant-tables option. # mysqld_safe –skip-grant-tables & 3. Connect to MySQL as root. # mysql -u root 4. Set new mysql root password. […]

6 System Monitoring tools for Linux

1. top – Display Linux tasks The top program provides a system summary information as well as a list of tasks currently running. 2. free – Memory usage The free program will display amount of free and used memory in the system. Sample (the option ‘-m’ will show the results in megabytes): # free -m […]