• 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

Revision0080ec086ae9c20ad5c4c3562000c0ad68374f0a (tree)
Time2009-04-07 21:18:12
AuthorAndrew Beekhof <abeekhof@suse...>
CommiterAndrew Beekhof

Log Message

Medium: PE: Correctly log the actions for resources that are being recovered

Change Summary

Incremental Difference

diff -r 25075cf4a4cf -r 0080ec086ae9 pengine/native.c
--- a/pengine/native.c Mon Apr 06 14:51:20 2009 +0200
+++ b/pengine/native.c Tue Apr 07 14:18:12 2009 +0200
@@ -1309,6 +1309,13 @@
13091309 next = rsc->allocated_to;
13101310 if(rsc->running_on) {
13111311 current = rsc->running_on->data;
1312+ if(rsc->role == RSC_ROLE_STOPPED) {
1313+ /*
1314+ * This can occur when resources are being recovered
1315+ * We fiddle with the current role in native_create_actions()
1316+ */
1317+ rsc->role = RSC_ROLE_STARTED;
1318+ }
13121319 }
13131320
13141321 if(current == NULL && is_set(rsc->flags, pe_rsc_orphan)) {
@@ -1372,9 +1379,8 @@
13721379
13731380 if(rsc->next_role == RSC_ROLE_STOPPED || moving) {
13741381 CRM_CHECK(current != NULL,);
1375- if(current != NULL) {
1376- crm_notice("Stop resource %s\t(%s)", rsc->id, current->details->uname);
1377- }
1382+ slist_iter(node, node_t, rsc->running_on, lpc,
1383+ crm_notice("Stop resource %s\t(%s)", rsc->id, node->details->uname));
13781384 }
13791385
13801386 if(rsc->role == RSC_ROLE_STOPPED || moving) {
Show on old repository browser