All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] use cman_tool leave remove on shutdown/restart
Date: Mon, 26 Sep 2011 13:04:10 +0200	[thread overview]
Message-ID: <4E805C2A.8050603@redhat.com> (raw)
In-Reply-To: <24E144B8C0207547AD09C467A8259F7537902876@lisa.maurer-it.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



  reply	other threads:[~2011-09-26 11:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-09-26 13:27       ` Dietmar Maurer

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=4E805C2A.8050603@redhat.com \
    --to=fdinitto@redhat.com \
    /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.