Linux

How to Install Windows on Xen

A XenSource Technical Note for the Windows 2003 Server Introduction This note describes how to install Windows 2003 Server on Xen. It provides an overview of the Linux installation, and detailed steps for installing and configuring Xen and starting the Windows 2003 Server installation. It is recommended that this installation be done for demonstration and early non-performance evaluation only; this is not intended to produce a production-ready...

Read More

SolusVM Console Tools

Overview SolusVM offers some command line tools for various uncommon tasks. All these tools are best run as root in a standard SSH console.ToolsForce Delete a Node If at any point you find you have an orphaned slave node linked to your master, you can delete it by running the following command on the master node: php /usr/local/solusvm/scripts/deletenode.php --level=force --comm=delete --id=<NODEID>Force Delete IP Address If at any...

Read More

Apache Response Codes

Apache server response codes Introduction Whenever a user sends a request to a server, a process called a ‘handshake’ begins where the server and your computer communicate and the server makes sure it can accommodate what your user has requested of it. This means being able to make the connection between the two computers and then completing the transfer of data. Headers are short fragments of text which are generated by servers to hold...

Read More

Cannot add disk to software raid “–re-add fails”

Just found a new bug on the latest mdadm-3.2.2-9.el6.x86_64 release in centos6.2! Once you remove a partition from a software raid (fail/remove) you can’t add it back. Error message is: “mdadm: /dev/sdxx reports being an active member for /dev/mdx, but a –re-add fails” All you need to do is zero the md info on the partition with: mdadm –zero-superblock /dev/sda1 and then you can add it back to the raid device with: mdadm /dev/md0...

Read More

How to identify high load apache processes

ps -axo “%C %p” |sort -nr |head -5 |while read i p; do echo -n $i; /usr/local/apache/bin/apachectl fullstatus |grep -A 1 $p; done   there is also a python script for that : apache-top.py . you can donwload it from: http://www.fr3nd.net/projects/apache-top/. it’s a nice tool but still need some customization.

Read More

Linux force reboot and shutdown

Force Reboot : echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger   If you want to force shutdown machine try this: echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger

Read More