<div>おせわになります。</div>
<div> </div>
<div>OSはCENTOS5の64BITで、HEARTBEATは2.1.3-3.el5.centosを使用し、pgpool-II-3.0、pgpool-ha-1.2をINSTALL</div>
<div>してあります。PGPOOL-HAのDOCに習って設定していきましたが、以下の部分で上手くリソースレベルで待機系のノードに</div>
<div>TAKEOVERしてくれません。</div>
<div> </div>
<div>CIB.XMLはVERIFY時点でエラーが出されるためにHEARTBEATを両ノードを立ち上げてONLINE状態になった時点で</div>
<div>CIB.XMLに追加で、primitive id 部分を書き込み、cibadmin -U -x /var/lib/heartbeat/crm/cib.xml を実行してPGPOOLが</div>
<div>立ち上がるようにはなりました。起動系のノードでPGPOOLを停止し再起動できないように起動ファイルをRENAMEしたりして</div>
<div>HEARBEATが待機系ノードにTAKEOVERするかTESTしていましたが、稼動系でPGPOOLの再起動を繰り返すだけで</div>
<div>全くTAKEOVERしてくれません。CIB.XMLの問題だとは思いますがどのように手直しすればよいものか試行錯誤しています。</div>
<div>以下はCIB.XMLです。</div>
<div> </div>
<div> &lt;cib admin_epoch=&quot;0&quot; epoch=&quot;3&quot; have_quorum=&quot;true&quot; ignore_dtd=&quot;false&quot; num_peers=&quot;2&quot; ccm_transition=&quot;6&quot; cib_feature_revision=&quot;2.0&quot; dc_uuid=&quot;9ccf5916-5487-450f-961e-4d84907077d4&quot; generated=&quot;true&quot; num_updates=&quot;15&quot; cib-last-written=&quot;Sun Oct 10 09:34:53 2010&quot;&gt;<br>
   &lt;configuration&gt;<br>     &lt;crm_config&gt;<br>       &lt;cluster_property_set id=&quot;cib-bootstrap-options&quot;&gt;<br>         &lt;attributes&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-dc-version&quot; name=&quot;dc-version&quot; value=&quot;2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-symmetric-cluster&quot; name=&quot;symmetric-cluster&quot; value=&quot;true&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-no-quorum-policy&quot; name=&quot;no-quorum-policy&quot; value=&quot;stop&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-default-resource-stickiness&quot; name=&quot;default-resource-stickiness&quot; value=&quot;0&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-default-resource-failure-stickiness&quot; name=&quot;default-resource-failure-stickiness&quot; value=&quot;0&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-stonith-enabled&quot; name=&quot;stonith-enabled&quot; value=&quot;false&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-stonith-action&quot; name=&quot;stonith-action&quot; value=&quot;reboot&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-startup-fencing&quot; name=&quot;startup-fencing&quot; value=&quot;true&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-stop-orphan-resources&quot; name=&quot;stop-orphan-resources&quot; value=&quot;true&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-stop-orphan-actions&quot; name=&quot;stop-orphan-actions&quot; value=&quot;true&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-remove-after-stop&quot; name=&quot;remove-after-stop&quot; value=&quot;false&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-short-resource-names&quot; name=&quot;short-resource-names&quot; value=&quot;true&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-transition-idle-timeout&quot; name=&quot;transition-idle-timeout&quot; value=&quot;5min&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-default-action-timeout&quot; name=&quot;default-action-timeout&quot; value=&quot;20s&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-is-managed-default&quot; name=&quot;is-managed-default&quot; value=&quot;true&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-cluster-delay&quot; name=&quot;cluster-delay&quot; value=&quot;60s&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-pe-error-series-max&quot; name=&quot;pe-error-series-max&quot; value=&quot;-1&quot;/&gt;<br>
           &lt;nvpair id=&quot;cib-bootstrap-options-pe-warn-series-max&quot; name=&quot;pe-warn-series-max&quot; value=&quot;-1&quot;/&gt;<br>           &lt;nvpair id=&quot;cib-bootstrap-options-pe-input-series-max&quot; name=&quot;pe-input-series-max&quot; value=&quot;-1&quot;/&gt;<br>
         &lt;/attributes&gt;<br>       &lt;/cluster_property_set&gt;<br>     &lt;/crm_config&gt;<br>     &lt;nodes&gt;<br>       &lt;node id=&quot;9ccf5916-5487-450f-961e-4d84907077d4&quot; uname=&quot;<a href="http://host2.domain.com">host2.domain.com</a>&quot; type=&quot;normal&quot;/&gt;<br>
       &lt;node id=&quot;dfff6205-74c6-4860-b4b9-ff9accbdcac5&quot; uname=&quot;<a href="http://host1.domain.com">host1.domain.com</a>&quot; type=&quot;normal&quot;/&gt;<br>     &lt;/nodes&gt;<br>     &lt;resources&gt;<br>
       &lt;group id=&quot;group_1&quot;&gt;<br>         &lt;primitive class=&quot;ocf&quot; id=&quot;IPaddr_111_222_333_444&quot; provider=&quot;heartbeat&quot; type=&quot;IPaddr&quot;&gt;<br>           &lt;operations&gt;<br>
             &lt;op id=&quot;IPaddr_111_222_333_444_mon&quot; interval=&quot;5s&quot; name=&quot;monitor&quot; timeout=&quot;5s&quot;/&gt;<br>           &lt;/operations&gt;<br>           &lt;instance_attributes id=&quot;IPaddr_111_222_333_444_inst_attr&quot;&gt;<br>
             &lt;attributes&gt;<br>               &lt;nvpair id=&quot;IPaddr_111_222_333_444_attr_0&quot; name=&quot;ip&quot; value=&quot;111.222.333.444&quot;/&gt;<br>               &lt;nvpair id=&quot;IPaddr_111_222_333_444_attr_1&quot; name=&quot;nic&quot; value=&quot;eth0&quot;/&gt;<br>
               &lt;nvpair id=&quot;IPaddr_111_222_333_444_attr_2&quot; name=&quot;cidr_netmask&quot; value=&quot;24&quot;/&gt;<br>             &lt;/attributes&gt;<br>           &lt;/instance_attributes&gt;<br>         &lt;/primitive&gt;<br>
         &lt;primitive id=&quot;resource_pgpool2&quot; class=&quot;ocf&quot; type=&quot;pgpool&quot; provider=&quot;heartbeat&quot;&gt;<br>           &lt;meta_attributes id=&quot;resource_pgpool2_meta_attrs&quot;&gt;<br>             &lt;attributes&gt;<br>
               &lt;nvpair id=&quot;resource_pgpool2_metaattr_target_role&quot; name=&quot;target_role&quot; value=&quot;started&quot;/&gt;<br>             &lt;/attributes&gt;<br>           &lt;/meta_attributes&gt;<br>           &lt;instance_attributes id=&quot;resource_pgpool2_instance_attrs&quot;&gt;<br>
             &lt;attributes&gt;<br>               &lt;nvpair id=&quot;conf_pool_main&quot; name=&quot;pgpoolconf&quot; value=&quot;/usr/local/etc/pgpool.conf&quot;/&gt;<br>               &lt;nvpair id=&quot;conf_pool_pcp&quot; name=&quot;pcpconf&quot; value=&quot;/usr/local/etc/pcp.conf&quot;/&gt;<br>
               &lt;nvpair id=&quot;conf_pool_hba&quot; name=&quot;hbaconf&quot; value=&quot;/usr/local/etc/pool_hba.conf&quot;/&gt;<br>               &lt;nvpair id=&quot;conf_pool_log&quot; name=&quot;logfile&quot; value=&quot;/tmp/pgpool.log&quot;/&gt;<br>
               &lt;nvpair id=&quot;conf_pool_pid&quot; name=&quot;pidfile&quot; value=&quot;/var/run/pgpool/pgpool.pid&quot;/&gt;<br>             &lt;/attributes&gt;<br>           &lt;/instance_attributes&gt;<br>           &lt;operations&gt;<br>
             &lt;op id=&quot;op_pool_mon&quot; name=&quot;monitor&quot; interval=&quot;10&quot; timeout=&quot;20&quot; on_fail=&quot;restart&quot; start_delay=&quot;1m&quot; disabled=&quot;false&quot; role=&quot;Started&quot;/&gt;<br>
             &lt;op id=&quot;op_pool_start&quot; name=&quot;start&quot; timeout=&quot;20&quot; on_fail=&quot;ignore&quot; start_delay=&quot;0&quot; disabled=&quot;false&quot; role=&quot;Started&quot;/&gt;<br>             &lt;op id=&quot;op_pool_stop&quot; name=&quot;stop&quot; timeout=&quot;20&quot; start_delay=&quot;0&quot; disabled=&quot;false&quot; role=&quot;Started&quot;/&gt;<br>
           &lt;/operations&gt;<br>         &lt;/primitive&gt;<br>       &lt;/group&gt;<br>     &lt;/resources&gt;<br>     &lt;constraints&gt;<br>       &lt;rsc_location id=&quot;rsc_location_group_1&quot; rsc=&quot;group_1&quot;&gt;<br>
         &lt;rule id=&quot;prefered_location_group_1&quot; score=&quot;100&quot;&gt;<br>           &lt;expression attribute=&quot;#uname&quot; id=&quot;prefered_location_group_1_expr&quot; operation=&quot;eq&quot; value=&quot;<a href="http://host1.domain.com">host1.domain.com</a>&quot;/&gt;<br>
         &lt;/rule&gt;<br>       &lt;/rsc_location&gt;<br>       &lt;rsc_colocation id=&quot;colocation_poolip&quot; from=&quot;resource_pgpool2&quot; to=&quot;IPaddr_111_222_333_444&quot; score=&quot;100&quot;/&gt;<br>     &lt;/constraints&gt;<br>
   &lt;/configuration&gt;<br> &lt;/cib&gt;<br></div>
<div>PGPOOL-HAからインストールされるスクリプトファイルの手直しをして、HEARTBEATを落としたときや、起動中にPGPOOLを</div>
<div>待機ノードへ移す(CRM_STANDBYコマンド)ことは出来ています。ご教授よろしくお願いします。</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>