Disjoining one domain from a CTDB cluster and joining another
obnox at samba.org
Sat Jan 10 13:19:28 MST 2015
On 2015-01-10 at 10:18 -0800, Richard Sharpe wrote:
> On Sat, Jan 10, 2015 at 9:24 AM, Michael Adam <obnox at samba.org> wrote:
> > If you want to avoid complete cluster downtime
> > though (e.g. for other services), then you can:
> > - ctdb disablescript 50.samba
> > - CTDB_BASE=/etc/ctdb bash /etc/ctdb/events.d/50.samba shutdown
> > - ctdb disablescript 49.winbind
> > - CTDB_BASE=/etc/ctdb bash /etc/ctdb/events.d/49.winbind shutdown
> > - net ads leave
> > - modify config
> > - net ads join
> > - CTDB_BASE=/etc/ctdb bash /etc/ctdb/events.d/49.winbind startup
> > - ctdb enablescript 49.winbind
> > - CTDB_BASE=/etc/ctdb bash /etc/ctdb/events.d/50.samba startup
> > - ctdb enablescript 50.samba
> > Note: the extra steps with 49.winbind only apply to ctdb 2.5 and
> > newer. Older versions only have 50.samba.
> Thank you for that very detailed reply. However, wouldn't we have to
> perform the samba shutdown and winbindd shutdown on all nodes in the
> cluster, and then after having done the unjoin and the join, perform
> the startup on each node in the cluster?
Oh, indeed. I forgot to mention that!
For the sake of completeness:
- the disabling/stopping/starting/enabling
needs to be done on all nodes (onnode all ...)
- the leave and join only needs to be done on one node.
Cheers - Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the samba-technical