On 07/01/13 15:56, Jakob Curdes wrote:

Ok, but how do I define a ping resource in the first place? I tried (similar to
the crmsh parametrization) something like

  pcs resource create ocf:pacemaker:ping op monitor timeout 5 interval 2 params
host_list="www.microsoft.com"

but this seems not to be the correct syntax.

Jakob,

I think you want do do something like this:

pcs resource create myping ocf:pacemaker:ping host_list="www.microsoft.com" timeout=5 op monitor interval=10

You want to put the host_list and timeout before 'op' because they're options for the ocf:pacemaker:ping resource agent.

From the create usage:
[root@rh7-1 ~]# pcs resource create -h

Usage: pcs resource create...
    create <resource id> <class:provider:type|type> [resource options]
           [op <operation action> <operation options> [<operation action>
           <operation options>]...] [meta <meta options>...] [--clone|--master]
        Create specified resource.  If --clone is used a clone resource is
        created (with options specified by --cloneopt <clone_option>=<value>),
        if --master is specified a master/slave resource is created.

Thanks!
Chris



_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to