<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 5/4/2010 10:33 AM, Joe Warren-Meeks wrote:
<blockquote
cite="mid:477AF1F5CA17494A904D1DAEFFFAF90106CD5DFB@MAIL1.encoretix.co.uk"
type="cite">
<pre wrap="">Apologies,
Running on Ubuntu 8.04LTS
Using:
ii drbd8-utils 2:8.0.11-0ubuntu3
RAID 1 over tcp/ip for Linux utilities
ii heartbeat 2.1.3-2
Subsystem for High-Availability Linux
ii fuse-utils 2.7.2-1ubuntu2.1
Filesystem in USErspace (utilities)
ii libfuse2 2.7.2-1ubuntu2.1
Filesystem in USErspace library
Version: 8.0.11 (api:86)
GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by phil@mescal,
2008-02-12 11:56:43
/etc/drbd.conf
global { usage-count yes; }
common { syncer { rate 40M; } }
resource r0 {
protocol C;
net {
cram-hmac-alg sha1;
shared-secret "xxxxx";
}
on d1 {
device /dev/drbd1;
disk /dev/cciss/c0d1p1;
address 10.10.xxx.xxx:7789;
meta-disk internal;
}
on d2 {
device /dev/drbd1;
disk /dev/cciss/c0d1p1;
address 10.10.xxx.xxx:7789;
meta-disk internal;
}
}
/etc/ha.d/haresources:
d1 drbddisk Filesystem::/dev/drbd1::/data::ext3 mysql 10.10.xxx.xxx
</pre>
</blockquote>
<br>
<snip><br>
<br>
Your /etc/ha.d/haresources file appears to have the incorrect syntax.
It should look more like:<br>
<br>
d1 drbddisk::drbd1 \<br>
Filesystem::/dev/drbd1::/data:ext3 \<br>
mysql \<br>
IPaddr::10.10.xxx.xxx/<netmask>/<interface><br>
<br>
<br>
The errors you posted regarding mysqld not being able to locate the db
directory may be caused by the mysql daemon starting prior to the drbd
device being mounted. In that case, you may want to utilize the 'Delay'
script in ha.d/rc.d/. Here is an example:<br>
<br>
d1 drbddisk::drbd1 \<br>
Filesystem::/dev/drbd1::/data:ext3 \<br>
<b>Delay::2 \</b><br>
mysql \<br>
IPaddr::10.10.xxx.xxx/<netmask>/<interface><br>
<br>
<br>
It appears very likely your problem is not being caused by DRBD, but
rather by the heartbeat configuration.<br>
<br>
<pre class="moz-signature" cols="72">--
         Ryan Manikowski
]] Devision Media Services LLC [[
         <a class="moz-txt-link-abbreviated" href="http://www.devision.us">www.devision.us</a>
<a class="moz-txt-link-abbreviated" href="mailto:ryan@devision.us">ryan@devision.us</a> | 716.771.2282</pre>
</body>
</html>