add documentation for both LVS:single-ip and CAPABILITIES:wan-accelerator
[metze/ctdb/wip.git] / doc / ctdbd.1.html
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ctdbd</title><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="ctdbd.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ctdbd &#8212; The CTDB cluster daemon</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">ctdbd</code> </p></div><div class="cmdsynopsis"><p><code class="command">ctdbd</code>  [-? --help] [-d --debug=&lt;INTEGER&gt;] {--dbdir=&lt;directory&gt;} {--dbdir-persistent=&lt;directory&gt;} [--event-script-dir=&lt;directory&gt;] [-i --interactive] [--listen=&lt;address&gt;] [--logfile=&lt;filename&gt;] [--lvs] {--nlist=&lt;filename&gt;} [--no-lmaster] [--no-recmaster] [--nosetsched] [--public-addresses=&lt;filename&gt;] [--public-interface=&lt;interface&gt;] {--reclock=&lt;filename&gt;} [--single-public-ip=&lt;address&gt;] [--socket=&lt;filename&gt;] [--start-as-disabled] [--syslog] [--torture] [--transport=&lt;STRING&gt;] [--usage]</p></div></div><div class="refsect1" lang="en"><a name="id2481166"></a><h2>DESCRIPTION</h2><p>
2       ctdbd is the main ctdb daemon.
3     </p><p>
4       ctdbd provides a clustered version of the TDB database with automatic rebuild/recovery of the databases upon nodefailures.
5     </p><p>
6       Combined with a cluster filesystem ctdbd provides a full HA environment for services such as clustered Samba and NFS as well as other services.
7     </p><p>
8       ctdbd provides monitoring of all nodes in the cluster and automatically reconfigures the cluster and recovers upon node failures.
9     </p><p>
10       ctdbd is the main component in clustered Samba that provides a high-awailability load-sharing CIFS server cluster.
11     </p></div><div class="refsect1" lang="en"><a name="id2481198"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-? --help</span></dt><dd><p>
12             Print some help text to the screen.
13           </p></dd><dt><span class="term">-d --debug=&lt;DEBUGLEVEL&gt;</span></dt><dd><p>
14             This option sets the debuglevel on the ctdbd daemon which controls what will be written to the logfile. The default is 0 which will only log important events and errors. A larger number will provide additional logging.
15           </p></dd><dt><span class="term">--dbdir=&lt;directory&gt;</span></dt><dd><p>
16             This is the directory on local storage where ctdbd keeps the local
17             copy of the TDB databases. This directory is local for each node and should not be stored on the shared cluster filesystem.
18           </p><p>
19             This directory would usually be /var/ctdb .
20           </p></dd><dt><span class="term">--dbdir-persistent=&lt;directory&gt;</span></dt><dd><p>
21             This is the directory on local storage where ctdbd keeps the local
22             copy of the persistent TDB databases. This directory is local for each node and should not be stored on the shared cluster filesystem.
23           </p><p>
24             This directory would usually be /etc/ctdb/persistent .
25           </p></dd><dt><span class="term">--event-script-dir=&lt;directory&gt;</span></dt><dd><p>
26             This option is used to specify the directory where the CTDB event
27             scripts are stored.
28           </p><p>
29             This will normally be /etc/ctdb/events.d which is part of the ctdb distribution.
30           </p></dd><dt><span class="term">-i --interactive</span></dt><dd><p>
31             By default ctdbd will detach itself from the shell and run in
32             the background as a daemon. This option makes ctdbd to start in interactive mode.
33           </p></dd><dt><span class="term">--listen=&lt;address&gt;</span></dt><dd><p>
34             This specifies which ip address ctdb will bind to. By default ctdbd will bind to the first address it finds in the /etc/ctdb/nodes file and which is also present on the local system in which case you do not need to provide this option.
35           </p><p>
36             This option is only required when you want to run multiple ctdbd daemons/nodes on the same physical host in which case there would be multiple entries in /etc/ctdb/nodes what would match a local interface.
37           </p></dd><dt><span class="term">--logfile=&lt;filename&gt;</span></dt><dd><p>
38             This is the file where ctdbd will write its log. This is usually /var/log/log.ctdb .
39           </p></dd><dt><span class="term">--lvs</span></dt><dd><p>
40           This option is used to activate the LVS capability on a CTDB node.
41           Please see the LVS section.
42           </p></dd><dt><span class="term">--nlist=&lt;filename&gt;</span></dt><dd><p>
43             This file contains a list of the private ip addresses of every node in the cluster. There is one line/ip address for each node. This file must be the same for all nodes in the cluster.
44           </p><p>
45             This file is usually /etc/ctdb/nodes .
46           </p></dd><dt><span class="term">--no-lmaster</span></dt><dd><p>
47           This argument specifies that this node can NOT become an lmaster
48           for records in the database. This means that it will never show up
49           in the vnnmap. This feature is primarily used for making a cluster
50         span across a WAN link and use CTDB as a WAN-accelerator.
51           </p><p>
52           Please see the "remote cluster nodes" section for more information.
53           </p></dd><dt><span class="term">--no-recmaster</span></dt><dd><p>
54           This argument specifies that this node can NOT become a recmaster
55           for the database. This feature is primarily used for making a cluster
56         span across a WAN link and use CTDB as a WAN-accelerator.
57           </p><p>
58           Please see the "remote cluster nodes" section for more information.
59           </p></dd><dt><span class="term">--nosetsched</span></dt><dd><p>
60             This is a ctdbd debugging option. this option is only used when
61             debugging ctdbd.
62           </p><p>
63             Normally ctdb will change its scheduler to run as a real-time 
64             process. This is the default mode for a normal ctdbd operation
65             to gurarantee that ctdbd always gets the cpu cycles that it needs.
66           </p><p>
67             This option is used to tell ctdbd to NOT run as a real-time process
68             and instead run ctdbd as a normal userspace process.
69             This is useful for debugging and when you want to run ctdbd under
70             valgrind or gdb. (You dont want to attach valgrind or gdb to a
71             real-time process.)
72           </p></dd><dt><span class="term">--public_addresses=&lt;filename&gt;</span></dt><dd><p>
73             When used with IP takeover this specifies a file containing the public ip addresses to use on the cluster. This file contains a list of ip addresses netmasks and interfaces. When ctdb is operational it will distribute these public ip addresses evenly across the available nodes.
74           </p><p>
75             This is usually the file /etc/ctdb/public_addresses
76           </p></dd><dt><span class="term">--public-interface=&lt;interface&gt;</span></dt><dd><p>
77             This option tells ctdb which interface to attach public-addresses
78             to and also where to attach the single-public-ip when used.
79             </p><p>
80             This is only required when using public ip addresses and only when
81             you dont specify the interface explicitely on in /etc/ctdb/public_addresses or when you are using --single-public-ip.
82           </p><p>
83           If you omit this argument when using public addresses or single public ip, ctdb will not be able to send out Gratious ARPs correctly or be able to kill tcp connections correctly which will lead to application failures. 
84           </p></dd><dt><span class="term">--reclock=&lt;filename&gt;</span></dt><dd><p>
85             This is the name of the lock file stored of the shared cluster filesystem that ctdbd uses to arbitrate which node has the role of recovery-master.
86             This file must be stored on shared storage.
87           </p></dd><dt><span class="term">--single-public-ip=&lt;address&gt;</span></dt><dd><p>
88             This option is used to activate the "ipmux" or the "lvs"
89             functionality of ctdb where the cluster provides a single 
90             public ip address for the entire cluster. When using this option
91             you must also use the --public-interface option.
92             </p><p>
93             In this mode, all nodes of the cluster will expose a single
94             ip address from all nodes with all incoming traffic to the cluster
95             being passed through the current recmaster. This functionality
96             is similar to using a load-balancing switch.
97           </p><p>
98             All incoming packets are sent to the recmaster which will multiplex
99             the clients across all available nodes and pass the packets on to
100             a different node in the cluster to manage the connection based
101             on the clients ip address. Outgoing packets however are sent
102             directly from the node that was choosen back to the client.
103             Since all incoming packets are sent through the recmaster this will
104             have a throughput and performance impact when used. This impact
105             in performance primarily affects write-performance while 
106             read-performance should be mainly unaffected.
107             Only use this feature if your environment is mostly-read 
108             (i.e. most traffic is from the nodes back to the clients) or
109             if it is not important to get maximum write-performance to the
110             cluster.
111           </p><p>
112             This feature is completely controlled from the eventscripts and 
113             does not require any CTDBD involvement. However, the CTDBD daemon
114             does need to know that the "single public ip" exists so that the 
115             CTDBD daemon will allow clients to set up killtcp to work on this
116             ip address.
117             </p><p>
118             CTDBD only allows clients to use killtcp to kill off (RST) tcp
119             connections to/from an ip address that is either a normal public
120             address or to/from the ip address specified by --single-public-ip.
121             No other tcp connections are allowed to be specified with killtcp.
122           </p><p>
123           Please note that ipmux is obsolete. Use LVS, not ipmux.
124           Please see the LVS section in this manpage for instructions on
125           how to configure and use CTDB with LVS.
126           </p></dd><dt><span class="term">--socket=&lt;filename&gt;</span></dt><dd><p>
127             This specifies the name of the domain socket that ctdbd will create. This socket is used for local clients to attach to and communicate with the ctdbd daemon.
128           </p><p>
129             The default is /tmp/ctdb.socket . You only need to use this option if you plan to run multiple ctdbd daemons on the same physical host.
130           </p></dd><dt><span class="term">--start-as-disabled</span></dt><dd><p>
131           This makes the ctdb daemon to be DISABLED when it starts up.
132           </p><p>
133           As it is DISABLED it will not get any of the public ip addresses
134           allocated to it, and thus this allow you to start ctdb on a node 
135           without causing any ip address to failover from other nodes onto
136           the new node.
137           </p><p>
138           When used, the administrator must keep track of when nodes start and
139           manually enable them again using the "ctdb enable" command, or else
140           the node will not host any services.
141           </p><p>
142           A node that is DISABLED will not host any services and will not be
143           reachable/used by any clients.
144           </p></dd><dt><span class="term">--syslog</span></dt><dd><p>
145             Send all log messages to syslog instead of to the ctdb logfile.
146           </p></dd><dt><span class="term">--torture</span></dt><dd><p>
147             This option is only used for development and testing of ctdbd. It adds artificial errors and failures to the common codepaths in ctdbd to verify that ctdbd can recover correctly for failures.
148           </p><p>
149             You do NOT want to use this option unless you are developing and testing new functionality in ctdbd.
150           </p></dd><dt><span class="term">--transport=&lt;STRING&gt;</span></dt><dd><p>
151             This option specifies which transport to use for ctdbd internode communications. The default is "tcp".
152           </p><p>
153             Currently only "tcp" is supported but "infiniband" might be
154             implemented in the future.
155           </p></dd><dt><span class="term">--usage</span></dt><dd><p>
156             Print useage information to the screen.
157           </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2528782"></a><h2>Private vs Public addresses</h2><p>
158       When used for ip takeover in a HA environment, each node in a ctdb 
159       cluster has multiple ip addresses assigned to it. One private and one or more public.
160     </p><div class="refsect2" lang="en"><a name="id2528792"></a><h3>Private address</h3><p>
161         This is the physical ip address of the node which is configured in 
162         linux and attached to a physical interface. This address uniquely
163         identifies a physical node in the cluster and is the ip addresses
164         that ctdbd will use to communicate with the ctdbd daemons on the
165         other nodes in the cluster.
166       </p><p>
167         The private addresses are configured in /etc/ctdb/nodes 
168         (unless the --nlist option is used) and contain one line for each 
169         node in the cluster. Each line contains the private ip address for one
170         node in the cluster. This file must be the same on all nodes in the
171         cluster.
172       </p><p>
173         Since the private addresses are only available to the network when the
174         corresponding node is up and running you should not use these addresses
175         for clients to connect to services provided by the cluster. Instead
176         client applications should only attach to the public addresses since
177         these are guaranteed to always be available.
178       </p><p>
179         When using ip takeover, it is strongly recommended that the private 
180         addresses are configured on a private network physically separated
181         from the rest of the network and that this private network is dedicated
182         to CTDB traffic.
183       </p>
184       Example /etc/ctdb/nodes for a four node cluster:
185       <pre class="screen">
186         10.1.1.1
187         10.1.1.2
188         10.1.1.3
189         10.1.1.4
190       </pre></div><div class="refsect2" lang="en"><a name="id2528840"></a><h3>Public address</h3><p>
191         A public address on the other hand is not attached to an interface.
192         This address is managed by ctdbd itself and is attached/detached to
193         a physical node at runtime.
194       </p><p>
195         The ctdb cluster will assign/reassign these public addresses across the
196         available healthy nodes in the cluster. When one node fails, its public address
197         will be migrated to and taken over by a different node in the cluster
198         to ensure that all public addresses are always available to clients as 
199         long as there are still nodes available capable of hosting this address.
200       </p><p>
201         These addresses are not physically attached to a specific node. 
202         The 'ctdb ip' command can be used to view the current assignment of 
203         public addresses and which physical node is currently serving it.
204       </p><p>
205         On each node this file contains a list of the public addresses that 
206         this node is capable of hosting.
207         The list also contain the netmask and the 
208         interface where this address should be attached for the case where you
209         may want to serve data out through multiple different interfaces.
210       </p>
211       Example /etc/ctdb/public_addresses for a node that can host 4 public addresses:
212       <pre class="screen">
213         11.1.1.1/24 eth0
214         11.1.1.2/24 eth0
215         11.1.2.1/24 eth1
216         11.1.2.2/24 eth1
217       </pre><p>
218         In most cases this file would be the same on all nodes in a cluster but
219         there are exceptions when one may want to use different files
220         on different nodes.
221         </p>
222         Example: 4 nodes partitioned into two subgroups :
223         <pre class="screen">
224         Node 0:/etc/ctdb/public_addresses
225                 10.1.1.1/24 eth0
226                 10.1.1.2/24 eth0
227
228         Node 1:/etc/ctdb/public_addresses
229                 10.1.1.1/24 eth0
230                 10.1.1.2/24 eth0
231
232         Node 2:/etc/ctdb/public_addresses
233                 10.2.1.1/24 eth0
234                 10.2.1.2/24 eth0
235
236         Node 3:/etc/ctdb/public_addresses
237                 10.2.1.1/24 eth0
238                 10.2.1.2/24 eth0
239         </pre><p>
240         In this example nodes 0 and 1 host two public addresses on the 
241         10.1.1.x network  while nodes 2 and 3 host two public addresses for the 
242         10.2.1.x network.
243         </p><p>
244         Ip address 10.1.1.1 can be hosted by either of nodes 0 or 1 and will be
245         available to clients as long as at least one of these two nodes are
246         available.
247         If both nodes 0 and node 1 become unavailable 10.1.1.1 also becomes 
248         unavailable. 10.1.1.1 can not be failed over to node 2 or node 3 since
249         these nodes do not have this ip address listed in their public
250         addresses file.
251         </p></div></div><div class="refsect1" lang="en"><a name="id2528922"></a><h2>Node status</h2><p>
252       The current status of each node in the cluster can be viewed by the 
253       'ctdb status' command.
254     </p><p>
255       There are five possible for a node.
256     </p><p>
257       OK - This node is fully functional.
258     </p><p>
259       DISCONNECTED - This node could not be connected through the network 
260       and is currently not particpating in the cluster. If there is a 
261       public IP address associated with this node it should have been taken 
262       over by a different node. No services are running on this node.
263     </p><p>
264       DISABLED - This node has been administratively disabled. This node is 
265       still functional and participates in the CTDB cluster but its IP 
266       addresses have been taken over by a different node and no services are 
267       currently being hosted.
268     </p><p>
269       UNHEALTHY - A service provided by this node is malfunctioning and should 
270       be investigated. The CTDB daemon itself is operational and participates 
271       in the cluster. Its public IP address has been taken over by a different 
272       node and no services are currently being hosted. All unhealthy nodes 
273       should be investigated and require an administrative action to rectify.
274     </p><p>
275       BANNED - This node failed too many recovery attempts and has been banned 
276       from participating in the cluster for a period of RecoveryBanPeriod 
277       seconds. Any public IP address has been taken over by other nodes. This 
278       node does not provide any services. All banned nodes should be 
279       investigated and require an administrative action to rectify. This node 
280       does not perticipate in the CTDB cluster but can still be communicated 
281       with. I.e. ctdb commands can be sent to it.
282     </p></div><div class="refsect1" lang="en"><a name="id2528984"></a><h2>PUBLIC TUNABLES</h2><p>
283     These are the public tuneables that can be used to control how ctdb behaves.
284     </p><div class="refsect2" lang="en"><a name="id2528995"></a><h3>KeepaliveInterval</h3><p>Default: 1</p><p>
285     How often should the nodes send keepalives to eachother.
286     </p></div><div class="refsect2" lang="en"><a name="id2529009"></a><h3>KeepaliveLimit</h3><p>Default: 5</p><p>
287     After how many keepalive intervals without any traffic should a node
288     wait until marking the peer as DISCONNECTED.
289     </p></div><div class="refsect2" lang="en"><a name="id2529023"></a><h3>MonitorInterval</h3><p>Default: 15</p><p>
290     How often should ctdb run the event scripts to check for a nodes health.
291     </p></div><div class="refsect2" lang="en"><a name="id2529037"></a><h3>TickleUpdateInterval</h3><p>Default: 20</p><p>
292     How often will ctdb record and store the "tickle" information used to
293     kickstart stalled tcp connections after a recovery.
294     </p></div><div class="refsect2" lang="en"><a name="id2529052"></a><h3>EventScriptTimeout</h3><p>Default: 20</p><p>
295     How long should ctdb let an event script run before aborting it and
296     marking the node unhealthy.
297     </p></div><div class="refsect2" lang="en"><a name="id2529066"></a><h3>RecoveryBanPeriod</h3><p>Default: 300</p><p>
298     If a node becomes banned causing repetitive recovery failures. The node will
299     eventually become banned from the cluster.
300     This controls how long the culprit node will be banned from the cluster
301     before it is allowed to try to join the cluster again.
302     Dont set to small. A node gets banned for a reason and it is usually due
303     to real problems with the node.
304     </p></div><div class="refsect2" lang="en"><a name="id2529085"></a><h3>DatabaseHashSize</h3><p>Default: 100000</p><p>
305     Size of the hash chains for the local store of the tdbs that ctdb manages.
306     </p></div><div class="refsect2" lang="en"><a name="id2529099"></a><h3>RerecoveryTimeout</h3><p>Default: 10</p><p>
307     Once a recovery has completed, no additional recoveries are permitted until this timeout has expired.
308     </p></div><div class="refsect2" lang="en"><a name="id2529114"></a><h3>EnableBans</h3><p>Default: 1</p><p>
309     When set to 0, this disables BANNING completely in the cluster and thus nodes can not get banned, even it they break. Dont set to 0.
310     </p></div><div class="refsect2" lang="en"><a name="id2529128"></a><h3>DeterministicIPs</h3><p>Default: 1</p><p>
311     When enabled, this tunable makes ctdb try to keep public ip addresses locked to specific nodes as far as possible. This makes it easier for debugging since you can know that as long as all nodes are healthy public ip X will always be hosted by node Y. 
312     </p><p>
313     The cost of using deterministic ip address assignment is that it disables part of the logic where ctdb tries to reduce the number of public ip assignment changes in the cluster. This tunable may increase the number of ip failover/failbacks that are performed on the cluster by a small margin.
314     </p></div><div class="refsect2" lang="en"><a name="id2529158"></a><h3>DisableWhenUnhealthy</h3><p>Default: 0</p><p>
315     When set, As soon as a node becomes unhealthy, that node will also automatically become permanently DISABLED. Once a node is DISABLED, the only way to make it participate in the cluster again and host services is by manually enabling the node again using 'ctdb enable'. 
316     </p><p>
317     This disables parts of the resilience and robustness of the cluster and should ONLY be used when the system administrator is actively monitoring the cluster, so that nodes can be enabled again.
318     </p></div><div class="refsect2" lang="en"><a name="id2529182"></a><h3>NoIPFailback</h3><p>Default: 0</p><p>
319     When set to 1, ctdb will not perform failback of ip addresses when a node becomes healthy. Ctdb WILL perform failover of public ip addresses when a node becomes UNHEALTHY, but when the node becomes HEALTHY again, ctdb will not fail the addresses back.
320     </p><p>
321     Use with caution! Normally when a node becomes available to the cluster
322 ctdb will try to reassign public ip addresses onto the new node as a way to distribute the workload evenly across the clusternode. Ctdb tries to make sure that all running nodes have approximately the same number of public addresses it hosts.
323     </p><p>
324     When you enable this tunable, CTDB will no longer attempt to rebalance the cluster by failing ip addresses back to the new nodes. An unbalanced cluster will therefore remain unbalanced until there is manual intervention from the administrator. When this parameter is set, you can manually fail public ip addresses over to the new node(s) using the 'ctdb moveip' command.
325     </p></div></div><div class="refsect1" lang="en"><a name="id2529218"></a><h2>LVS</h2><p>
326     LVS is a mode where CTDB presents one single ip address for the entire
327     cluster. This is an alternative to using public ip addresses and round-robin
328     DNS to loadbalance clients across the cluster.
329     </p><p>
330     This is similar to using a layer-4 loadbalancing switch but with some restrictions.
331     </p><p>
332     In this mode the cluster select a set of nodes in the cluster and loadbalance
333     all client access to the LVS address across this set of nodes. This set of nodes are all LVS capable nodes that are HEALTHY, or if no HEALTHY nodes exists
334     all LVS capable nodes regardless of health status.
335     LVS will however never loadbalance traffic to nodes that are BANNED,
336     DISABLED or DISCONNECTED. The "ctdb lvs" command is used to show
337     which nodes are currently load-balanced across.
338     </p><p>
339     One of the these nodes are elected as the LVSMASTER. This node receives all
340     traffic from clients coming in to the LVS address and multiplexes it
341     across the internal network to one of the nodes that LVS is using.
342     When responding to the client, that node will send the data back
343     directly to the client, bypassing the LVSMASTER node.
344     The command "ctdb lvsmaster" will show which node is the current
345     LVSMASTER.
346     </p><p>
347     The path used for a client i/o is thus :
348     </p><pre class="screen">
349         (1) Client sends request packet to LVSMASTER
350         (2) LVSMASTER passes the request on to one node across the internal network.
351         (3) Selected node processes the request.
352         (4) Node responds back to client.
353     </pre><p>
354     </p><p> 
355     This means that all incoming traffic to the cluster will pass through
356     one physical node, which limits scalability. You can send more data to the
357     LVS address that one physical node can multiplex. This means that you 
358     should not use LVS if your I/O pattern is write-intensive since you will be
359     limited in the available network bandwidth that node can handle.
360     LVS does work wery well for read-intensive workloads where only smallish
361     READ requests are going through the LVSMASTER bottleneck and the majority
362     of the traffic volume (the data in the read replies) goes straight from
363     the processing node back to the clients. For read-intensive i/o patterns you can acheive very high throughput rates in this mode.
364     </p><p>
365     Note: you can use LVS and public addresses at the same time.
366     </p><div class="refsect2" lang="en"><a name="id2529290"></a><h3>Configuration</h3><p>
367     To activate LVS on a CTDB node you must specify CTDB_PUBLIC_INTERFACE and 
368     CTDB_LVS_PUBLIC_ADDRESS in /etc/sysconfig/ctdb.
369         </p><p>
370 You must also specify the "--lvs" command line argument to ctdbd to activete LVS as a capability of the node. This should be done automatically for you by the /etc/init.d/ctdb script.
371         </p><p>
372         Example:
373     </p><pre class="screen">
374         CTDB_PUBLIC_INTERFACE=eth0
375         CTDB_LVS_PUBLIC_IP=10.0.0.237
376         </pre><p>
377         </p></div></div><div class="refsect1" lang="en"><a name="id2529319"></a><h2>REMOTE CLUSTER NODES</h2><p>
378 It is possible to have a CTDB cluster that spans across a WAN link. 
379 For example where you have a CTDB cluster in your datacentre but you also
380 want to have one additional CTDB node located at a remote branch site.
381 This is similar to how a WAN accelerator works but with the difference 
382 that while a WAN-accelerator often acts as a Proxy or a MitM, in 
383 the ctdb remote cluster node configuration the Samba instance at the remote site
384 IS the genuine server, not a proxy and not a MitM, and thus provides 100%
385 correct CIFS semantics to clients.
386     </p><p>
387         See the cluster as one single multihomed samba server where one of
388         the NICs (the remote node) is very far away.
389     </p><p>
390         NOTE: This does require that the cluster filesystem you use can cope
391         with WAN-link latencies. Not all cluster filesystems can handle
392         WAN-link latencies! Whether this will provide very good WAN-accelerator
393         performance or it will perform very poorly depends entirely
394         on how optimized your cluster filesystem is in handling high latency
395         for data and metadata operations.
396     </p><p>
397         To activate a node as being a remote cluster node you need to set
398         the following two parameters in /etc/sysconfig/ctdb  for the remote node:
399         </p><pre class="screen">
400 CTDB_CAPABILITY_LMASTER=no
401 CTDB_CAPABILITY_RECMASTER=no
402         </pre><p>
403     </p><p>
404         Verify with the command "ctdb getcapabilities" that that node no longer
405         has the recmaster or the lmaster capabilities.
406     </p></div><div class="refsect1" lang="en"><a name="id2529370"></a><h2>SEE ALSO</h2><p>
407       ctdb(1), onnode(1)
408       <a href="http://ctdb.samba.org/" target="_top">http://ctdb.samba.org/</a>
409     </p></div><div class="refsect1" lang="en"><a name="id2529383"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
410 Copyright (C) Andrew Tridgell 2007<br>
411 Copyright (C) Ronnie sahlberg 2007<br>
412 <br>
413 This program is free software; you can redistribute it and/or modify<br>
414 it under the terms of the GNU General Public License as published by<br>
415 the Free Software Foundation; either version 3 of the License, or (at<br>
416 your option) any later version.<br>
417 <br>
418 This program is distributed in the hope that it will be useful, but<br>
419 WITHOUT ANY WARRANTY; without even the implied warranty of<br>
420 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>
421 General Public License for more details.<br>
422 <br>
423 You should have received a copy of the GNU General Public License<br>
424 along with this program; if not, see http://www.gnu.org/licenses/.<br>
425 </p></div></div></div></body></html>