From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci/modules/cluster ClusterStatus.cpp
Date: 5 Oct 2006 19:24:31 -0000 [thread overview]
Message-ID: <20061005192431.17443.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-10-05 19:24:30
Modified files:
ricci/modules/cluster: ClusterStatus.cpp
Log message:
cluster module: start/stop qdiskd if needed
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterStatus.cpp.diff?cvsroot=cluster&r1=1.12&r2=1.13
--- conga/ricci/modules/cluster/ClusterStatus.cpp 2006/10/05 17:38:01 1.12
+++ conga/ricci/modules/cluster/ClusterStatus.cpp 2006/10/05 19:24:30 1.13
@@ -116,7 +116,6 @@
if (stat.get_attr("cluster_version") == "4") {
run_initd("ccsd", true, false);
- cluster_conf = ClusterConf::get(); // ccsd should bring newest cluster.conf
if (ClusterConf::is_cman(cluster_conf))
try {
run_initd("cman", true, true);
@@ -144,6 +143,16 @@
}
}
+ bool use_qdisk = false;
+ cluster_conf = ClusterConf::get(); // ccsd should bring newest cluster.conf
+ for (list<XMLObject>::const_iterator iter = cluster_conf.children().begin();
+ iter != cluster_conf.children().end();
+ iter++)
+ if (iter->tag() == "quorumd")
+ use_qdisk = true;
+
+ if (use_qdisk)
+ run_initd("qdiskd", true, false);
run_initd("fenced", true, false);
run_initd("clvmd", true, false);
run_initd("gfs", true, false);
@@ -159,6 +168,10 @@
run_chkconfig("cman", false);
run_chkconfig("lock_gulmd", true);
}
+ if (use_qdisk)
+ run_chkconfig("qdiskd", true);
+ else
+ run_chkconfig("qdiskd", false);
run_chkconfig("fenced", true);
run_chkconfig("clvmd", true);
run_chkconfig("gfs", true);
@@ -199,9 +212,9 @@
iter++)
if (iter->tag() == "quorumd")
use_qdisk = true;
+
if (use_qdisk)
run_initd("qdiskd", true, false);
-
run_initd("clvmd", true, false);
run_initd("gfs", true, false);
run_initd("gfs2", true, false);
@@ -246,6 +259,7 @@
run_initd("gfs", false, false);
run_initd("clvmd", false, false);
run_initd("fenced", false, false);
+ run_initd("qdiskd", false, false);
if (ClusterConf::is_cman(ClusterConf::get()))
cman_leave();
else
@@ -257,6 +271,7 @@
run_chkconfig("ccsd", false);
run_chkconfig("cman", false);
run_chkconfig("lock_gulmd", false);
+ run_chkconfig("qdiskd", false);
run_chkconfig("fenced", false);
run_chkconfig("clvmd", false);
run_chkconfig("gfs", false);
next reply other threads:[~2006-10-05 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-05 19:24 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-02-05 22:32 [Cluster-devel] conga/ricci/modules/cluster ClusterStatus.cpp kupcevic
2007-02-05 22:38 rmccabe
2007-03-06 9:09 kupcevic
2007-03-06 9:13 kupcevic
2007-03-06 9:15 kupcevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061005192431.17443.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.