1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/doc/examples/natgw.conf
Martin Schwenke 1e4016036c ctdb-scripts: Remove configuration variable CTDB_MONITOR_NFS_THREAD_COUNT
This is now always enabled.  If nfsd thread monitoring is not required
then make CTDB_NFS_CALLOUT point to a wrapper around
nfs-linux-kernel-callout that does not implement "monitor-post".

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-07-14 09:57:18 +02:00

109 lines
2.9 KiB
Plaintext

#
# CTDB configuration for simple cluster with NAT gateway
#
# 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 | eth1 | eth1 |
# | | |
# | | |
# -------+----------------------+-----------------------+-----+----
# 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 following IP addresses
#
# 10.1.1.101 - 10.1.1.106
#
# When a node is not hosting any IPs, it cannot connect to network
# infrastructure (e.g. DNS, Active Directory, ...).
#
# Using NAT gateway feature of CTDB allows a node not hosting IPs to connect
# to network infrastructure.
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 ----------
#
CTDB_NODES=/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 ----------
#
CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
# 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"
#
# NAT gateway configuration
#
# ---------- /etc/ctdb/natgw_nodes ----------
# 192.168.1.1
# 192.168.1.2
# 192.168.1.3
# ---------- /etc/ctdb/natgw_nodes ----------
#
CTDB_NATGW_PUBLIC_IP=10.1.1.121/24
CTDB_NATGW_PUBLIC_IFACE=eth1
CTDB_NATGW_DEFAULT_GATEWAY=10.1.1.254
CTDB_NATGW_PRIVATE_NETWORK=192.168.1.0/24
CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes