2 # CTDB configuration for simple cluster with LVS
4 # This is the sample configuration for a 3-node CTDB cluster providing file
5 # services via Samba and NFS.
9 # internal network (192.168.1.0/24)
10 # -------+----------------------+-----------------------+----------
13 # eth0 | 192.168.1.1 eth0 | 192.168.1.2 eth0 | 192.168.1.3
14 # +-----+-----+ +-----+-----+ +-----+-----+
16 # | Node 1 | | Node 2 | | Node 3 |
18 # +-----+-----+ +-----+-----+ +-----+-----+
19 # eth1 | 10.1.1.1 eth1 | 10.1.1.2 eth1 | 10.1.1.3
22 # -------+----------------------+-----------------------+-----+----
23 # public network (10.1.1.0/24) |
29 # Each node has a shared storage - /shared
34 # Cluster provides file services on single IP address
38 # Since LVS in CTDB uses direct routing, each node needs to have a static IP
39 # address on the public network.
42 CTDB_RECOVERY_LOCK=/shared/recovery.lock
47 # ---------- /etc/ctdb/nodes ----------
51 # ---------- /etc/ctdb/nodes ----------
53 # Enable logging to syslog
57 CTDB_DEBUGLEVEL=NOTICE
59 # Auto start/stop managed services
60 CTDB_AUTO_STARTSTOP=yes
65 CTDB_MANAGES_SAMBA=yes
66 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
68 CTDB_MANAGES_WINBIND=yes
74 CTDB_RPCINFO_LOCALHOST="127.0.0.1"
79 # ---------- /etc/ctdb/lvs_nodes ----------
83 # ---------- /etc/ctdb/lvs_nodes ----------
85 CTDB_LVS_NODES=/etc/ctdb/lvs_nodes
87 CTDB_LVS_PUBLIC_IP=10.1.1.101
88 CTDB_LVS_PUBLIC_IFACE=eth1