Am Donnerstag, 22. November 2007 19:31 schrieb Urban Peter:
> >Am Donnerstag, 22. November 2007 16:56 schrieb Urban Peter:
> >> Hi,
> >>
(...)
>
> Thank you for the Answer. I actually was thinking the same and I already
> tried to make separate resource instances as follows:
>  <primitive id="pingd-cn2pca" provider="heartbeat" class="ocf"
> type="pingd"> <operations>
>                              <op id="pingd-cn2pca-child-start" name="start"
> prereq="nothing"/>
>                         </operations>
>                         <instance_attributes id="pingd-cn2pca_inst_attr">
>                            <attributes>
>                               <nvpair id="pingd-cn2pca-host_list"
> name="host_list" value="cn1wrc">
>                            </attributes>
>                          </instance_attributes>
>                 </primitive>
>         </clone>
>
> I will try it tomorrow. The only concern of mine is, if I should put the
> name of
> the ping group (as specified in ha.cf) into the variable host_list ?
>
> Peter Urban

Hi,

why do you need the start op? Better do a monitoring, because only this does 
an actual update of the CIB.
I use something like:
<primitive id="resource_pingd" class="ocf" type="pingd" provider="heartbeat">
       <instance_attributes id="resource_pingd_instance_attrs">
         <attributes>
           <nvpair id="6ec9e2e1-2474-4c6a-b9c7-c7e40fb7a0ff" name="multiplier" 
value="100"/>
           <nvpair id="b4fb5978-81ec-46e9-90d6-155fea16213c" name="host_list" 
value="router"/>
           <nvpair id="9bb80e5a-73ad-476f-afa8-c2ce3005f5f9" name="dampen" 
value="5s"/>
         </attributes>
       </instance_attributes>
       <operations>
         <op id="b7efe4f4-b00a-40b4-9c45-4c43bf748f74" name="monitor" 
description="Monitor" interval="10s" timeout="10s" start_delay="1m" 
disabled="false" role="Started" prereq="quorum" on_fail="restart"/>
       </operations>
     </primitive>

Host_list: Perhaps somebody else could anser this question. Thanks.

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: [EMAIL PROTECTED]
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
_______________________________________________
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