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?

Smilar Topics

  • 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 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 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 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

    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-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 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 Installing DRBD on 9.04-server

    Bump ...

  • Ubuntu DRBD>Corosync>Pacemaker>KVM>Samba question

    Hi, did anybody make such a configuration for high availability of the Samba server (or another): Ubuntu server>DRBD>Corosync>Pacemaker>KVM>Ubuntu server>Samba with 2 servers/nodes? The point is not to rely on Pacemaker to bring up the samba service on the another machine, but only ...

  • Ubuntu Server 10.10 (x86) + LVM +

    #OS: Ubuntu Server 10.10 (x86) I have tried to setup two nodes based on the example here: https://help.ubuntu.com/community/HighlyAvailableLAMP (https://help.ubuntu.com/community/HighlyAvailableLAMP)There are several problems that arise, but despite several tours on Google it is unclear if any solut ...

  • Ubuntu high availability and clustering

    advise suggest and comments what are all possible clustering, high availbility solution available under ubuntu server enviornment.also can some one point out what are opensource and what are paid/commerciali found heartbeat(DRBD) and linux-habut i have confusion to understand clearly. the first ques ...

  • "Pro Ubuntu Server Administration" by Sander van Vugt has published

    Julie from Apress here again. I just wanted to let everyone know that we've published the follow-up to Beginning Ubuntu LTS Server Administration, Second Edition (http://www.apress.com/book/view/1430210826): Pro Ubuntu Server Administration. Highlights from this book include:•How to optimize a full ...

  • Ubuntu How to clustering 2 MySQL-Machines without management node?

    I heard about the possibility of a mysql-cluster with 2 data nodes and one management node. But i only have 2 machines and have to install a high available mysql-server. our old (and slow) server runs on a master/slave-ha-cluster with heartbeat and drbd. But i'm afraid in losing performance when com ...

  • Ubuntu Weekly Newsletter #127

    Welcome to the Ubuntu Weekly Newsletter, Issue #127 for the week January 25th - January 31st, 2009. In this issue we cover: Call for testing of DRBD: Server Team, New MOTU, Arizona LoCo installfest, Launchpad 2.2.1 released, Exporting translations upstream, PartyBoi2 interview, Ubuntu pocket guide a ...

  • HowTo: Optimizing NFS ?

    I've made a lot of research on how to optimize NFS but sadly I have'nt found anything that helped me optimize my NFS server on one of my cluster.I run a 8 node cluster. Two of them are quad-2ghz cpus frontends using heartbeat + drbd NFS sharing a 250 gig. /apps mount-point to 6 backends composed of ...

  • MySQL Replication: slave is not aware of network failure

    I have the following setup: Replication Master using virtual IP 192.168.1.30 This Master is a Heartbeat+DRBD Cluster of 2 nodes. Failover works flawlessly. Replication Slave is another box which is connected to the Masters virtual IP. Problem is on Heartbeat Takeover. The Cluster switches the virtua ...

  • mysqldump and 'select *' fail on tables with BLOB and TEXT fields (Got error 4350 'Transaction already aborted' from NDBCLUSTER)

    Newbie situation... I'm currently trying to create MySQL Cluster using Amazon EC2 Service and I ran into some difficulties. My setup is quite simple -- 1 SQL node, 1 Management node, 4 Data Nodes. All of them are x86_64 dual-CPU Xen virtual machines, 'm1.large' EC2 instances. OS CentOS 5.1 x86_64 My ...

  • 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 ...

  • Ubuntu Weird HA-behavior with XEN/HA/DRBD/LVM

    I have a HA-setup with Xen heartbeat lvm and DRBD. According to this howto: http://www.asplund.nu/xencluster/xen-cluster-howto.htmlIm using 2 Poweredge R710. ha1 & ha2 with Ubuntu 8.04I can do a manual live migration of the domU's without any problems. Also if i shutdown heartbeat on ha1 with in ...

  • 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 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 ...