[Pacemaker] pcs resource create with one script

David Vossel dvossel at redhat.com
Wed Apr 16 22:20:05 UTC 2014





----- Original Message -----
> From: "Dvorak Andreas" <Andreas.Dvorak at baaderbank.de>
> To: pacemaker at oss.clusterlabs.org
> Sent: Wednesday, April 16, 2014 12:36:14 PM
> Subject: [Pacemaker] pcs resource create with one script
> 
> 
> 
> Dear all,
> 
> 
> 
> I want to create a resource with an own script, but it does not work.
> 
> 
> 
> pcs resource create MYSQLFS ocf:baader:MYSQLFS op monitor interval=30s
> 
> Error: unable to locate command: /usr/lib/ocf/resource.d/baader/MYSQLFS

Does the ocf script implement the meta-data function? I think pcs will throw errors if it can't retrieve the metadata.  You could try the --force option.

-- Vossel

> 
> But the script does exit.
> 
> 
> 
> ls -l /usr/lib/ocf/resource.d/baader/MYSQLFS
> 
> -rwxr-xr-x 1 root root 2548 Apr 16 19:16
> /usr/lib/ocf/resource.d/baader/MYSQLFS
> 
> 
> 
> Can somebody please explain who to solve this problem?
> 
> 
> 
> pcs status
> 
> Cluster name: mysql-int-prod
> 
> Last updated: Wed Apr 16 19:27:07 2014
> 
> Last change: Fri Dec 13 15:54:04 2013 via crmd on sv2828-p1
> 
> Stack: cman
> 
> Current DC: sv2827-p1 - partition with quorum
> 
> Version: 1.1.10-1.el6_4.4-368c726
> 
> 4 Nodes configured
> 
> 2 Resources configured
> 
> 
> 
> Online: [ sv2827-p1 sv2828-p1 ]
> 
> OFFLINE: [ sv2827 sv2828 ]
> 
> 
> 
> Full list of resources:
> 
> 
> 
> ipmi-fencing-sv2827 (stonith:fence_ipmilan): Started sv2827-p1
> 
> ipmi-fencing-sv2828 (stonith:fence_ipmilan): Started sv2828-p1
> 
> 
> 
> Best regards
> 
> 
> 
> Andreas Dvorak
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 




More information about the Pacemaker mailing list