• R/O
  • SSH

pm_diskd: Commit

※ リポジトリは、pm-diskd ブランチが https://github.com/linux-ha-japan/pm_diskd-1.0 へ、pm-diskd-2.0ブランチが https://github.com/linux-ha-japan/pm_diskd へ移行しました。

Pacemaker 対応ディスク故障監視機能。

Pacemaker-1.0公式リポジトリのクローンに対し、パッチ作成用のブランチを作成して管理する。
ブランチ名: pm-diskd

初回 hg clone 実行後は、hg update -r pm-diskd を実行すること。

Heartbeat-2.1.4 用 hb-diskd(*) のPacemaker対応版
(*) http://sourceforge.jp/projects/linux-ha/releases/?package_id=10555


Commit MetaInfo

Revision7173fd1de3942a43b2594dba9ebbecaedcab3683 (tree)
Time2008-06-25 19:52:07
AuthorAndrew Beekhof <abeekhof@suse...>
CommiterAndrew Beekhof

Log Message

Low: ais: Only log nodes in crm_update_peer() when they change

Change Summary

Incremental Difference

diff -r 0d2ecfc08eb5 -r 7173fd1de394 lib/crm/common/membership.c
--- a/lib/crm/common/membership.c Wed Jun 25 12:51:26 2008 +0200
+++ b/lib/crm/common/membership.c Wed Jun 25 12:52:07 2008 +0200
@@ -176,6 +176,7 @@
176176
177177 node->addr = NULL;
178178 node->state = crm_strdup("unknown");
179+ id_changed = TRUE;
179180
180181 g_hash_table_insert(crm_peer_cache, node->uname, node);
181182 node = g_hash_table_lookup(crm_peer_cache, uname);
@@ -219,15 +220,17 @@
219220 }
220221 }
221222
222- crm_info("Node %s: id=%u%s state=%s%s addr=%s%s votes=%d%s born=%llu proc=%.32x%s",
223- node->uname,
224- node->id, id_changed?" (new)":"",
225- node->state, state_changed?" (new)":"",
226- node->addr, addr_changed?" (new)":"",
227- node->votes, votes_changed?" (new)":"",
228- node->born,
229- node->processes, procs_changed?" (new)":""
223+ if(id_changed || state_changed || addr_changed || votes_changed || procs_changed) {
224+ crm_info("Node %s: id=%u%s state=%s%s addr=%s%s votes=%d%s born=%llu proc=%.32x%s",
225+ node->uname,
226+ node->id, id_changed?" (new)":"",
227+ node->state, state_changed?" (new)":"",
228+ node->addr, addr_changed?" (new)":"",
229+ node->votes, votes_changed?" (new)":"",
230+ node->born,
231+ node->processes, procs_changed?" (new)":""
230232 );
233+ }
231234
232235 return node;
233236 }
@@ -324,7 +327,7 @@
324327 }
325328
326329 if(quorum_stats.nodes_total > quorum_stats.nodes_max) {
327- crm_info("Known quorum nodes: %u -> %u",
330+ crm_debug("Known quorum nodes: %u -> %u",
328331 quorum_stats.nodes_max, quorum_stats.nodes_total);
329332 quorum_stats.nodes_max = quorum_stats.nodes_total;
330333 }
Show on old repository browser