[Pacemaker] Resource won't switch from one node to another during power shutdown

Andrew Beekhof beekhof at gmail.com
Fri Apr 24 03:43:26 EDT 2009


On Fri, Apr 24, 2009 at 09:03, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> Hi,
>
> On Thu, Apr 23, 2009 at 04:25:26PM -0400, Paul Osier wrote:

> Missing stonith? The default for stonith is enable (see pengine
> metadata) and you don't have any stonith resources. crm_verify
> should tell you that as well.

This seems to be a common mistake.
For this reason I've made it a configuration error and expanded the message:

diff -r af6308d2485c -r 2addd0a15cec lib/pengine/unpack.c
--- a/lib/pengine/unpack.c	Thu Apr 23 16:28:40 2009 +0200
+++ b/lib/pengine/unpack.c	Fri Apr 24 09:40:12 2009 +0200
@@ -289,7 +289,9 @@ unpack_resources(xmlNode * xml_resources
 		data_set->resources, sort_rsc_priority);

 	if(is_set(data_set->flags, pe_flag_stonith_enabled) &&
is_set(data_set->flags, pe_flag_have_stonith_resource) == FALSE) {
-	    crm_config_warn("No STONITH resources have been defined");
+	    crm_config_err("No STONITH resources have been defined");
+	    crm_config_err("Either configure some or disable STONITH with
the stonith-enabled option");
+	    crm_config_err("NOTE: Clusters with shared data need STONITH to
ensure data integrity");
 	}
 	
 	return TRUE;




More information about the Pacemaker mailing list