when tdb_chainunlock() fails, print the tdb error that occured
[metze/ctdb/wip.git] / config / ctdb.sysconfig
1 # Options to ctdbd. This is read by /etc/init.d/ctdb
2
3 # You must specify the location of a shared lock file across all the
4 # nodes for split brain prevention to work.
5 # This must be on shared storage.
6 # CTDB can operate without a reclock file, but this means that there is no
7 # protection against a split brain.
8 # It is strongly suggested to NOT run ctdb without a reclock file.
9 CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"
10
11 # when doing IP takeover you also may specify what network interface
12 # to use by default for the public addresses. Otherwise you must
13 # specify an interface on each line of the public addresses file
14 # there is no default
15 # CTDB_PUBLIC_INTERFACE=eth0
16
17 # Should ctdb do IP takeover? If it should, then specify a file
18 # containing the list of public IP addresses that ctdb will manage
19 # Note that these IPs must be different from those in $NODES above
20 # there is no default.
21 # The syntax is one line per public address of the form :
22 #   <ipaddress>/<netmask> <interface>
23 # Example: 10.1.1.1/24 eth0
24 #
25 # CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
26
27 # Should CTDB present the cluster using a single public ip address to clients
28 # and multiplex clients across all CONNECTED nodes ?
29 # This is based on LVS 
30 # When this is enabled, the entire cluster will present one single ip address
31 # which clients will connect to.
32 # CTDB_LVS_PUBLIC_IP=10.1.1.1
33
34
35 # should ctdb manage starting/stopping the Samba service for you?
36 # default is to not manage Samba
37 # CTDB_MANAGES_SAMBA=yes
38
39 # If there are very many shares it may not be feasible to check that all
40 # of them are available during each monitoring interval.
41 # In that case this check can be disabled
42 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
43 # CTDB_NFS_SKIP_SHARE_CHECK=yes
44
45 # specify which ports we should check that there is a daemon listening to
46 # by default we use testparm and look in smb.conf to figure out.
47 # CTDB_SAMBA_CHECK_PORTS="445"
48
49 # should ctdb manage starting/stopping Winbind service?
50 # if left comented out then it will be autodetected based on smb.conf
51 # CTDB_MANAGES_WINBIND=yes
52
53 # should ctdb manage starting/stopping the VSFTPD service
54 # CTDB_MANAGES_VSFTPD=yes
55
56 # should ctdb manage starting/stopping the ISCSI service
57 # CTDB_MANAGES_ISCSI=yes
58
59 # should ctdb manage starting/stopping the NFS service
60 # CTDB_MANAGES_NFS=yes
61
62 # should ctdb manage starting/stopping the Apache web server httpd?
63 # CTDB_MANAGES_HTTPD
64
65 # The init style (redhat/suse/debian...) is usually auto-detected.
66 # The names of init scripts of services managed by CTDB are set
67 # based on the detected init style. You can override the init style
68 # auto-detection here to explicitly use a scheme. This might be
69 # useful when you have installed a packages (for instance samba
70 # packages) with a different init script layout.
71 # There is no default.
72 # CTDB_INIT_STYLE=redhat
73
74 # The following are specific Samba init scripts / services that you
75 # can override from auto-detection.
76 # There are no defaults.
77 # CTDB_SERVICE_SMB=smb
78 # CTDB_SERVICE_NMB=nmb
79 # CTDB_SERVICE_WINBIND=winbind
80
81 # you may wish to raise the file descriptor limit for ctdb
82 # use a ulimit command here. ctdb needs one file descriptor per
83 # connected client (ie. one per connected client in Samba)
84 #  ulimit -n 10000
85
86 # the NODES file must be specified or ctdb won't start
87 # it should contain a list of IPs that ctdb will use
88 # it must be exactly the same on all cluster nodes
89 # defaults to /etc/ctdb/nodes
90 # CTDB_NODES=/etc/ctdb/nodes
91
92 # a script to run when node health changes
93 # CTDB_NOTIFY_SCRIPT=/etc/ctdb/notify.sh
94
95 # the directory to put the local ctdb database files in
96 # defaults to /var/ctdb
97 # CTDB_DBDIR=/var/ctdb
98
99 # the directory to put the local persistent ctdb database files in
100 # defaults to /var/ctdb/persistent
101 # CTDB_DBDIR_PERSISTENT=/var/ctdb/persistent
102
103 # the directory where service specific event scripts are stored
104 # defaults to /etc/ctdb/events.d
105 # CTDB_EVENT_SCRIPT_DIR=/etc/ctdb/events.d
106
107 # the location of the local ctdb socket
108 # defaults to /tmp/ctdb.socket
109 # CTDB_SOCKET=/tmp/ctdb.socket
110
111 # what transport to use. Only tcp is currently supported
112 # defaults to tcp
113 # CTDB_TRANSPORT="tcp"
114
115 # These setting allow monitoring for low/out-out of memory conditions.
116 #
117 # If set, once available memory drops below CTDB_MONITOR_FREE_MEMORY_WARN
118 # ctdb will start logging messages that memory is low, but will not
119 # take any further action.
120 #
121 # If the amount of free memory drops below CTDB_MONITOR_FREE_MEMORY 
122 # ctdb will fail all service over to a different node and finally shutdown.
123 # Once this occurs, the administrator needs to find the reason for the OOM
124 # situation, rectify it and restart ctdb with "service ctdb start"
125 # The unit is MByte
126 # CTDB_MONITOR_FREE_MEMORY_WARN=100
127 # CTDB_MONITOR_FREE_MEMORY=10
128
129 # When set to yes, the CTDB node will start in DISABLED mode and not host
130 # any public ip addresses. The administrator needs to explicitely enable
131 # the node with "ctdb enable"
132 # CTDB_START_AS_DISABLED="yes"
133
134 # LMASTER and RECMASTER capabilities.
135 # By default all nodes are capable of both being LMASTER for records and
136 # also for taking the RECMASTER role and perform recovery.
137 # These parameters can be used to disable these two roles on a node.
138 # Note: If there are NO available nodes left in a cluster that can perform
139 # the RECMASTER role, the cluster will not be able to recover from a failure
140 # and will remain in RECOVERY mode until an RECMASTER capable node becomes
141 # available. Same for LMASTER.
142 # These parametersd are useful for scenarios where you have one "remote" node
143 # in a cluster and you do not want the remote node to be fully participating
144 # in the cluster and slow things down.
145 # For that case, set both roles to "no" for the remote node on the remote site
146 # but leave the roles default to "yes" on the primary nodes in the central
147 # datacentre.
148 # CTDB_CAPABILITY_RECMASTER=yes
149 # CTDB_CAPABILITY_LMASTER=yes
150
151 # NAT-GW configuration
152 # Some services running on nthe CTDB node may need to originate traffic to
153 # remote servers before the node is assigned any IP addresses,
154 # This is problematic since before the node has public addresses the node might
155 # not be able to route traffic to the public networks.
156 # One solution is to have static public addresses assigned with routing
157 # in addition to the public address interfaces, thus guaranteeing that
158 # a node always can route traffic to the external network.
159 # This is the most simple solution but it uses up a large number of 
160 # additional ip addresses.
161 #
162 # A more complex solution is NAT-GW.
163 # In this mode we only need one additional ip address for the cluster from
164 # the exsternal public network.
165 # One of the nodes in the cluster is elected to be hosting this ip address
166 # so it can reach the external services. This node is also configured
167 # to use NAT MASQUERADING for all traffic from the internal private network
168 # to the external network. This node is the NAT-GW node.
169 #
170 # All other nodes are set up with a default rote with a metric of 10 to point
171 # to the nat-gw node.
172
173 # The effect of this is that only when a node does not have a public address
174 # and thus no proper routes to the external world it will instead
175 # route all packets through the nat-gw node.
176 #
177 # CTDB_NATGW_NODES is the list of nodes that belong to this natgw group.
178 # You can have multiple natgw groups in one cluster but each node
179 # can only belong to one single natgw group.
180 #
181 # CTDB_NATGW_PUBLIC_IP=10.0.0.227/24
182 # CTDB_NATGW_PUBLIC_IFACE=eth0
183 # CTDB_NATGW_DEFAULT_GATEWAY=10.0.0.1
184 # CTDB_NATGW_PRIVATE_NETWORK=10.1.1.0/24
185 # CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes
186
187 # where to log messages
188 # the default is /var/log/log.ctdb
189 # CTDB_LOGFILE=/var/log/log.ctdb
190
191 # what debug level to run at. Higher means more verbose
192 # the default is ERR
193 CTDB_DEBUGLEVEL=ERR
194
195 # whether to suppress core files.  Default is no.
196 # CTDB_SUPPRESS_COREFILE=yes
197
198 # Write debug messages to syslog instead of logfile?
199 # The default is not to use syslog.
200 # CTDB_SYSLOG=no
201
202 # Should the 99.timeout monitor event script be run?
203 # This event script just sleeps long enough to trigger the
204 # event script timeout. Might be useful for debugging.
205 # The default is "no".
206 # CTDB_RUN_TIMEOUT_MONITOR=no
207
208 # Should ctdbd start with corrupted/unhealthy persistent databases?
209 # This parameter specifies the max error count for persistent health
210 # checks before the "startup" event. The value must be a positive
211 # interger value, "0" or "-1".
212 # The default is "0", which means ctdbd will not start.
213 # "-1" means wait forever.
214 # CTDB_MAX_PERSISTENT_CHECK_ERRORS=0
215
216 # set any default tuning options for ctdb
217 # use CTDB_SET_XXXX=value where XXXX is the name of the tuning
218 # variable
219 # for example
220 #    CTDB_SET_TRAVERSETIMEOUT=60
221 # you can get a list of variables using "ctdb listvars"
222
223 # any other options you might want. Run ctdbd --help for a list
224 # CTDB_OPTIONS=
225