<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 3:51 PM, Jürgen Scholz <span dir="ltr"><<a href="mailto:juergen@kernkraft400.com">juergen@kernkraft400.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does any one can provide me a sample /etc/ha.d/haresources file which is using /etc/ha.d/resources.d/drbddisk?<br>
</blockquote></div>
Hello. I accidentially send my reply to Lars Kellogg-Stedham. Thank you for replying.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have two centos 5.2 nodes with xen 3.0.3 and drbd82. I want the drbd disk resource status to be changed automatically by heartbeat to required primary or seconday.<br>
</blockquote></div>
You are requesting an configuration example for linux-ha v1. I'd like to advise you to use linux-ha v2, because v1 won't be around forever and the support for v1-style configurations in v2 will surely be dropped at some point in time.<br>
Still using v1 would mean you have to set up the system, you are setting up now, again in the near future.<br>
<br>
The easy way would look like: Try using the script to convert configurations (named haresources2crm, I think) to convert your haresources to the new XML format and see if your setup still works fine.<br>
This script can convert simple setups without user intervention or post-improvement. You really should try it ... ;-)<br>
<br>
<br>
bye,<br>
juergen<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</blockquote></div><br><div><br></div><div><br></div><div><br></div><div>Ok...</div><div><br></div><div>My haresources file looks like:</div><div><br></div><div><div>ha1.domain.local drbddisk::r0 Filesystem::/dev/drbd1::/guests::ext3::noatime xendomainsHA1</div>
<div>ha2.domain.local drbddisk::r0 Filesystem::/dev/drbd1::/guests::ext3::noatime xendomainsHA2</div><div><br></div><div><br></div><div>where,</div><div><br></div><div>r0 = resource in drbd.conf</div><div>/guests = directory where the drbd1 should be mounted</div>
<div><br></div><div><br></div><div>is my haresources file FINE/CORRECT?</div><div><br></div><div><br></div><div><br></div><div><br></div><div>My err is:</div><div><br></div><div><div>Sep 24 17:44:07 ha1 IPaddr[3007]: INFO: Success</div>
<div>Sep 24 17:44:07 ha1 avahi-daemon[4855]: Withdrawing address record for <a href="http://192.168.0.3">192.168.0.3</a> on eth0.</div><div>Sep 24 17:44:08 ha1 ResourceManager[2244]: ERROR: Cannot locate resource script ha2.domain.local</div>
<div>Sep 24 17:44:08 ha1 ResourceManager[2244]: ERROR: Cannot locate resource script ha2.domain.local</div><div>Sep 24 17:44:09 ha1 ResourceManager[2244]: info: Retrying failed stop operation [ha2.domain.local]</div><div>
Sep 24 17:44:10 ha1 ResourceManager[2244]: ERROR: Cannot locate resource script ha2.domain.local</div><div>Sep 24 17:44:10 ha1 ResourceManager[2244]: ERROR: Cannot locate resource script ha2.domain.local</div><div>Sep 24 17:44:11 ha1 ResourceManager[2244]: info: Retrying failed stop operation [ha2.domain.local]</div>
<div><br></div><div><br></div><div><br></div><div>Thanks </div><div>Paras.</div></div><div><br></div></div><div><br></div><div><br></div><div><br></div></div>