All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] use cman_tool leave remove on shutdown/restart
@ 2011-09-26  9:05 Dietmar Maurer
  2011-09-26 10:35 ` Fabio M. Di Nitto
  0 siblings, 1 reply; 5+ messages in thread
From: Dietmar Maurer @ 2011-09-26  9:05 UTC (permalink / raw)
  To: cluster-devel.redhat.com

in /etc/init.d/cman:

I wonder if it would be safe to use the 'remove' option for runlevel 0 and 6. 

Or is that considered dangerous? if so, why?

- Dietmar





^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Cluster-devel] use cman_tool leave remove on shutdown/restart
  2011-09-26  9:05 [Cluster-devel] use cman_tool leave remove on shutdown/restart Dietmar Maurer
@ 2011-09-26 10:35 ` Fabio M. Di Nitto
  2011-09-26 10:55   ` Dietmar Maurer
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio M. Di Nitto @ 2011-09-26 10:35 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On 09/26/2011 11:05 AM, Dietmar Maurer wrote:
> in /etc/init.d/cman:
> 
> I wonder if it would be safe to use the 'remove' option for runlevel 0 and 6. 
> 
> Or is that considered dangerous? if so, why?


The leave "remove" option has to be used only when permanently removing
a node from a cluster.
The "remove" code path, totally cancel the knowledge of that node from
the cluster, including quorum recalculation.

It has to be used very carefully for example when doing some long
planned maintenance of the node.

Fabio



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Cluster-devel] use cman_tool leave remove on shutdown/restart
  2011-09-26 10:35 ` Fabio M. Di Nitto
@ 2011-09-26 10:55   ` Dietmar Maurer
  2011-09-26 11:04     ` Fabio M. Di Nitto
  0 siblings, 1 reply; 5+ messages in thread
From: Dietmar Maurer @ 2011-09-26 10:55 UTC (permalink / raw)
  To: cluster-devel.redhat.com

> The leave "remove" option has to be used only when permanently removing a
> node from a cluster.
> The "remove" code path, totally cancel the knowledge of that node from the
> cluster, including quorum recalculation.
> 
> It has to be used very carefully for example when doing some long planned
> maintenance of the node.

Well, I thought a 'shutdown' indicates that the node will be down for some time?

- Dietmar




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Cluster-devel] use cman_tool leave remove on shutdown/restart
  2011-09-26 10:55   ` Dietmar Maurer
@ 2011-09-26 11:04     ` Fabio M. Di Nitto
  2011-09-26 13:27       ` Dietmar Maurer
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio M. Di Nitto @ 2011-09-26 11:04 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On 09/26/2011 12:55 PM, Dietmar Maurer wrote:
>> The leave "remove" option has to be used only when permanently removing a
>> node from a cluster.
>> The "remove" code path, totally cancel the knowledge of that node from the
>> cluster, including quorum recalculation.
>>
>> It has to be used very carefully for example when doing some long planned
>> maintenance of the node.
> 
> Well, I thought a 'shutdown' indicates that the node will be down for some time?

"some time" is a relative concept.. and there is no perfect boundary.

Let me explain.

Doing a "leave remove" involves other operations on the remaining nodes
to update cluster.conf (for example) to drop that node that's gone.

If your "shutdown" is maybe 10 minutes or 60 minutes to replace one PSU
(or whatever) it might not be worth at all to remove the node from the
cluster in full.

Other users might deem necessary to reconfigure the cluster for that.

Remember you also have a very strict process to readd a node to the cluster.

So it is up to the sysadmin to decide if a 10 minutes or XX hours
downtime is dangerous enough to require a cluster config vs "cluster can
easily operate without a node".

It also strictly depends on the size of the cluster.

There is a corner case (far away) where you could have 2 quorate cluster
forming again (after a leave remove) and that would be BAD.

So leave remove is one option that cannot be enabled by default (it is
indeed dangerous, even for some small corner cases, they can still
happen) but it is there as a tool for cluster admins when necessary (and
has to be used carefully and knowing what is happening internally).

Fabio



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Cluster-devel] use cman_tool leave remove on shutdown/restart
  2011-09-26 11:04     ` Fabio M. Di Nitto
@ 2011-09-26 13:27       ` Dietmar Maurer
  0 siblings, 0 replies; 5+ messages in thread
From: Dietmar Maurer @ 2011-09-26 13:27 UTC (permalink / raw)
  To: cluster-devel.redhat.com

> So leave remove is one option that cannot be enabled by default (it is indeed
> dangerous, even for some small corner cases, they can still
> happen) but it is there as a tool for cluster admins when necessary (and has to be
> used carefully and knowing what is happening internally).

OK, many thanks for that info.

- Dietmar




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-26 13:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26  9:05 [Cluster-devel] use cman_tool leave remove on shutdown/restart Dietmar Maurer
2011-09-26 10:35 ` Fabio M. Di Nitto
2011-09-26 10:55   ` Dietmar Maurer
2011-09-26 11:04     ` Fabio M. Di Nitto
2011-09-26 13:27       ` Dietmar Maurer

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.