[Pacemaker] Pacemaker 1.0.4 & drbd 8 resource script problem.

Max Lock Max.Lock at datanet.co.uk
Fri Aug 21 06:55:09 EDT 2009


http://www.datanet.co.uk/default.aspx http://www.datanet.co.uk/default.aspx
 
--------------------------------------------------------------------------

Thanks folks.

 Well spotted, I feel like a muppet now :)

 -Cheers Max. 


--------------------------------------------------------------------------
Max Lock - Senior Systems Administrator
Datanet - Hosting & Connectivity
0845 130 6010
0845 130 6020
mailto:Max.Lock at datanet.co.uk
http://www.datanet.co.uk/
Registered Office: DATANET.CO.UK Limited, Aspen House, Barley Way, Ancells Business Park, Fleet, Hampshire, GU51 2UT Registered in England - No. 3214053 
Providing Internet Solutions for Business since 1996, Datanet, over 12 years of excellence in service, support and IP solutions
http://www.datanet.co.uk/datanet_trust.aspx?tbs=3
http://www.datanet.co.uk/datacentre_diary.aspx
NEW FOR JUNE 2009 - visit http://www.datanet.co.uk/ to see our new website 
 
-----Original Message-----

From: Max Lock [mailto:Max.Lock at datanet.co.uk] 
Sent: 21 August 2009 10:50
To: pacemaker at oss.clusterlabs.org
Subject: [Pacemaker] Pacemaker 1.0.4 & drbd 8 resource script problem.

 <http://www.datanet.co.uk/default.aspx> 	  <http://www.datanet.co.uk/default.aspx> 	

 

________________________________

Hi Folks,

 I'm running pacemaker 1.0.4 and drbd 8 on a Debian 5(Lenny) test cluster, having followed the lenny and drbd howtos on the wiki. Whenever I setup the drbd resource I'm seeing errors when trying to initally query the resource. It seems the /usr/lib/ocf/resource.d/heartbeat/drbd script isn't passing the resource name to the drbdadm command. The log error and the cluster configuration are below.

 Can anyone give me any pointers? googles not pulling anything that looks relevant, and neither are the mailing list logs.

 -Thanks Max.


Aug 20 13:59:26 pmtest1 lrmd: [1133]: info: RA output: (drbd0:1:stop:stderr) 2009/08/20_13:59:26 ERROR: : Called drbdadm -c /etc/drbd.conf cstate Aug 20 13:59:26 pmtest1 lrmd: [1133]: info: RA output: (drbd0:1:stop:stderr) 2009/08/20_13:59:26 ERROR: : Exit code 3 Aug 20 13:59:26 pmtest1 lrmd: [1133]: info: RA output: (drbd0:1:stop:stderr) 2009/08/20_13:59:26 ERROR: : Command output: USAGE: drbdadm [OPTION...] [-- DRBDSETUP-OPTION...] COMMAND {all|RESOURCE...} OPTIONS: {--dry-run|-d} {--verbose|-v} {--config-file|-c} val {--drbdsetup|-s} val {--drbdmeta|-m} val {--sh-varname|-n} val COMMANDS: attach detach connect disconnect up down primary secondary invalidate invalidate-remote outdate resize syncer pause-sync resume-sync adjust wait-connect wait-con-int state cstate dstate dump dump-xml create-md show-gi get-gi dump-md wipe-md hidden-commands Version: 8.0.14 (api:86) GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil at fat-tyre, 2008-11-12 16:40:33 missing arguments

crm(live)configure# show
node pmtest1 \
    attributes standby="off"
node pmtest2
primitive drbd0-block ocf:heartbeat:drbd \
    params drbd_resrource="nfs01" \
    op monitor interval="59s" role="Master" timeout="30s" \
    op monitor interval="60s" role="Slave" timeout="30s" \
    meta target-role="Stopped"
primitive failover-ip ocf:heartbeat:IPaddr \
    params ip="172.21.1.227" \
    op monitor interval="5s" \
    meta target-role="Started" is-managed="true"
property $id="cib-bootstrap-options" \
    dc-version="1.0.4-2ec1d189f9c23093bf9239a980534b661baf782d" \
    cluster-infrastructure="openais" \
    expected-quorum-votes="2" \
    stonith-enabled="false" \
    no-quorum-policy="ignore"


________________________________


Max Lock - Senior Systems Administrator
Datanet - Hosting & Connectivity

 T: 

0845 130 6010

 F: 

0845 130 6020

 E: 

Max.Lock at datanet.co.uk

W: 

www.datanet.co.uk <http://www.datanet.co.uk/> 

Registered Office: DATANET.CO.UK Limited, Aspen House, Barley Way, Ancells Business Park, Fleet, Hampshire, GU51 2UT Registered in England - No. 3214053 Providing Internet Solutions for Business since 1996, Datanet, over 12 years of excellence in service, support and IP solutions 

Datanet.co.uk - Proud Winner of ISPA Awards in 2005, 2007 & 2008 <http://www.datanet.co.uk/datanet_trust.aspx?tbs=3>
Datanet Datacentre Now Open at Aspen House Fleet! Call us on 0845 130 6010 to arrange a visit! <http://www.datanet.co.uk/datacentre_diary.aspx>
NEW FOR JUNE 2009 - visit www.datanet.co.uk <http://www.datanet.co.uk/>  to see our new website 
 








More information about the Pacemaker mailing list