• 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

Revisionca3f47634fb1e40d2d1234b1e92f407e74ff5cf7 (tree)
Time2010-02-24 00:46:48
AuthorAndrew Beekhof <andrew@beek...>
CommiterAndrew Beekhof

Log Message

Low: cts: Make LogAudit less verbose during normal operation

Change Summary

Incremental Difference

diff -r c423acd6e369 -r ca3f47634fb1 cts/CTSaudits.py
--- a/cts/CTSaudits.py Tue Feb 23 16:22:55 2010 +0100
+++ b/cts/CTSaudits.py Tue Feb 23 16:46:48 2010 +0100
@@ -81,13 +81,13 @@
8181 watch_pref = self.CM.Env["LogWatcher"]
8282 if watch_pref == "any" or watch_pref == "syslog":
8383 self.CM.Env["LogWatcher"] = "syslog"
84- self.CM.log("Testing for %s logs" % self.CM.Env["LogWatcher"])
84+ if watch_pref == "any": self.CM.log("Testing for %s logs" % self.CM.Env["LogWatcher"])
8585 watch_syslog = CTS.LogWatcher(self.CM.Env, self.CM.Env["LogFileName"], patterns, "LogAudit", 30)
8686 watch_syslog.setwatch()
8787
8888 if watch_pref == "any" or watch_pref == "remote":
8989 self.CM.Env["LogWatcher"] = "remote"
90- self.CM.log("Testing for %s logs" % self.CM.Env["LogWatcher"])
90+ if watch_pref == "any": self.CM.debug("Testing for %s logs" % self.CM.Env["LogWatcher"])
9191 watch_remote = CTS.LogWatcher(self.CM.Env, self.CM.Env["LogFileName"], patterns, "LogAudit", 30)
9292 watch_remote.setwatch()
9393
@@ -101,7 +101,7 @@
101101 self.CM.Env["LogWatcher"] = "syslog"
102102 watch_result = watch.lookforall()
103103 if not watch.unmatched:
104- self.CM.log ("Continuing with %s-based log reader" % (self.CM.Env["LogWatcher"]))
104+ if watch_pref == "any": self.CM.log ("Continuing with %s-based log reader" % (self.CM.Env["LogWatcher"]))
105105 return 1
106106
107107 if watch_remote:
@@ -109,7 +109,7 @@
109109 self.CM.Env["LogWatcher"] = "remote"
110110 watch_result = watch.lookforall()
111111 if not watch.unmatched:
112- self.CM.log ("Continuing with %s-based log reader" % (self.CM.Env["LogWatcher"]))
112+ if watch_pref == "any": self.CM.log ("Continuing with %s-based log reader" % (self.CM.Env["LogWatcher"]))
113113 return 1
114114
115115 if watch_syslog and not watch_syslog.unmatched:
Show on old repository browser