summaryrefslogtreecommitdiffstats
path: root/ctdb/config
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-05-25 12:33:52 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-05-25 12:33:52 +1000
commitcaf0e863a4b7045aeb02ddc9101dca5983901cd8 (patch)
tree4b2c669671c2a3dd34cf9bab64e11ccae0974425 /ctdb/config
parent7b163bca180ccddc3fb95fd3f2ed718f28c31b36 (diff)
downloadsamba-caf0e863a4b7045aeb02ddc9101dca5983901cd8.tar.gz
samba-caf0e863a4b7045aeb02ddc9101dca5983901cd8.tar.xz
samba-caf0e863a4b7045aeb02ddc9101dca5983901cd8.zip
remove the obsolete ipmux component.
this is replaced by LVS since a long time (This used to be ctdb commit dca41ec04788922ce5f4c52d346872b3e35f8cbb)
Diffstat (limited to 'ctdb/config')
-rwxr-xr-xctdb/config/ctdb.init1
-rw-r--r--ctdb/config/ctdb.sysconfig9
-rwxr-xr-xctdb/config/events.d/90.ipmux87
3 files changed, 0 insertions, 97 deletions
diff --git a/ctdb/config/ctdb.init b/ctdb/config/ctdb.init
index a45babfe3d..5cf13ac240 100755
--- a/ctdb/config/ctdb.init
+++ b/ctdb/config/ctdb.init
@@ -58,7 +58,6 @@ CTDB_OPTIONS="$CTDB_OPTIONS --reclock=$CTDB_RECOVERY_LOCK"
[ -z "$CTDB_SOCKET" ] || CTDB_OPTIONS="$CTDB_OPTIONS --socket=$CTDB_SOCKET"
[ -z "$CTDB_PUBLIC_ADDRESSES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-addresses=$CTDB_PUBLIC_ADDRESSES"
[ -z "$CTDB_PUBLIC_INTERFACE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-interface=$CTDB_PUBLIC_INTERFACE"
-[ -z "$CTDB_SINGLE_PUBLIC_IP" ] || CTDB_OPTIONS="$CTDB_OPTIONS --single-public-ip=$CTDB_SINGLE_PUBLIC_IP"
[ -z "$CTDB_DBDIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir=$CTDB_DBDIR"
[ -z "$CTDB_DBDIR_PERSISTENT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir-persistent=$CTDB_DBDIR_PERSISTENT"
[ -z "$CTDB_EVENT_SCRIPT_DIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --event-script-dir $CTDB_EVENT_SCRIPT_DIR"
diff --git a/ctdb/config/ctdb.sysconfig b/ctdb/config/ctdb.sysconfig
index 758e89148e..96823eaef1 100644
--- a/ctdb/config/ctdb.sysconfig
+++ b/ctdb/config/ctdb.sysconfig
@@ -29,15 +29,6 @@
# CTDB_LVS_PUBLIC_IP=10.1.1.1
-# IPMUX : OBSOLETE use LVS instead
-# Should ctdb implement a single public ip address across the entire cluster
-# and multiplex incoming connections across the connected nodes
-# When using a single public ip you must also specify the public interface!
-# This makes all incoming traffic go through a single ctdb node which
-# will then forward the packets out acros the other nodes. This will
-# impact performance.
-# CTDB_SINGLE_PUBLIC_IP=10.1.1.1
-
# should ctdb manage starting/stopping the Samba service for you?
# default is to not manage Samba
# CTDB_MANAGES_SAMBA=yes
diff --git a/ctdb/config/events.d/90.ipmux b/ctdb/config/events.d/90.ipmux
deleted file mode 100755
index 7f8aeaf1e4..0000000000
--- a/ctdb/config/events.d/90.ipmux
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/sh
-# script to manage the ip multiplexer for a single public address cluster
-
-. $CTDB_BASE/functions
-loadconfig ctdb
-
-[ -z "$CTDB_SINGLE_PUBLIC_IP" ] && exit 0
-[ -z "$CTDB_PUBLIC_INTERFACE" ] && exit 0
-
-cmd="$1"
-shift
-
-PATH=/usr/bin:/bin:/usr/sbin:/sbin:$PATH
-
-case $cmd in
- startup)
- modprobe ip_queue
- ip addr add $CTDB_SINGLE_PUBLIC_IP/32 dev lo scope host >/dev/null 2>/dev/null
-
- # do not respond to ARPs that are for ip addresses with scope 'host'
- echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
- ;;
-
- shutdown)
- # remove the ip
- ip addr del $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null
-
- # remove any iptables rules
- iptables -D INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP 2> /dev/null
-
- # kill off any ipmux processes
- killall -9 ctdb_ipmux >/dev/null 2>/dev/null
-
- # flush our route cache
- echo 1 > /proc/sys/net/ipv4/route/flush
- ;;
-
- takeip)
- ;;
-
- releaseip)
- ;;
-
- recovered)
- # remove any previous rule for queueing
- iptables -D INPUT -d $CTDB_SINGLE_PUBLIC_IP -i $CTDB_PUBLIC_INTERFACE -j QUEUE >/dev/null 2>/dev/null
-
- # kill off any ipmux processes
- killall -9 ctdb_ipmux >/dev/null 2>/dev/null
-
- # kill off any tcp connections
- iptables -D INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP 2> /dev/null
- iptables -I INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP
- kill_tcp_connections $CTDB_SINGLE_PUBLIC_IP
- iptables -D INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP 2> /dev/null
-
- # are we the recmaster ?
- ctdb isnotrecmaster >/dev/null 2>/dev/null || {
- # change the ip address to have scope host so we wont respond
- # to arps
- ip addr del $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null
- ip addr add $CTDB_SINGLE_PUBLIC_IP/32 dev lo scope host >/dev/null 2>/dev/null
- exit 0
- }
-
- # change the scope so we start responding to arps
- ip addr del $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null
- ip addr add $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null
-
- # send out a gratious arp so our peers will update their arp tables
- ctdb gratiousarp $CTDB_SINGLE_PUBLIC_IP $CTDB_PUBLIC_INTERFACE >/dev/null 2>/dev/null
-
- # mark all these for queueing
- iptables -I INPUT 1 -d $CTDB_SINGLE_PUBLIC_IP -i $CTDB_PUBLIC_INTERFACE -j QUEUE >/dev/null 2>/dev/null
-
- ctdb_ipmux &
-
- # flush our route cache
- echo 1 > /proc/sys/net/ipv4/route/flush
- ;;
-
- monitor)
- ;;
-
-esac
-
-exit 0