what the blog?

{upgrade in progress..}

3 Step to keep track OS memory usage by process

Tutorial So many people asking how to keep track on the OS memory usage by process, as you know a bit about Physical Memory, Virtual Memory (VSZ), Resident Set Size (RSS), Shared Memory, Paging Memory…etc, counting RSS to determine memory usage is very common way and easier to understand for dummies like me, although it’s […]


MySQL tuning for dummies

Introduction There is so many people asking how to improve their mysql instance, and also so many replies that increase key_buffer, sort_buffer, cache size… etc… which believe will lighten up the performance. However, fellows never notice those parameters was actually efficient to their setup. So here you are MySqlTuner,


Convert XML to CSV using xml2

What you need Red Hat Linux 4, 5 gcc libxml2 libxml2-devel xml2 Compiling xml2 1. Extract xml2 tar ball 2. Modify compiling option in “configure” file search line between 3428-3470, replace “libxml” with “libxml-2.0” for example: From To 3. Run configure 4. Modify the “Makefile” Change the “XML_CFALGS” var to

Pacemaker non-clones resource restart when clones stop/start on other nodes

Scenario Node alpha holds resource groups rg_vg01. Node beta holds the corresponding resources as same as alpha Both nodes hold instances of the CLVM DLM clone. As beta is switched into standby mode, the clone instance on beta correctly transition to the Stopped state. However, the rg_vg01 resource groups are restarted in-place on alpha needlessly. […]

Openldap recovery howto

If you are experiencing LDAP errors or startup without error but no ldap port (389|636) is listening for service and you have tried restarting the LDAP server by running /etc/init.d/ldap restart, then you should try running the following recovery procedure: Typical corruption 1. Stop the LDAP server: 2. Run the daemon manually with debug flag […]

Apache Web Load Balancing howto

Setup Overview A apache load balancer www.mydomain.com setup for redirect incoming request to two underlying web server www1.mydomain.com, www2.mydomain.com. Hosts Host#1 www1.mydomain.com: Host#2 www2.mydomain.com: The apache load balancer instance www.mydomain.com running on RedHat Cluster floating IP or you can activate it on either one server using IP alias without using Cluster Suit. […]


howto reinstall GRUB in rescue mode while using lvm / mdadm

This article is how to activate LVM and mdadm software raid in rescue and reinstall GRUB boot loader, since the boot CD will not do this job for you. By following the steps, you may able to do system recovery or disk operation. RedHat 5.x Activate the RAID

Enlarge linux software mirror raid 1 howto

Scenario A linux box running on a software raid 1 mirror harddisk (120GB), recently the server is running out of disk space. A new pair of harddisk with larger capacity (500GB) is going to replace the existing pair. Current disk layout 100MB md0:/dev/sda1, /dev/sda2 111GB md1:/dev/sdb1, /dev/sdb2 /boot /dev/md0 VolGroup00 /dev/md1 – LogVol00 swap – […]

Fatal error: Call to undefined function griffin_pagination() in /u01/mydream.com.hk/wwwroot/blog/wp-content/themes/griffin/index.php on line 23