ctdb-tests: Switch local daemons to use new style configuration file
[samba.git] / ctdb / doc / examples / lvs.conf
1 #
2 # CTDB configuration for simple cluster with LVS
3 #
4 # This is the sample configuration for a 3-node CTDB cluster providing file
5 # services via Samba and NFS.
6 #
7 # Cluster details:
8 #
9 #                internal network (192.168.1.0/24)
10 #   -------+----------------------+-----------------------+----------
11 #          |                      |                       |
12 #          |                      |                       |
13 #     eth0 | 192.168.1.1     eth0 | 192.168.1.2      eth0 | 192.168.1.3
14 #    +-----+-----+          +-----+-----+           +-----+-----+
15 #    |           |          |           |           |           |
16 #    |  Node 1   |          |  Node 2   |           |  Node 3   |
17 #    |           |          |           |           |           |
18 #    +-----+-----+          +-----+-----+           +-----+-----+
19 #     eth1 | 10.1.1.1        eth1 | 10.1.1.2         eth1 | 10.1.1.3
20 #          |                      |                       |
21 #          |                      |                       |
22 #   -------+----------------------+-----------------------+-----+----
23 #                  public network (10.1.1.0/24)                 |
24 #                                                               | 10.1.1.254
25 #                                                               o (router)
26 #
27 # Storage details:
28 #
29 #  Each node has a shared storage - /shared
30 #
31 #
32 # Service details:
33 #
34 #  Cluster provides file services on single IP address
35 #
36 #     10.1.1.101
37 #
38 # Since LVS in CTDB uses direct routing, each node needs to have a static IP
39 # address on the public network.
40
41
42 CTDB_RECOVERY_LOCK=/shared/recovery.lock
43
44 #
45 # Nodes configuration
46 #
47 # ---------- /etc/ctdb/nodes ----------
48 # 192.168.1.1
49 # 192.168.1.2
50 # 192.168.1.3
51 # ---------- /etc/ctdb/nodes ----------
52 #
53 # Enable logging to syslog
54 CTDB_LOGGING=syslog
55
56 # Default log level
57 CTDB_DEBUGLEVEL=NOTICE
58
59 # Auto start/stop managed services
60 CTDB_AUTO_STARTSTOP=yes
61
62 #
63 # Samba configuration
64 #
65 CTDB_MANAGES_SAMBA=yes
66 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
67
68 CTDB_MANAGES_WINBIND=yes
69
70 #
71 # NFS configuration
72 #
73 CTDB_MANAGES_NFS=yes
74 CTDB_RPCINFO_LOCALHOST="127.0.0.1"
75
76 #
77 # LVS configuration
78 #
79 # ---------- /etc/ctdb/lvs_nodes ----------
80 # 192.168.1.1
81 # 192.168.1.2
82 # 192.168.1.3
83 # ---------- /etc/ctdb/lvs_nodes ----------
84 #
85 CTDB_LVS_NODES=/etc/ctdb/lvs_nodes
86
87 CTDB_LVS_PUBLIC_IP=10.1.1.101
88 CTDB_LVS_PUBLIC_IFACE=eth1