[pgsql-jp: 38534] pgpool-HAでのERROR

Nobuaki Inamura inamuran36 @ mahikari.or.jp
2007年 6月 26日 (火) 13:09:35 JST


稲村と申します。よろしくお願いいたします。

以下の環境でpgpool-HAを構築中です。
DELL SC440 ×2台
Debian4.0
PostgreSQL8.1
Pgpool-I 3.1.1
HeartBeat2.0.7

結論から書きますと、
「crm_verifyコマンドで、crm.dtdのチェックがパスできなかった」
というエラーが出て、それ以上解決できずに困っている・・
という内容です。

以下、構築手順と説明です。
2台のホストにそれぞれ必要なパッケージをインストールをして、HeartBeat用の設定ファイルcib.xmlを設定して
いました。

設定の参考にしたのはpgpool-HAのアーカイブの中にある「pgpool-ha.ja」というマニュアルです。

マニュアルにしたがって、ha.cfを作成し、「crm true」を記載しました。

次に、マニュアルにcib.xmlのサンプルが載っていたのでこれを参考に、node1とnode2、
あと192.168.0.3の部分をそれぞれpgpool1、pgpool2、192.168.2.xxxと自分の環境に合わせて
cib.xmlを作成、書き換えました。また、設定ファイルの位置を指定しました。
その状態で、
   crm_verify -VX /var/lib/heartbeat/crm/cib.xml
を実行すると
   <instance_attributes ・・・・
の部分がおかしいというエラーがでたので、それらしき部分に自分でidを付け足しました。
そうするとエラーは減ったのですが、そこからcrm.dtdのエラーが消えず困っています。
下にエラーメッセージとcib.xmlを記載させて頂きました。

ちなみにエラーメッセージ内にある
 /usr/lib/heartbeat/crm.dtd
はデフォルトのままで特に何もしていません。
cib.xmlのチェックでのエラーなので、cib.xml(か、crm.dtd)がおかしいとは思うのですがそれ以上が断定できません。

ご助言いただきたく宜しくお願いいたします。



エラー内容
------------
element cib: validity error : Element cib content does not follow the DTD, expecting (configuration , status), got (configuration )
element cib: validity error : No declaration for attribute debug_source of element cib
element cib: validity error : No declaration for attribute last_written of element cib
crm_verify[17792]: 2007/06/26_12:55:31 ERROR: validate_with_dtd:xml.c CIB does not validate against /usr/lib/heartbeat/crm.dtd
crm_verify[17792]: 2007/06/26_12:55:31 ERROR: main:crm_verify.c CIB did not pass DTD validation
crm_verify[17792]: 2007/06/26_12:55:31 WARN: unpack_config:unpack.c No value specified for cluster preference: default_action_timeout
crm_verify[17792]: 2007/06/26_12:55:31 WARN: unpack_config:unpack.c No value specified for cluster preference: default_resource_failure_stickiness
crm_verify[17792]: 2007/06/26_12:55:31 WARN: unpack_config:unpack.c No value specified for cluster preference: stonith_action
-----------

cib.xml
-------------
<cib generated="true" admin_epoch="0" have_quorum="true" num_peers="2" ccm_transition="4" cib_feature_revision="1.2" crm_feature_set="1.0.4" debug_source="sync_our_cib"
dc_uuid="061557ee-3eeb-4c11-bef0-83ae7709cc8c" last_written="Mon Jul 24 07:25:00 2006" epoch="42" num_updates="1521">
   <configuration>
     <crm_config>
       <cluster_property_set id="default">
         <attributes>
           <nvpair id="symmetric_cluster" name="symmetric_cluster" value="true"/>
           <nvpair id="no_quorum_policy" name="no_quorum_policy" value="stop"/>
           <nvpair id="default_resource_stickiness" name="default_resource_stickiness" value="0"/>
           <nvpair id="stonith_enabled" name="stonith_enabled" value="false"/>
           <nvpair id="stop_orphan_resources" name="stop_orphan_resources" value="false"/>
           <nvpair id="stop_orphan_actions" name="stop_orphan_actions" value="true"/>
           <nvpair id="remove_after_stop" name="remove_after_stop" value="false"/>
           <nvpair id="short_resource_names" name="short_resource_names" value="true"/>
           <nvpair id="transition_idle_timeout" name="transition_idle_timeout" value="5min"/>
           <nvpair id="is_managed_default" name="is_managed_default" value="true"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="061557ee-3eeb-4c11-bef0-83ae7709cc8c" uname="pgpool1" type="normal"/>
       <node id="3e919e96-e476-4d3e-be05-0048b9e12a56" uname="pgpool2" type="normal"/>
     </nodes>
     <resources>
       <group id="group_1">
         <primitive class="ocf" id="IPaddr_1" provider="heartbeat" type="IPaddr">
           <operations>
             <op id="IPaddr_1_mon" interval="5s" name="monitor" timeout="5s"/>
           </operations>
           <instance_attributes id="fbe1e487-a97a-483b-acb6-f7e1022fd728">
             <attributes>
               <nvpair id="IPaddr_1_attr_0" name="ip" value="192.168.2.xxx"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive class="ocf" id="pgpool_2" provider="heartbeat" type="pgpool">
           <operations>
             <op id="pgpool_2_mon" interval="30s" name="monitor" timeout="20s"/>
           </operations>
           <instance_attributes id="4e369437-b6ac-4f47-96bd-029f7e4a95fc">
             <attributes>
               <nvpair id="pgpool_2_attr_1" name="pgpoolconf"
                                value="/etc/pgpool.conf"/>
             </attributes>
           </instance_attributes>
         </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="pgpool1"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
 </cib>

-------------


-- 
Nobuaki Inamura : inamuran36 @ mahikari.or.jp




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