Category: Debian

hpacucli not detecting HP Smart Array Controller

In some cases hpacucli is not detecting the HP Smart Array Controller, in my case it was a HP P420 controller. => ctrl all show Error: No controllers detected. => You can solve this issue by loading the sg module: # modprobe sg You’ll see now that the controller is detected: => ctrl all show […]

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 […]

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 […]

MySQL is not starting/working on Debian 6 + DirectAdmin

I just delivered a brand new server with Debian Squeeze + DirectAdmin, I have got no errors while installing DirectAdmin, but after the installation I noticed that mysql was not running. After some debugging I found the following error: 110530 22:59:40 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data /usr/local/mysql/bin/mysqld: error while loading shared libraries: […]

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. […]

Upgrading Debian (Lenny) to Debian Squeeze

Debian Squeeze (stable) was released on February 6, 2011. 1. First update all packages which are currently installed # apt-get update # apt-get upgrade 2. Open /etc/apt/sources.list and replace all occurrences of lenny with squeeze 3. Update the apt repository # apt-get update 4. Upgrade apt, dpkg and aptitude #¬†apt-get install apt dpkg aptitude 5. […]