Installation guide
and 1 fail does this public address become unavailable to clients. All other public
addresses can only be served by one single node respectively and will therefore only be
available if the respective node is also available.
The /etc/ctd b/publi c_add resses file on node 0 includes the following contents:
198.162.1.1/24 eth0
198.162.2.1/24 eth1
The /etc/ctd b/publi c_add resses file on node 1 includes the following contents:
198.162.2.1/24 eth1
198.162.3.1/24 eth2
The /etc/ctd b/publi c_add resses file on node 2 includes the following contents:
198.162.3.2/24 eth2
C T D B_R EC O VER Y _LO C K
Specifies a lock file that CTDB uses internally for recovery. This file must reside on shared
storage such that all the cluster nodes have access to it. The example in this section uses
the GFS2 file system that will be mounted at /mnt/ctd b on all nodes. This is different from
the GFS2 file system that will host the Samba share that will be exported. This recovery lock
file is used to prevent split-brain scenarios. With newer versions of CTDB (1.0.112 and
later), specifying this file is optional as long as it is substituted with another split-brain
prevention mechanism.
C T D B_MANAG ES_SAMBA
When enabling by setting it to yes, specifies that CTDB is allowed to start and stop the
Samba service as it deems necessary to provide service migration/failover.
When C T D B_MANAGES_SAMBA is enabled, you should disable automatic i ni t startup of
the smb and nmb daemons by executing the following commands:
[root@ clusmb-01 ~]# chkco nfi g snb off
[root@ clusmb-01 ~]# chkco nfi g nmb off
C T D B_MANAG ES_WINBIND
When enabling by setting it to yes, specifies that CTDB is allowed to start and stop the
wi nbi nd daemon as required. This should be enabled when you are using CTDB in a
Windows domain or in active directory security mode.
When C T D B_MANAGES_WINBIND is enabled, you should disable automatic i ni t startup
of the wi nbi nd daemon by executing the following command:
[root@ clusmb-01 ~]# chkco nfi g wi nd i nbd o ff
11.5. Samba Configurat ion
The Samba configuration file smb. co nf is located at /etc/samba/smb.co nf in this example. It
contains the following parameters:
Chapt er 1 1 . Clust ered Samba Con fig urat ion
165