[Linux-ha-jp] heartbeatからPostgreSQLサービスが自動起動できない

Zurück zum Archiv-Index

赤松 akamatsu_hiroshi_b1****@lab*****
2013年 6月 7日 (金) 19:21:08 JST


To: O.N さん

 赤松と申します。

 v1 モードはよく知らないですが、簡易な環境(Heartbeat 3.0.5)で試すと
 同じ事象が発生しました。
 起動時、既に稼働中のリソースがいたら無視する仕様のようです。
 (ちなみに v2 及び Pacemaker はこの仕様は異なります)

 例えば haresources が下記の場合、既に snmpd が起動している状態で
 heartbeat を起動すると httpd の次に snmpd の起動処理は行われず
 ntpd の起動処理が行われます。
 ---
 node1 httpd snmpd ntpd
 ---

 ただし standby コマンド等でリソースを追いだす際、snmpd を止めます。
 つまり O.N さんの環境で SERVER1 の Heartbeat を止めると F-Secure の
 PostgreSQL も止まる事になると思いますがいかがでしょうか。
 (それはそれで良くないでしょう)


 で対策ですが、やっぱり自作の RA が必要と思います。
 参考になるのがさっと見る限り /etc/ha.d/resource.d/Filesystem に
 なるかと。

 この中を読むと(bash なんで大したことないです)RA への引数を export で
 宣言して最後に ra_execocf というものを起動してます。
 この ra_execocf は別の RA(/usr/lib/ocf/resource.d/heartbeat)に
 処理を(start とか stop とか)渡してます。

 別の RA の場所には pgsql という PostgreSQL を制御する為の RA が
 あるので、これを利用しましょう。

 もうパラメータが固定で決まってるなら下記のように全部書いておいて...

---
#!/bin/sh
. /etc/ha.d/resource.d/hto-mapfuncs
OCF_TYPE=pgsql
export OCF_RESKEY_pgctl="<pg_ctl をフルパスで>"
export OCF_RESKEY_start_opt="-p <ポート番号:5432>"
export OCF_RESKEY_psql="<psql をフルパスで>"
export OCF_RESKEY_pgdata="<DB のディレクトリ>"
export OCF_RESKEY_pgport="<ポート番号:5432>"
ra_execocf $1
---

 とりあえず上記くらいのパラメータで良さそう。
 上記を RA として /etc/ha.d/resource.d/ONpgsql として作成。
 実行権限(# chmod 755 /etc/ha.d/resource.d/ONpgsql)を付与し
 haresources の "postgresql" を "ONpgsql" にしておけば行けると
 思います。
 (完全に机上なので、行けなかったらスイマセン)
 もちろん両系共に設定しておいて下さい。

 それと RA 内の改行は全て 0x0a のみ。
 Windows 上で例えばメモ帳で書いた RA をそのまま転送すると
 起動できません。
 UTF-8 とかで保存して転送する等、対処して下さい。

 では、うまくいく事を願っております...。


 ちなみに ha.cf の ucast の件は直ってないようです。
 両系の ha.cf を下記のようにしておきましょう。

 ---
  ucast eth1 10.10.10.10  <-- server1 の eth1 の実 IP
  ucast eth1 10.10.10.11  <-- server2 の eth1 の実 IP
 ---


> O.Nと申します。
>  
> 解決の糸口が見つからず、困っております。
> 問合せ先が違うかも知れませんが、少しでも解決の糸口が見つかればと思い、投稿さ
> せていただきました。
>  
> 1.問題
>  物理サーバ上で、Red Hat Enterprise Linux 5.5、Heartbeat-2.1.4-1をインス
> トールし
> httpd,PostgreSQLのクラスタ構成になっております。
>  postgreSQLのバージョンアップ後、heartbeatからPostgreSQLサービスが自動起動
> しなくなりました。
> デバックログにも、ResourceManagerからPostgreSQLサービスを起動した形跡が見当
> たりません。
> 想定される原因を教えてください。
> 
> 2.現象(再現性)
>  セキュリティ対策ソフトとして、エフセキュアLinuxセキュリティフルエディショ
> ン 9.20を導入して
> おります。セキュリティソフトにもpostgresqlが使用されており、自動起動を設定す
> ると、heartbeat
> からpostgreSQLサービスが起動できません。
> セキュリティソフトの自動起動の設定を解除すると、heartbeatからPostgreSQLサー
> ビスが自動起動
> できます。
>  PostgreSQLはそれぞれ別々のディレクトリー、ポート番号を使用しております。
> エフセキュアのHPには、ディレクトリー、ポート番号が異なることによって、干渉は
> しないと言われて
> います。
> 
> できればエフセキュアもheartbeatのPostgreSQLサービスもサービス監視(スクリプ
> ト)等で制御するのでは
> なく、別々のサービスを起動、管理したい。
> 
> 3.環境
> Red Hat Enterprise Linux 5.5
> heartbeat-2.1.4-1
> SERVER1(物理:eth0)192.168.0.120
> SERVER2(物理:eth0)192.168.0.121 
> VIP 192.168.0.110
> SERVER1(物理:eth1)10.10.10.10
> SERVER2(物理:eth1)10.10.10.11
> heartbeatからpostgresql
>  
> 4.PostgreSQLのバージョン
> postgresql-devel-8.1.23-6.el5_8
> postgresql-libs-8.1.23-6.el5_8
> f-secure-postgresql-8.1.9-13
> postgresql-server-8.1.23-6.el5_8
> postgresql-python-8.1.23-6.el5_8
> postgresql-8.1.23-6.el5_8
>  
> 5.PostgreSQLのポート番号
> postgresql 5432
> F-secure 28078
>  
> 6./etc/ha.d/haresourcesの抜粋
> SERVER1.domain drbddisk Filesystem::/dev/drbd0::/usr1::ext3 \
> postgresql httpd IPaddr::192.168.0.110/24/eth0 MailTo::test****@yahoo*****::
> server_FailOver
> 
> 7./etc/ha.d/ha.cfの抜粋
> debugfile  /var/log/ha-debug
> logfile  /var/log/ha-log
> logfacility local0
> keepalive 10
> deadtime 60
> warntime 30
> initdead 120
> udpport 694
> ucast eth1 10.10.10.11
> auto_failback off
> node SEVER1.domain SEVER2.domain
> ping 192.168.0.1
> respawn hacluster /usr/lib/heartbeat/ipfail
> apiauth ipfail gid=haclient uid=hacluster
> debug 3
> 
> 8.ha-debugの抜粋
> 下記のログは、stand‐aloneにて実行した結果です。
> =================================================
> 正常:F-Secureを起動せず、heartbeatを実行した結果
> =================================================
> ResourceManager[3986]: 2013/06/07_14:13:41 info: Acquiring resource group: 
> SEVER1.domain drbddisk Filesystem::/dev/drbd0::/usr1::ext3 postgresql httpd 
> IPaddr::192.168.0.110/24/eth0 MailTo::test****@yahoo*****::sever_FailOver
> ResourceManager[3986]: 2013/06/07_14:13:41 info: Running /etc/ha.d/resource.
> d/drbddisk  start
> ResourceManager[3986]: 2013/06/07_14:13:41 debug: Starting /etc/ha.d/
> resource.d/drbddisk  start
> ResourceManager[3986]: 2013/06/07_14:13:41 debug: /etc/ha.d/resource.d/
> drbddisk  start done. RC=0
> Filesystem[4042]: 2013/06/07_14:13:41 INFO:  Resource is stopped
> ResourceManager[3986]: 2013/06/07_14:13:41 info: Running /etc/ha.d/resource.
> d/Filesystem /dev/drbd0 /usr1 ext3 start
> ResourceManager[3986]: 2013/06/07_14:13:41 debug: Starting /etc/ha.d/
> resource.d/Filesystem /dev/drbd0 /usr1 ext3 start
> Filesystem[4123]: 2013/06/07_14:13:41 INFO: Running start for /dev/drbd0 on 
> /usr1
> heartbeat[3378]: 2013/06/07_14:13:42 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:42 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:42 debug: hb_rsc_isstable: 
> ResourceMgmt_child_count: 1, other_is_stable: 1, takeover_in_progress: 1, 
> going_standby: 0, standby running(ms): 0, resourcestate: 3
> heartbeat[3378]: 2013/06/07_14:13:42 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:42 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:42 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:42 debug: }/*APIclients_input_dispatch*/;
> ipfail[3930]: 2013/06/07_14:13:42 debug: [We are SEVER2.domain]
> Filesystem[4112]: 2013/06/07_14:13:42 INFO:  Success
> INFO:  Success
> ResourceManager[3986]: 2013/06/07_14:13:42 debug: /etc/ha.d/resource.d/
> Filesystem /dev/drbd0 /usr1 ext3 start done. RC=0
> ResourceManager[3986]: 2013/06/07_14:13:42 info: Running /etc/init.d/
> postgresql  start
> ResourceManager[3986]: 2013/06/07_14:13:42 debug: Starting /etc/init.d/
> postgresql  start
> Starting postgresql service: heartbeat[3378]: 2013/06/07_14:13:42 debug: 
> APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:42 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:42 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:42 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:42 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:42 debug: }/*APIclients_input_dispatch*/;
> ipfail[3930]: 2013/06/07_14:13:42 debug: auto_failback -> 0 (off)
> heartbeat[3378]: 2013/06/07_14:13:43 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:43 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:43 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:43 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:43 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:43 debug: }/*APIclients_input_dispatch*/;
> ipfail[3930]: 2013/06/07_14:13:43 debug: Setting message filter mode
> heartbeat[3378]: 2013/06/07_14:13:43 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:43 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:43 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:43 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:43 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:43 debug: }/*APIclients_input_dispatch*/;
> ipfail[3930]: 2013/06/07_14:13:43 debug: Starting node walk
> heartbeat[3378]: 2013/06/07_14:13:44 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:44 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:44 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:44 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:44 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:44 debug: }/*APIclients_input_dispatch*/;
> ipfail[3930]: 2013/06/07_14:13:44 debug: Cluster node: 192.168.0.1: status: 
> ping
> heartbeat[3378]: 2013/06/07_14:13:45 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:45 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:45 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: APIclients_input_dispatch() {
> heartbeat[3378]: 2013/06/07_14:13:45 debug: ProcessAnAPIRequest() {
> heartbeat[3378]: 2013/06/07_14:13:45 debug:  return TRUE;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: return 1;
> heartbeat[3378]: 2013/06/07_14:13:45 debug: }/*APIclients_input_dispatch*/;
> ipfail[3930]: 2013/06/07_14:13:45 debug: Cluster node: SEVER2.domain: 
> status: active
>  
> =================================================
> 異常:F-Secureを起動し、heartbeatを実行した結果
> =================================================
> ResourceManager[15747]: 2013/06/07_14:20:36 info: Acquiring resource group: 
> SEVER1.domain drbddisk Filesystem::/dev/drbd0::/usr1::ext3 postgresql httpd 
> IPaddr::192.168.0.110/24/eth0 MailTo::test****@yahoo*****::sever_FailOver
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[2] : [from_id=ipfail]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[3] : [to_id=ipfail]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[4] : [src=SEVER2.domain]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[5] : [info=signon]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[6] : [client_gen=0]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[7] : [(1)srcuuid=0x9624c60
> (36 27)]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[8] : [seq=17]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[9] : [hg=519e18e3]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[10] : [ts=51b16da3]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[11] : [ld=2.29 1.36 0.54 2/
> 272 15746]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[12] : [ttl=4]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: MSG[13] : [auth=1 781ac7ff]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: create_seq_snapshot_table:no 
> missing packets found for node SEVER2.domain
> heartbeat[3436]: 2013/06/07_14:20:36 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:36 debug: Signing on API client 15691 
> (ipfail)
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 WARN: G_CH_dispatch_int: Dispatch 
> function for API client took too long to execute: 230 ms (> 100 ms) 
> (GSource: 0x9620f98)
> ResourceManager[15747]: 2013/06/07_14:20:36 info: Running /etc/ha.d/resource.
> d/drbddisk  start
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: hb_rsc_isstable: 
> ResourceMgmt_child_count: 1, other_is_stable: 1, takeover_in_progress: 1, 
> going_standby: 0, standby running(ms): 0, resourcestate: 3
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: [We are SEVER2.domain]
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> ResourceManager[15747]: 2013/06/07_14:20:36 debug: Starting /etc/ha.d/
> resource.d/drbddisk  start
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: auto_failback -> 0 (off)
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Setting message filter mode
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> ResourceManager[15747]: 2013/06/07_14:20:36 debug: /etc/ha.d/resource.d/
> drbddisk  start done. RC=0
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Starting node walk
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Cluster node: 192.168.0.1: status: 
> ping
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Cluster node: SEVER2.domain: 
> status: active
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Cluster node: SEVER1.domain: 
> status: dead
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> ipfail[15691]: 2013/06/07_14:20:36 debug: [They are SEVER1.domain]
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Setting message signal
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: APIclients_input_dispatch() {
> Filesystem[15803]: 2013/06/07_14:20:36 INFO:  Resource is stopped
> heartbeat[3374]: 2013/06/07_14:20:36 debug: ProcessAnAPIRequest() {
> heartbeat[3374]: 2013/06/07_14:20:36 debug:  return TRUE;
> ipfail[15691]: 2013/06/07_14:20:36 debug: Waiting for messages...
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*ProcessAnAPIRequest*/;
> ipfail[15691]: 2013/06/07_14:20:36 debug: G_main_IPC_Channel_constructor
> (sock=4,4)
> heartbeat[3374]: 2013/06/07_14:20:36 debug: return 1;
> heartbeat[3374]: 2013/06/07_14:20:36 debug: }/*APIclients_input_dispatch*/;
> ResourceManager[15747]: 2013/06/07_14:20:36 info: Running /etc/ha.d/resource.
> d/Filesystem /dev/drbd0 /usr1 ext3 start
> ResourceManager[15747]: 2013/06/07_14:20:36 debug: Starting /etc/ha.d/
> resource.d/Filesystem /dev/drbd0 /usr1 ext3 start
> Filesystem[15884]: 2013/06/07_14:20:36 INFO: Running start for /dev/drbd0 on 
> /usr1
> Filesystem[15873]: 2013/06/07_14:20:37 INFO:  Success
> INFO:  Success
> ResourceManager[15747]: 2013/06/07_14:20:37 debug: /etc/ha.d/resource.d/
> Filesystem /dev/drbd0 /usr1 ext3 start done. RC=0
> ResourceManager[15747]: 2013/06/07_14:20:37 info: Running /etc/init.d/httpd  
> start
> ResourceManager[15747]: 2013/06/07_14:20:37 debug: Starting /etc/init.d/
> httpd  start
> Starting httpd: [  OK  ]
> ResourceManager[15747]: 2013/06/07_14:20:38 debug: /etc/init.d/httpd  start 
> done. RC=0
> IPaddr[16010]: 2013/06/07_14:20:39 INFO:  Resource is stopped
> ResourceManager[15747]: 2013/06/07_14:20:39 info: Running /etc/ha.d/resource.
> d/IPaddr 192.168.0.110/24/eth0 start
> ResourceManager[15747]: 2013/06/07_14:20:39 debug: Starting /etc/ha.d/
> resource.d/IPaddr 192.168.0.110/24/eth0 start
> IPaddr[16116]: 2013/06/07_14:20:39 INFO: Using calculated netmask for 192.
> 168.0.110: 255.255.255.0
> IPaddr[16116]: 2013/06/07_14:20:39 DEBUG: Using calculated broadcast for 192.
> 168.0.110: 192.168.0.255
> IPaddr[16116]: 2013/06/07_14:20:39 INFO: eval ifconfig eth0:0 192.168.0.110 
> netmask 255.255.255.0 broadcast 192.168.0.255
> IPaddr[16116]: 2013/06/07_14:20:39 DEBUG: Sending Gratuitous Arp for 192.168.
> 0.110 on eth0:0 [eth0]
> IPaddr[16087]: 2013/06/07_14:20:39 INFO:  Success
> INFO:  Success
> ResourceManager[15747]: 2013/06/07_14:20:39 debug: /etc/ha.d/resource.d/
> IPaddr 192.168.0.110/24/eth0 start done. RC=0
> MailTo[16223]: 2013/06/07_14:20:40 INFO:  Resource is stopped
> ResourceManager[15747]: 2013/06/07_14:20:40 info: Running /etc/ha.d/resource.
> d/MailTo test****@yahoo***** sever_FailOver start
> ResourceManager[15747]: 2013/06/07_14:20:40 debug: Starting /etc/ha.d/
> resource.d/MailTo test****@yahoo***** sever_FailOver start
> MailTo[16268]: 2013/06/07_14:20:40 INFO:  Success
> INFO:  Success
> ResourceManager[15747]: 2013/06/07_14:20:40 debug: /etc/ha.d/resource.d/
> MailTo test****@yahoo***** sever_FailOver start done. RC=0
> mach_down[15721]: 2013/06/07_14:20:40 info: /usr/share/heartbeat/mach_down: 
> nice_failback: foreign resources acquired
> heartbeat[3406]: 2013/06/07_14:20:40 debug: fifo_child message:
> heartbeat[3406]: 2013/06/07_14:20:40 debug: MSG: Dumping message with 3 
> fields
> heartbeat[3406]: 2013/06/07_14:20:40 debug: MSG[0] : [t=resource]
> heartbeat[3406]: 2013/06/07_14:20:40 debug: MSG[1] : [rsc_hold=foreign]
> heartbeat[3406]: 2013/06/07_14:20:40 debug: MSG[2] : [info=mach_down]
> mach_down[15721]: 2013/06/07_14:20:40 info: mach_down takeover complete for 
> node SEVER1.domain.
> heartbeat[3374]: 2013/06/07_14:20:40 debug: FIFO_child_msg_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:40 debug: process_clustermsg: node [SEVER2.
> domain]
> heartbeat[3374]: 2013/06/07_14:20:40 info: AnnounceTakeover(local 1, foreign 
> 1, reason 'T_RESOURCES(us)' (1))
> heartbeat[3374]: 2013/06/07_14:20:40 info: mach_down takeover complete.
> heartbeat[3374]: 2013/06/07_14:20:40 debug: process_resources(3):  other now 
> stable
> heartbeat[3374]: 2013/06/07_14:20:40 info: AnnounceTakeover(local 1, foreign 
> 1, reason 'mach_down' (1))
> heartbeat[3374]: 2013/06/07_14:20:40 debug: hb_rsc_isstable: 
> ResourceMgmt_child_count: 1, other_is_stable: 1, takeover_in_progress: 0, 
> going_standby: 0, standby running(ms): 0, resourcestate: 3
> heartbeat[3374]: 2013/06/07_14:20:40 debug: }/*FIFO_child_msg_dispatch*/;
> heartbeat[3436]: 2013/06/07_14:20:40 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:40 WARN: G_CH_dispatch_int: Dispatch 
> function for FIFO took too long to execute: 60 ms (> 50 ms) (GSource: 
> 0x9609088)
> heartbeat[3374]: 2013/06/07_14:20:40 info: Managed status process 15692 
> exited with return code 0.
> heartbeat[3374]: 2013/06/07_14:20:40 debug: RscMgmtProc 'status' exited code 
> 0
> heartbeat[3374]: 2013/06/07_14:20:45 debug: hb_send_local_status() {
> heartbeat[3374]: 2013/06/07_14:20:45 debug: PID 3374: Sending local status 
> curnode = 807aaec status: active
> heartbeat[3374]: 2013/06/07_14:20:45 debug: process_clustermsg: node [SEVER2.
> domain]
> heartbeat[3374]: 2013/06/07_14:20:45 debug: }/*hb_send_local_status*/;
> heartbeat[3436]: 2013/06/07_14:20:45 debug: Packet authenticated
> heartbeat[3437]: 2013/06/07_14:20:45 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:45 debug: read_child_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:45 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:45 debug: process_clustermsg: node [192.
> 168.0.1]
> heartbeat[3374]: 2013/06/07_14:20:45 debug: }/*read_child_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:20:46 info: Local Resource acquisition 
> completed. (none)
> heartbeat[3374]: 2013/06/07_14:20:46 info: local resource transition 
> completed.
> heartbeat[3374]: 2013/06/07_14:20:46 debug: Sending hold resources msg: all, 
> stable=1 # <none>
> heartbeat[3374]: 2013/06/07_14:20:46 debug: process_clustermsg: node [SEVER2.
> domain]
> heartbeat[3374]: 2013/06/07_14:20:46 info: AnnounceTakeover(local 1, foreign 
> 1, reason 'T_RESOURCES(us)' (1))
> heartbeat[3374]: 2013/06/07_14:20:46 debug: hb_rsc_isstable: 
> ResourceMgmt_child_count: 0, other_is_stable: 1, takeover_in_progress: 0, 
> going_standby: 0, standby running(ms): 0, resourcestate: 4
> heartbeat[3374]: 2013/06/07_14:20:46 debug: hb_rsc_isstable: 
> ResourceMgmt_child_count: 0, other_is_stable: 1, takeover_in_progress: 0, 
> going_standby: 0, standby running(ms): 0, resourcestate: 4
> heartbeat[3436]: 2013/06/07_14:20:46 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:55 debug: hb_send_local_status() {
> heartbeat[3374]: 2013/06/07_14:20:55 debug: PID 3374: Sending local status 
> curnode = 807aaec status: active
> heartbeat[3374]: 2013/06/07_14:20:55 debug: process_clustermsg: node [SEVER2.
> domain]
> heartbeat[3374]: 2013/06/07_14:20:55 debug: }/*hb_send_local_status*/;
> heartbeat[3436]: 2013/06/07_14:20:55 debug: Packet authenticated
> heartbeat[3437]: 2013/06/07_14:20:55 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:55 debug: read_child_dispatch() {
> heartbeat[3374]: 2013/06/07_14:20:55 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:20:55 debug: process_clustermsg: node [192.
> 168.0.1]
> heartbeat[3374]: 2013/06/07_14:20:55 debug: }/*read_child_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:21:05 debug: hb_send_local_status() {
> heartbeat[3374]: 2013/06/07_14:21:05 debug: PID 3374: Sending local status 
> curnode = 807aaec status: active
> heartbeat[3374]: 2013/06/07_14:21:05 debug: process_clustermsg: node [SEVER2.
> domain]
> heartbeat[3374]: 2013/06/07_14:21:05 debug: process_clustermsg: node [SEVER2.
> domain]
> heartbeat[3374]: 2013/06/07_14:21:05 debug: }/*hb_send_local_status*/;
> heartbeat[3436]: 2013/06/07_14:21:05 debug: Packet authenticated
> heartbeat[3436]: 2013/06/07_14:21:05 debug: Packet authenticated
> heartbeat[3437]: 2013/06/07_14:21:05 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:21:05 debug: read_child_dispatch() {
> heartbeat[3374]: 2013/06/07_14:21:05 debug: Packet authenticated
> heartbeat[3374]: 2013/06/07_14:21:05 debug: process_clustermsg: node [192.
> 168.0.1]
> heartbeat[3374]: 2013/06/07_14:21:05 debug: }/*read_child_dispatch*/;
> heartbeat[3374]: 2013/06/07_14:21:15 debug: hb_send_local_status() {
> 
> 以上です。
> なにとぞ、よろしくお願い申し上げます。
> 
> _______________________________________________
> Linux-ha-japan mailing list
> Linux****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan





Linux-ha-japan メーリングリストの案内
Zurück zum Archiv-Index