summaryrefslogtreecommitdiffstats
path: root/ctdb/doc/examples/ctdb.conf
blob: 3a8ccc658b899a33cab36139c97e40f7d8e5ae73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# CTDB configuration for simple cluster
#
# This is the sample configuration for a 3-node CTDB cluster providing file
# services via Samba and NFS.
#
# Cluster details:
#
#                internal network (192.168.1.0/24)
#   -------+----------------------+-----------------------+----------
#          |                      |                       |
#          |                      |                       |
#     eth0 | 192.168.1.1     eth0 | 192.168.1.2      eth0 | 192.168.1.3
#    +-----+-----+          +-----+-----+           +-----+-----+
#    |           |          |           |           |           |
#    |  Node 1   |          |  Node 2   |           |  Node 3   |
#    |           |          |           |           |           |
#    +-----+-----+          +-----+-----+           +-----+-----+
#     eth1 | 10.1.1.1        eth1 | 10.1.1.2         eth1 | 10.1.1.3
#          |                      |                       |
#          |                      |                       |
#   -------+----------------------+-----------------------+----------
#                  public network (10.1.1.0/24)
#
#
# Storage details:
#
#  Each node has a shared storage - /shared
#
#
# Service details:
#
#  Cluster provides file services on following IP addresses
#
#     10.1.1.101 - 10.1.1.106
#
#  Each node also has a fixed IP address on public network.  This is used to
#  communicate to network infrastructure (e.g. DNS, Active Directory, ...).
#  Make sure that file services are not available on these fixed IP addresses
#  (e.g. network filtering, using cluster hostname instead of IPs)

[logging]
	# Enable logging to syslog
	location = syslog

	# Default log level
	log level = NOTICE

[cluster]
	cluster lock = /shared/cluster.lock

#
# Nodes configuration
#
# ---------- /etc/ctdb/nodes ----------
# 192.168.1.1
# 192.168.1.2
# 192.168.1.3
# ---------- /etc/ctdb/nodes ----------
#
#
# Public addresses configuration
#
# ---------- /etc/ctdb/public_addresses ----------
# 10.1.1.101/24 eth1
# 10.1.1.102/24 eth1
# 10.1.1.103/24 eth1
# 10.1.1.104/24 eth1
# 10.1.1.105/24 eth1
# 10.1.1.106/24 eth1
# ---------- /etc/ctdb/public_addresses ----------
#
# Event script configuration - see *.options examples