Ubuntu Heartbeat on DRBD

Last week I have installed DRBD and HeartBeat on a Ubuntu 7.10 server system, but I'm having problems with the configuration.

I tried it already on more than 5 2-node clusters (in VMware), but I still can't get it at work. I hope someone can see a issue in my config.

I have configurated 2 systems with in each 2 hard disks in software RAID-1.
My partition (in raid) for DRBD is /dev/md4

I installed DRBD like this:

apt-get install drbd8-utils drbd8-module-source \
build-essential module-assistant
module-assistant auto-install drbd8

HeartBeat like this:
apt-get install heartbeat

The server was updated ofcourse :)

DRBD
These are my configuration files of DRBD.

drbd.conf
global {
minor-count 1;
}

resource mysql {
protocol C;

on dbg00 {
device /dev/drbd0;
disk /dev/md4;
address 192.168.1.30:7788;
meta-disk internal;
}

on dbg01 {
device /dev/drbd0;
disk /dev/md4; .
address 192.168.1.31:7788;
meta-disk internal;
}

disk {
on-io-error detach;
}

net {
max-buffers 2048;
ko-count 4;
}

syncer {
rate 10M;
al-extents 257;
}

startup {
wfc-timeout 0;
degr-wfc-timeout 120; # 2 minutes.
}
}

HeartBeat

ha.cf
logfacility daemon
keepalive 1
deadtime 10
warntime 5
initdead 120
udpport 694
bcast eth2
auto_failback off
node dbg00
node dbg01

respawn hacluster /usr/lib/heartbeat/ipfail

use_logd yes

haresources
dbg00 IPaddr::192.168.1.35/26 drbddisk::mysql \
Filesystem::/dev/drbd0::/mnt/mysql::ext3::defaults mysql

---------

/mnt/mysql is mounted on /dev/drbd0.

DRBD is working but Heartbeat does not.
Does someone have a idea what I'm doing wrong?

Does someone have a working configuration?

Ubuntu Heartbeat Default

I installed the heartbeat between two machines, and one thing that I deteced is that machine that has the higher IP is the one that always came as active.There is any way to define a kind of priority to take a specific machine as default active when the system is runnig in the right conditions?? ...

Ubuntu heartbeat like cpu usage

so why is that?While watching the processes, it looks like chrome is cycling up and down ...

Ubuntu heartbeat-cmd freezes movie playback in mplayer

I useheartbeat-cmd="gnome-screensaver-command -p &>/dev/null"so that my screen doesn't dim while watching movies in (s)mplayer. However, this has very annoying side effect - movie playback freezes for 1-2 seconds few times per minute. If I remove this command from mplayer config, th ...

Ubuntu heartbeat

Is there a way of letting other PCs (running Windows) know when a Ubuntu PC is running? I've set one up as a kind of headless server, so would like some kind of indication that it's running or has rebooted. At the moment I'm randomly and manually pinging or VNCing in, but some kind of "desktop ...

Ubuntu [heartbeat] mysql.resource script

Since the update to Ubuntu 10.04 this mysql.resource file (/etc/ha.d/resource.d/mysql - see URL below) doesn't work anymore, since 10.04 is using "service" / "upstart-job"...Original: http://dev.mysql.com/doc/refman/5.1/en/ha-heartbeat-drbd.htmlIs it OK to change it into somethin ...

Ubuntu Installing DRBD on 9.04-server

Bump ...

Ubuntu Installing DRBD

HII'm using Ubuntu 7.04 Desktop version. I tried to install DRBD. and following errors occurred during the installation..fist i did apt-get install drbd0.7-module-source worked fine then m-a a-i drbd0.7-module-source"/usr/share/modass/overrides/drbd0.7-module-source" build KVERS=2.6.20-15- ...

Ubuntu Heartbeat 2

I have installed heartbeat 2 on 3 Ubuntu 7.04 machined all connected on a LAN.For some reason the nodes keep loosing each other shortly after connecting and then refinding each other resulting in "split brain" apparently !The consequences are.. strange. IP addresses get assigned to more th ...

Ubuntu heartbeat-2 for breezy

did anybody know, when heartbeat-2 is planed in breezy. I tried to compile it, but there are many dependencies e.g. libsensors3, libsnmp9, libssl0.9.8, ... which are not available as binary too.Who can help?:confused: ...

Ubuntu Heartbeat config issues on a production server. ASAP help appreciated!

So I currently have 2 identical servers running a lamp stack with DRBD on them. I have everything set up with DRBD to accept node1 and node2 properly. Right now I have (internally) 10.10.1.51 working fine over http when I hit it, I then do this:On node1 (10.10.1.51):-Stop apache2 services-Umount drb ...

Ubuntu DRBD/Heartbeat causes reboot

I am somewhat of a n00b in the linux world so bear with me if I am not going in the right direction here. My problem is this. I have a small cluster of servers with two load balancers, lb1 and lb2. The two load balancers run a number of services and one of these is DRBD. I have installed a second ha ...

Ubuntu Setup Live Migration Cluster using Heron, Xen, DRBD, Heartbeat

Good Afternoon to all of my Ubuntu family. I would like to put together a howto on creating a high-availability xen setup in which live migration is possible between 2 nodes using Hardy Heron 8.04server edition... Basically I want to setup two physical PCs/servers(nodes), and have DRBD replicate the ...

MySQL Testing drbd and heartbeat

I've configured drbd + Heartbeat + MySQL on 2 machines. Are there any ways to test if the configuration is right? ...

Ubuntu Problem with Heartbeat

While running Heartbeat over my Ubuntu Server, I am getting following error:ERROR: Could not send gratuitous arpsEverything else working just fine, Can anybody suggest me the possible cause of error? ...

Heartbeat in Ubuntu

Does heartbeat come pre-installed in any Version of Ubuntu Linux??? ...

How can I accomplish DRBD+heartbeat+mysql??

I tried a lot so far to get DRBD (7 and 8) + heartbeat (1 and 2) + mysql (5.0.45 and older) running but to no avail. First I took Debian (stable) which yieled pretty soon to some annoying problems concerning the Kernel and headers, hardware, drbd-modules, etc. Then I gave the new opensuse 10.3 a cha ...

stopping heartbeat service getting hang in mysql DRBD

I have setup the Mysql DRBD setup with heartbeat2.99.2-6.1 . for some days it works fine. but later heartbeat service dosent work properly it gets hang while stopping it, resulting both nodes in secondary-secondary status. Please can anybody help me resolving this?? heartbeat configuration are : [au ...

Ubuntu Configuration Heartbeat with HAProxy

I did a configuration heartbeat-apache which is working well.Now I try to do it with haproxy but it didn't work.I think that maybe it's because I use a different port in haproxy than the default port.In haproxy configuration I have this : listen webfarm 192.168.0.99:8080In heartbeat configuration :l ...

Ubuntu Related to heartbeat

I installed clusterglue,heartbeat and resource agent in mu ubuntu machine.I configured ha.cf,authkeys and tried to start heartbeat ,At that time i am getting following errors.....Starting High-Availability services: *** glibc detected *** heartbeat: free(): invalid pointer: 0x0810e428 ***======= Bac ...

Issue while installing heartbeat 3 - Cluster Glue component on Ubuntu 9

I have the following configurations:Description: Ubuntu 9.04Release: 9.04Trying to install heartbeat version 3, for this I have copied the required files on Ubuntu to one of the folder I have created:Cluster-Resource-Agents-agents-1.0.3.tar.bz2Heartbeat-3-0-STABLE-3.0.3.tar.bz2Reusable-Cluster-Compo ...

How to remove/unisntall Heartbeat-2 from Ubuntu node ?

How could I uninstall/remove heartbeat-2 from a Ubuntu node, as I am trying to install Linux-HA heartbeat version 3. I am trying with dkpg -- purge but when I execute the dkpg command, it says:sudo: dkpg: command not foundAny pointer(s) would be great help. ...

Ubuntu [USN-335-1] heartbeat vulnerability

================================================== ========= Ubuntu Security Notice USN-335-1 August 16, 2006heartbeat vulnerabilityCVE-2006-3121================================================== =========A security issue affects the following Ubuntu releases:Ubuntu 5.04Ubuntu 5.10Ubuntu 6.06 LTSThi ...

Ubuntu [USN-326-1] heartbeat vulnerability

================================================== ========= Ubuntu Security Notice USN-326-1 July 27, 2006heartbeat vulnerabilityCVE-2006-3815================================================== =========A security issue affects the following Ubuntu releases:Ubuntu 5.04Ubuntu 5.10Ubuntu 6.06 LTSThis ...

Ubuntu [USN-165-1] heartbeat vulnerability

================================================== =========Ubuntu Security Notice USN-165-1 August 11, 2005heartbeat vulnerabilityCAN-2005-2231================================================== =========A security issue affects the following Ubuntu releases:Ubuntu 4.10 (Warty Warthog)Ubuntu 5.04 (H ...

Ubuntu How to layer kvm on lvm with drbd

Can someone point me in the right direction for testing a kvm implementation that might provide HA? I want to have kvm hosts that I can take snapshots on, but also provide HA. I'm confused about how to layer the implementation. Should it be setup like this?kvm on top of drbd on top of lvmor does lvm ...

Ubuntu Unknown "heartbeat" internet connection

I am seeing an unknown internet connection both send and receive of about 5kbits that seems to happen every 15 seconds or so. I noticed this the other day and rebooted. It went away but I noticed it again. Nothing shows in the System monitor under processes.I can close all programs and it still seem ...

Ubuntu DNS not working with Heartbeat and VIP

I have setup two Ubuntu servers, version 9.10 karmic, in a Heartbeat cluster using a Virtual IP Address, as noted here:https://wiki.ubuntu.com/UbuntuHighAvailabilityTeam/PacemakerHeartbeatWell, the cluster, failover, and all works great, but the problem is my servers are not responding to DNS querie ...

Ubuntu crm_mon (heartbeat) won't work!

I am trying to setup a basic apache cluster using 2 Jaunty server edition virtualbox clients on and "internal network". I have set the boxes up so that they have static IP addresses and can ping each other. I then installed heartbeat (sudo apt-get install heartbeat) and followed this (http ...

Ubuntu HA Heartbeat MailTo problem

I have two virtual servers on 2 hyper-v machines for apache/php. I use heartbeat to failover from one to another in case the hardware fails. I would like to know when this happens so I added MailTo::myemail@address.com::ASimpleSubject to the end of the line in my haresources file. I know there isnt ...