summaryrefslogtreecommitdiff
path: root/ctdb/doc/examples/lvs.conf
blob: e9ade9d5db19f5b30e9c58a38d52e1b090552dc3 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# CTDB configuration for simple cluster with LVS
#
# 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)                 |
#                                                               | 10.1.1.254
#                                                               o (router)
#
# Storage details:
#
#  Each node has a shared storage - /shared
#
#
# Service details:
#
#  Cluster provides file services on single IP address
#
#     10.1.1.101
#
# Since LVS in CTDB uses direct routing, each node needs to have a static IP
# address on the public network.


CTDB_RECOVERY_LOCK=/shared/recovery.lock

#
# Nodes configuration
#
# ---------- /etc/ctdb/nodes ----------
# 192.168.1.1
# 192.168.1.2
# 192.168.1.3
# ---------- /etc/ctdb/nodes ----------
#
# Enable logging to syslog
CTDB_LOGGING=syslog

# Default log level
CTDB_DEBUGLEVEL=NOTICE

# Auto start/stop managed services
CTDB_AUTO_STARTSTOP=yes

#
# Samba configuration
#
CTDB_MANAGES_SAMBA=yes
# CTDB_SAMBA_SKIP_SHARE_CHECK=yes

CTDB_MANAGES_WINBIND=yes

#
# NFS configuration
#
CTDB_MANAGES_NFS=yes
CTDB_RPCINFO_LOCALHOST="127.0.0.1"

#
# LVS configuration
#
# ---------- /etc/ctdb/lvs_nodes ----------
# 192.168.1.1
# 192.168.1.2
# 192.168.1.3
# ---------- /etc/ctdb/lvs_nodes ----------
#
CTDB_LVS_NODES=/etc/ctdb/lvs_nodes

CTDB_LVS_PUBLIC_IP=10.1.1.101
CTDB_LVS_PUBLIC_IFACE=eth1