Hi , Try like this below in haresources file.
configvm1 IPaddr::192.168.1.100 drbddisk::r0 Filesystem::/dev/drbd0::/usr/local::xfs where "configvm1" your primary host name "192.168.1.100" is the floating IP. "r0" is resource in /etc/drbd.conf ( check out what u have mention in ur file) "/dev/drbd0" is device /etc/drbd.conf "/usr/local" is the lable over which /dev/drbd0 is suppose to mount ( change it as per your need ) "xfs" is the file system ( change it as per your need) Do the same config on both server and then restart the heartbeat service. you will get aliase ip to your eth0 interface on primary server. Regards Jayesh Shinde --- On Tue, 7/20/10, Francois LE FOLL <[email protected]> wrote: From: Francois LE FOLL <[email protected]> Subject: [Linux-HA] heartbeat IPaddr problem To: [email protected] Date: Tuesday, July 20, 2010, 4:17 PM Hello everybody, this is my first post to this list, and I really need your help. It's two days since I'm looking over different forum for an answer but I can't succeed in and google seems not to be my friend on that issue. Here is my problem description. I'm running two virtual machine (kvm) hosting ubuntu server 10.04 and I want them to be configured as a cluster (drbd + heartbeat). First machine is named configvm1 (192.168.1.101) and the second one is configvm2 (192.168.1.102) drbd seems to work based on the logs but I'm not an expert at all and I can't succeed in looking at the shared directory in the secondary node (which seem to normal in a primary/.Secondary configuration). Anyway I will have this answered as soon as I will be able to make heartbeat working and manage drbd daemon. Currently I'm stuck at the beginning because I can't attach a virtual IP address on my NIC at the start of hearbeat. Anyway if I launch the command manually (here after) there is no problem and I can ping it from both nodes. "sudo sh /etc/heartbeat/resource.d/IPaddr2 192.168.1.100 start" but if I simply start heartbeat, I always receive: Starting High-Availability services: IPaddr2[6687]: INFO: Resource is stopped Done. here are my conf files: haresources file: configvm1 IPaddr2::192.168.1.100 drbddisk::disk0 dhcp3-server ha.cf file: debugfile /var/log/ha-debug logfile /var/log/ha-log logfacility local0 autojoin none auto_failback on bcast eth0 warntime 5 keepalive 1 #ping each other every second (60 heartbeats / minute) deadtime 10 #declaring a node dead after this timedelay without any heartbeat initdead 10 node configvm1 node configvm2 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
