Hi Dejan,

Are there binary packages available for UBUNTU yet ... for that newer version?

Regards,
Koen

-----Original Message-----
From: deja...@fastmail.fm [mailto:linux-ha-boun...@lists.linux-ha.org] On 
Behalf Of Dejan Muhamedagic
Sent: Monday, June 15, 2009 9:20 AM
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] DRBD/pacemaker ... monitoring and stop action of ocf 
DRBD script fails

Hi,

On Thu, Jun 11, 2009 at 03:40:42PM +0200, Koen Verwimp wrote:
> Hi Dejan,
> 
> Sorry, the script knows the resource variable and the monitoring action is 
> also working.
> 
> Only have a problem in the stop action while executing "do_cmd $CRM_MASTER 
> -D".
> After deleting that line, heartbeat closed properly.
> 
> Any idea?
> 
> Note:
> If I try to execute "crm_master -G" in shell, I get the following error:
> 
> Could not determine resource name.
> Error performing operation: A required field is missing
> 
> This is fixed by setting my resource 'r0' in the environment variable called 
> OCF_RESOURCE_INSTANCE.

That should be set by the CRM.

> Tried to export this OCF_RESOURCE_INSTANCE=r0 but no luck with the ocf drbd 
> script :( same problem.

You run 1.0.2? Can you upgrade? I think that there were some
problems with the env vars.

Thanks,

Dejan

> 
> 
> -----Original Message-----
> From: deja...@fastmail.fm [mailto:linux-ha-boun...@lists.linux-ha.org] On 
> Behalf Of Dejan Muhamedagic
> Sent: Thursday, June 11, 2009 12:38 PM
> To: General Linux-HA mailing list
> Subject: Re: [Linux-HA] DRBD/pacemaker ... monitoring and stop action of ocf 
> DRBD script fails
> 
> Hi,
> 
> On Thu, Jun 11, 2009 at 12:01:37PM +0200, Koen Verwimp wrote:
> > 
> > Hi, 
> > 
> > ? 
> > 
> > I have configured DRBD like explained at 
> > http://clusterlabs.org/wiki/DRBD_HowTo_1.0 . 
> > 
> > DRBD is working fine! No problem to migrate the master to another node ? ! 
> > 
> > ? 
> > 
> > But I have noticed that the monitor and stop action of the ocf
> > DRBD script (shipped with my pacemaker 1.0.2) fails and
> > therefore heartbeat cannot properly shutdown. 
> > 
> > After some investigation I saw that the $RESOURCE variable in
> > the ocf DRBD script cannot be read ($RESOURCE is empty). That
> > is the reason of failure of both actions. 
> 
> Strange. That variable is set from OCF_RESKEY_drbd_resource,
> which is the required drbd_resource attribute. More or less
> everything would break in that case. Perhaps add 'set -x' at the
> top of the drbd RA, then look for the output in the logs
> (starting with lrmd). Your resource configuration below looks OK
> to me.
> 
> Thanks,
> 
> Dejan
> 
> > ? 
> > 
> > Did I do something wrong or is this an error in the script? 
> > 
> > You can check my resource configuration below: 
> > 
> > ? 
> > 
> > Thanks, 
> > 
> > Koen 
> > 
> > ? 
> > 
> > ??? <resources> 
> > 
> > ????? <master id="ms-drbd1"> 
> > 
> > ??????? <meta_attributes id="ms-drbd1-meta_attributes"> 
> > 
> > ????????? <nvpair id="ms-drbd1-meta_attributes-clone-max" name="clone-max" 
> > value="2"/> 
> > 
> > ????????? <nvpair id="ms-drbd1-meta_attributes-notify" name="notify" 
> > value="true"/> 
> > 
> > ????????? <nvpair id="ms-drbd1-meta_attributes-globally-unique" 
> > name="globally-unique" value="false"/> 
> > 
> > ????????? <nvpair id="ms-drbd1-meta_attributes-target-role" 
> > name="target-role" value="Started"/> 
> > 
> > ??????? </meta_attributes> 
> > 
> > ??????? <primitive class="ocf" id="drbd1" provider="heartbeat" type="drbd"> 
> > 
> > ????????? <instance_attributes id="drbd1-instance_attributes"> 
> > 
> > ??????????? <nvpair id="drbd1-instance_attributes-drbd_resource" 
> > name="drbd_resource" value="r0"/> 
> > 
> > ????????? </instance_attributes> 
> > 
> > ????????? <operations> 
> > 
> > ??????????? <op id="drbd1-monitor-59s" interval="59s" name="monitor" 
> > role="Master" timeout="30s"/> 
> > 
> > ??????????? <op id="drbd1-monitor-60s" interval="60s" name="monitor" 
> > role="Slave" timeout="30s"/> 
> > 
> > ????????? </operations> 
> > 
> > ??????? </primitive> 
> > 
> > ????? </master> 
> > 
> > ??? </resources> 
> > 
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> 
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to