I have a problem with starting heartbeat on my two load balancers. I've followed all the instructions on the HOWTO but when I'm trying to start heartbeat it doesn't work. On both loadbalancersthis error appears after I give the command "/etc/init.d/heartbeat start": ERROR: Bad nodename in /etc/ha.d/haresources [IPaddr2::192.168.0.105/24/eth0/192.168.0.255] ERROR: Configuration error, heartbeat not started. Help me please!!! I'm realy need this!
Thanks! I've changed it the way you said and I've erased the "\" that was at the end of the line. Now there's a new error message on both machines: ERROR: Bad nodename in /etc/ha.d/haresources [ldirectord::ldirectord.cf] ERROR: Configuration error, heartbeat not started. Is it because of the "\" at the end of each line? I followed the exact howto instructions. Everything seems to be working except for the heartbeat. It's quite frustrating. I should mention that all the machines are virtual. I've used the VMware Workstation 5. What am I doing wrong?
P.s. when I put "\" after each line in the /etc/ha.d/haresources the error says: ERROR: Bad nodename in /etc/ha.d/haresources [IPaddr::192.168.0.105/24/eth0/192.168.0.255] if I erase the "\" at the end of each line the error is: ERROR: Bad nodename in /etc/ha.d/haresources [ldirectord::ldirectord.cf]
On my first load balancer: server1 \ ldirectord::ldirectord.cf \ LVSSyncDaemonSwap::master \ IPaddr2::192.168.0.105/24/eth0/192.168.0.255 On the second is the same except for the first line. The first line is: server2 \ server1 & server2 are the hostnames of the two load balancers. I've checked this with: uname -n.
The file must be exactly the same on both nodes, so it must contain server1 on both nodes, as described in the tutorial:
it still doesn't work I'll send to your e-mail some screen shots with the errors and the configurations for both LB. my e-mail address is [email protected] please have look into my e-mail maybe there's something that I'm not seeing
/etc/ha.d/haresources must be Code: server1 \ ldirectord::ldirectord.cf \ LVSSyncDaemonSwap::master \ IPaddr2::192.168.0.105/24/eth0/192.168.0.255 , not Code: server1 \ ldirectord::ldirectord.cf \ LVSSyncDaemonSwap::master \ IPaddr2::192.168.0.105/24/eth0/192.168.0.255 The format is important!
you are right! that was the problem. I couldn't see it. now the heartbeat started fine, but there's a new problem with the LB1. I don't know how to best describe it. I'm going to send you an e-mail with some screen shots maybe you'll see what's wrong. thank you!
Please try to upgrade the MySQL client on your first load balancer. BTW: you can post your screenshots here, you don't need to send me emails.
I know this maybe sounds stupid but how can I best upgrade it. do I download a newer version of MySQL and untar it? or there's another way? what's the best way to do this without affecting the load-balanced cluster?
P.s.s. What I mean is that after step2 I've cloned the LB1 and modified it's host name and IP address.
Have a look at the end of http://www.howtoforge.com/loadbalanced_mysql_cluster_debian_p5 It's described there.
after I follow this steps to perform setup: cd /tmp wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0002.tar.gz tar xvfz DBD-mysql-3.0002.tar.gz cd DBD-mysql-3.0002 perl Makefile.PL make make install LB1 works fine but after I restart it, it's back to the usual error. what should I do? and another thing ... is there any command or program that I can use from my real machine (windows XP OS) to generate a lot of traffic on the two servers via the load balancer or the VIP 192.168.0.105? I saw a howto on server monitoring using munin. Can I use that to monitor my mysql servers?
You can use Apache Benchmark (ab) ( http://www.cyberciti.biz/tips/howto-performance-benchmarks-a-web-server.html ), but I don't know if there's a windows version. Yes.
OK! thanks! I'll see what I can do. maybe I'll create another virtual machine for testing. sounds a little over the top but it's easyer to clone a machine than installing a hole new OS and a linux version of some VMware tool.