diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 697e902b07cedfefc72423f49314dc989b268ce8..bcb29a39d3dbac1393648d7cb7e3169fe42a05ca 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -2527,9 +2527,13 @@ class LUFailoverInstance(LogicalUnit): (instance.name, source_node)) if not rpc.call_instance_shutdown(source_node, instance): - logger.Error("Could not shutdown instance %s on node %s. Proceeding" - " anyway. Please make sure node %s is down" % - (instance.name, source_node, source_node)) + if self.op.ignore_consistency: + logger.Error("Could not shutdown instance %s on node %s. Proceeding" + " anyway. Please make sure node %s is down" % + (instance.name, source_node, source_node)) + else: + raise errors.OpExecError("Could not shutdown instance %s on node %s" % + (instance.name, source_node)) feedback_fn("* deactivating the instance's disks on source node") if not _ShutdownInstanceDisks(instance, self.cfg, ignore_primary=True): diff --git a/man/gnt-instance.sgml b/man/gnt-instance.sgml index 692ac83a4dd08354171a9e3f28dc8772977096aa..39ab31cc8a833bd3d46c6cb22e8b3e831de65076 100644 --- a/man/gnt-instance.sgml +++ b/man/gnt-instance.sgml @@ -813,7 +813,10 @@ node1.example.com:sdb:/dev/md1 disks before failing over the instance. If you are trying to migrate instances off a dead node, this will fail. Use the <option>--ignore-consistency</option> option for this - purpose. + purpose. Note that this option can be dangerous as errors in + shutting down the instance will be ignored, resulting in + possibly having the instance running on two machines in + parallel (on disconnected DRBD drives). </para> <para>