Hi,
While I check crm_mon display, it keeps node's status as "standby" after
that node was shutdown.
CIB status is here;
<node_state
uname="prec370e" crmd="offline"
in_ccm="false" ha="dead" join="down"
id="9d9ca527-cea9-470c-9e03-e49fe5630bba" shutdown="0" expected="down"
crm-debug-origin="crmd_ha_status_callback">
<nvpair
id="standby-9d9ca527-cea9-470c-9e03-e49fe5630bba"
name="standby" value="on"/>
I think it's more convenient if crm_mon can print the status like this.
============
Last updated: Thu Dec 20 15:43:02 2007
Current DC: prec370d (6a42b4b7-7a31-4ae7-b241-ed4ad4267ec6)
2 Nodes configured.
0 Resources configured.
============
Node: prec370e (9d9ca527-cea9-470c-9e03-e49fe5630bba): OFFLINE(standby)
Node: prec370d (6a42b4b7-7a31-4ae7-b241-ed4ad4267ec6): online
--- a/crm/admin/crm_mon.c 2007-12-20 14:10:44.000000000 +0900
+++ b/crm/admin/crm_mon.c 2007-12-20 15:40:51.000000000 +0900
@@ -530,7 +530,11 @@
slist_iter(node, node_t, data_set.nodes, lpc2,
const char *node_mode = "OFFLINE";
if(node->details->standby) {
- node_mode = "standby";
+ if (node->details->online) {
+ node_mode = "standby";
+ } else {
+ node_mode = "OFFLINE(standby)";
+ }
} else if(node->details->online) {
node_mode = "online";
}
Best Regards,
Junko Ikeda
NTT DATA INTELLILINK CORPORATION
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems