Am 01.07.2013 16:17, schrieb David Vossel:
----- Original Message -----
From: "Jakob Curdes" <[email protected]>
To: "General Linux-HA mailing list" <[email protected]>
Sent: Sunday, June 30, 2013 6:04:58 AM
Subject: [Linux-HA] PCS and ping resources?
Hello, I have configured a cluster on CentOS 6.x using PCS. All fine,
but I miss the information how to create ping primitives and use them to
ensure connectivity for the active machine.
With crmsh this was done configuring a ocf:pacemaker:ping primitive and
a clone; I could not figure out how to do this with PCS.
$ pcs resource help
.
.
.
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.
.
.
.
I'm guessing the following would work.
$ pcs resource pingrsc ping --clone
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.
Regards,
Jakob Curdes
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems