[pgpool-general-jp: 824] pgpoo-ha

ポンパー revivex36 @ gmail.com
2010年 10月 11日 (月) 02:20:35 JST


おせわになります。

OSはCENTOS5の64BITで、HEARTBEATは2.1.3-3.el5.centosを使用し、pgpool-II-3.0、pgpool-ha-1.2をINSTALL
してあります。PGPOOL-HAのDOCに習って設定していきましたが、以下の部分で上手くリソースレベルで待機系のノードに
TAKEOVERしてくれません。

CIB.XMLはVERIFY時点でエラーが出されるためにHEARTBEATを両ノードを立ち上げてONLINE状態になった時点で
CIB.XMLに追加で、primitive id 部分を書き込み、cibadmin -U -x
/var/lib/heartbeat/crm/cib.xml を実行してPGPOOLが
立ち上がるようにはなりました。起動系のノードでPGPOOLを停止し再起動できないように起動ファイルをRENAMEしたりして
HEARBEATが待機系ノードにTAKEOVERするかTESTしていましたが、稼動系でPGPOOLの再起動を繰り返すだけで
全くTAKEOVERしてくれません。CIB.XMLの問題だとは思いますがどのように手直しすればよいものか試行錯誤しています。
以下はCIB.XMLです。

 <cib admin_epoch="0" epoch="3" have_quorum="true" ignore_dtd="false"
num_peers="2" ccm_transition="6" cib_feature_revision="2.0"
dc_uuid="9ccf5916-5487-450f-961e-4d84907077d4" generated="true"
num_updates="15" cib-last-written="Sun Oct 10 09:34:53 2010">
   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
           <nvpair id="cib-bootstrap-options-symmetric-cluster"
name="symmetric-cluster" value="true"/>
           <nvpair id="cib-bootstrap-options-no-quorum-policy"
name="no-quorum-policy" value="stop"/>
           <nvpair id="cib-bootstrap-options-default-resource-stickiness"
name="default-resource-stickiness" value="0"/>
           <nvpair
id="cib-bootstrap-options-default-resource-failure-stickiness"
name="default-resource-failure-stickiness" value="0"/>
           <nvpair id="cib-bootstrap-options-stonith-enabled"
name="stonith-enabled" value="false"/>
           <nvpair id="cib-bootstrap-options-stonith-action"
name="stonith-action" value="reboot"/>
           <nvpair id="cib-bootstrap-options-startup-fencing"
name="startup-fencing" value="true"/>
           <nvpair id="cib-bootstrap-options-stop-orphan-resources"
name="stop-orphan-resources" value="true"/>
           <nvpair id="cib-bootstrap-options-stop-orphan-actions"
name="stop-orphan-actions" value="true"/>
           <nvpair id="cib-bootstrap-options-remove-after-stop"
name="remove-after-stop" value="false"/>
           <nvpair id="cib-bootstrap-options-short-resource-names"
name="short-resource-names" value="true"/>
           <nvpair id="cib-bootstrap-options-transition-idle-timeout"
name="transition-idle-timeout" value="5min"/>
           <nvpair id="cib-bootstrap-options-default-action-timeout"
name="default-action-timeout" value="20s"/>
           <nvpair id="cib-bootstrap-options-is-managed-default"
name="is-managed-default" value="true"/>
           <nvpair id="cib-bootstrap-options-cluster-delay"
name="cluster-delay" value="60s"/>
           <nvpair id="cib-bootstrap-options-pe-error-series-max"
name="pe-error-series-max" value="-1"/>
           <nvpair id="cib-bootstrap-options-pe-warn-series-max"
name="pe-warn-series-max" value="-1"/>
           <nvpair id="cib-bootstrap-options-pe-input-series-max"
name="pe-input-series-max" value="-1"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="9ccf5916-5487-450f-961e-4d84907077d4" uname="
host2.domain.com" type="normal"/>
       <node id="dfff6205-74c6-4860-b4b9-ff9accbdcac5" uname="
host1.domain.com" type="normal"/>
     </nodes>
     <resources>
       <group id="group_1">
         <primitive class="ocf" id="IPaddr_111_222_333_444"
provider="heartbeat" type="IPaddr">
           <operations>
             <op id="IPaddr_111_222_333_444_mon" interval="5s"
name="monitor" timeout="5s"/>
           </operations>
           <instance_attributes id="IPaddr_111_222_333_444_inst_attr">
             <attributes>
               <nvpair id="IPaddr_111_222_333_444_attr_0" name="ip"
value="111.222.333.444"/>
               <nvpair id="IPaddr_111_222_333_444_attr_1" name="nic"
value="eth0"/>
               <nvpair id="IPaddr_111_222_333_444_attr_2"
name="cidr_netmask" value="24"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive id="resource_pgpool2" class="ocf" type="pgpool"
provider="heartbeat">
           <meta_attributes id="resource_pgpool2_meta_attrs">
             <attributes>
               <nvpair id="resource_pgpool2_metaattr_target_role"
name="target_role" value="started"/>
             </attributes>
           </meta_attributes>
           <instance_attributes id="resource_pgpool2_instance_attrs">
             <attributes>
               <nvpair id="conf_pool_main" name="pgpoolconf"
value="/usr/local/etc/pgpool.conf"/>
               <nvpair id="conf_pool_pcp" name="pcpconf"
value="/usr/local/etc/pcp.conf"/>
               <nvpair id="conf_pool_hba" name="hbaconf"
value="/usr/local/etc/pool_hba.conf"/>
               <nvpair id="conf_pool_log" name="logfile"
value="/tmp/pgpool.log"/>
               <nvpair id="conf_pool_pid" name="pidfile"
value="/var/run/pgpool/pgpool.pid"/>
             </attributes>
           </instance_attributes>
           <operations>
             <op id="op_pool_mon" name="monitor" interval="10" timeout="20"
on_fail="restart" start_delay="1m" disabled="false" role="Started"/>
             <op id="op_pool_start" name="start" timeout="20"
on_fail="ignore" start_delay="0" disabled="false" role="Started"/>
             <op id="op_pool_stop" name="stop" timeout="20" start_delay="0"
disabled="false" role="Started"/>
           </operations>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_location id="rsc_location_group_1" rsc="group_1">
         <rule id="prefered_location_group_1" score="100">
           <expression attribute="#uname"
id="prefered_location_group_1_expr" operation="eq" value="host1.domain.com
"/>
         </rule>
       </rsc_location>
       <rsc_colocation id="colocation_poolip" from="resource_pgpool2"
to="IPaddr_111_222_333_444" score="100"/>
     </constraints>
   </configuration>
 </cib>
PGPOOL-HAからインストールされるスクリプトファイルの手直しをして、HEARTBEATを落としたときや、起動中にPGPOOLを
待機ノードへ移す(CRM_STANDBYコマンド)ことは出来ています。ご教授よろしくお願いします。
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: http://www.sraoss.jp/pipermail/pgpool-general-jp/attachments/20101010/aaa0ce67/attachment.html 


pgpool-general-jp メーリングリストの案内