Xen hangs my Linux server!!!

Posted on March 12, 2008

My officemate created a Xen Windows 2003 server virtual machine on one server. The virtual machine supposedly was configured to eat up 30GB of hard disk space but unknowingly it goes up to 85 Gb which eats up all of hd space and cause my server to hang.

I have to restart and fix all of MySQL table crashes. Here’s a simple script that i created that will help me monitor my server’s harddisk and mysql crash

*************************************************************************************************

#!/bin/sh
#check harddisk space
date > serverhealth.log
echo “******** Disk Space **********” >> serverhealth.log
df -h >> serverhealth.log
echo “********Check Eventum database ***********” >> serverhealth.log
#check Mysql datase for errors
mysqlcheck -umysqluser -ppassword mysqldatabase >> serverhealth.log

SUBJECT=`hostname`” Automated Server Health Alert”

TO=”admin@admin.com”

mail -s “$SUBJECT” “$TO” < /root/serverhealth.log
**************************************************************************************

» Filed Under Linux/Nix

Comments

Leave a Reply




*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image

  • Recent Comments

    • krusna: the file SUNWrge.tar.gz is not found on that URL....
    • Gugi: The file SUNWrge.tar.gz is not found on the url you gave abo...
    • Robert: how can i take a slot in your blog-rolls? here's mind htt...
    • rachel Perez: that's mine, mine, mine, mine... hehe.. thanks po......
    • Malyn Torne: gada voice nya at ang humble nya para sa mga tao..keep up th...

Directory of Personal Blogs
Technology Blogs - BlogCatalog Blog Directory Personal - Top Blogs Philippines