Archive for the ‘CentOS’ Category.

Kloxo lxadmin reset password

To reset lxadmin, you can do through SSH with just two commands.

cd /usr/local/lxlabs/lxadmin/httpdocs
lphp.exe ../bin/common/resetpassword.php master mypassword


Force fsck on reboot

Sometimes if you suspect your file system is corrupted, you might want to run fsck to check against the file system. You just need to create a simple file at the root partition.

touch /forcefsck

Simple and easy =)

Manager of pid-file quit without updating file

[adserver1:~]# service mysql start
Starting MySQL..Manager of pid-file quit without updating file [FAILED]

A silly mistake by me as I forget to disable the selinux after a fresh installation of a ad server =)

Hope this helps …

Dell: No controllers found.

I am running some random check on the system that I handle. One of the Dell server controller is undetectable for unknown reason.

[svr3:/root]# omreport storage controller
No controllers found.

Before you start to panic, run the following command

modprobe mptctl
/etc/init.d/dataeng restart

Now try to execute the controller status command again.

[svr3:/root]# omreport storage controller
Controller SAS 6/iR Adapter (Slot 1)

ID : 0
Status : Ok
Name : SAS 6/iR Adapter
Slot ID : PCI Slot 1
State : Ready
Firmware Version :
Minimum Required Firmware Version : Not Applicable
Driver Version : 3.04.05
Minimum Required Driver Version : Not Applicable
Number of Connectors : 2

Hope this helps… =)

NTFS read/write in Linux

Accessing NTFS parition via Linux is pretty simple. Here is the steps to get it running in less than 10 mins 🙂

Let’s install some basic stuff.

yum install gcc gcc-c++ make kernel-devel

Setup Fuse

tar zxvf fuse-2.7.4.tar.gz
cd fuse-*
make install

Next, download NTFS-3G from here

tar zxvf ntfs-3g-2009.1.1.tgz
cd ntfs-3g-*
make install

Last but not least

modprobe fuse
mkdir /windows
 mount -t ntfs-3g /dev/sdb1 /windows

You can then read/write your windows partition from /windows 😉

Hope this helps … 🙂

Dell OMSA and R300 issue

Well, today I was deploying my Dell R300 happily when I run into some trouble.

I setup Dell OpenManage Server Administrator (OMSA) based on the instructions here.

wget -q -O - | bash

After which, I execute this command but it complain that “No package srvadmin-all available”.

yum install srvadmin-all

After 1 hour of troubleshooting, I found a way to install OMSA.

The latest version at this point of writing for OSMA is 5.5, I have to force to install 5.4.1 first.

wget -q -O - | bash
yum install srvadmin-all

This will works for now. Grab a coffee and wait for it to finish installing first.

After you have installed 5.4.1, let’s upgrade to 5.5 now.

cd /etc/yum.repos.d/
sed -ie 's#OMSA_5.4.1#latest#' dell-hw-specific-repository.repo dell-hw-indep-repository.repo

Before you update, let’s make sure the srvadmin services is not running first. status

Now, let’s update now and check the latest version 🙂

yum update
rpm -qa|grep srvadmin-all

Expected result:

[svr3:/root]# rpm -qa|grep srvadmin-all

Let’s start your OMSA and ready to go. start

Visit your OMSA at https://IP-ADDRESS:1311/

Enjoy and hope this helps…

Bad Move!

Today when I am deploying openvz machine, I activate the Linux Quota as I have some shell users throwing files on the machine. As such, this cause some issues when I reboot the machine (I always do this to simulate a remote reboot to see how well does the system react to keyboard errors and etc…)

After a successful reboot, I look at the Container status and I’m shocked to see all of the container are stopped. I try to start it up but I got the following error.

[svr2:/root]# vzctl start 210
Starting container …
vzquota : (error) Quota on syscall for id 210: File exists
vzquota on failed [3]

Immediately, I turn off the quota and remount the partition without any usrquota,grpquota. Bad move to activate Linux Quota on the host node as openvz has it’s own quota system running to keep track of disk space used by each of the container.

I guess I just need to create a VPS just to store my shell users 😉

Hope this helps…

88E8056 PCI-E Gigabit Ethernet Controller

I got a server yesterday and the onboard driver does not seems to work with CentOS and I found out that this require manual installations of the network driver to get it working.

02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
Subsystem: ASUSTeK Computer Inc. Unknown device 826e
Flags: bus master, fast devsel, latency 0, IRQ 145
Memory at fbefc000 (64-bit, non-prefetchable) [size=16K]
I/O ports at d800 [size=256]
Expansion ROM at fbec0000 [disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [e0] Express Legacy Endpoint IRQ 0

You need to get yourself on the internet first, so you can slot in a PCI network card for the time being while you load the drivers.

Download the driver from

Install the tools required to compile
yum install gcc gcc-c++ kernel-devel patch which make bzip2

Unzip the driver file downloaded from Marvell
bunzip2 install_v10.61.3.3.tar.bz2|tar xvf –
cd DriverInstall/

Execute the installations command
sh (Choose “1” then “Y”)

Now load the modules and you should get the output as shown
modprobe sk98lin
lsmod|grep sk98lin

[root@localhost ~]# lsmod | grep sk98lin
sk98lin 166740 1

Finally you should be able to see the interface settings
ethtool eth1


Well, I was trying to install a CLI for a RAID controller and I bump into this slight problem which stall me for around 15 mins.


error: Failed dependencies: is needed by StorMan-4.00-00.i386


rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm

Hope this helps … 🙂

ifconfig missing?

For some reason, ifconfig is not installed on one of my development machine and I have no idea why it is not installed.

[server2:/root]# ifconfig
bash: ifconfig: command not found
[server2:/root]# which ifconfig
/usr/bin/which: no ifconfig in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin)

ifconfig is under the packages called “net-tools”, so the easiest way to restore back the usage is by installing it.

yum install -y net-tools

Hope this helps 😉