summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/hast.conf.5
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-21 08:54:59 +0000
committerpjd <pjd@FreeBSD.org>2011-03-21 08:54:59 +0000
commit3420a736119b646db3defc2c3e24d534e35d73a0 (patch)
treec174097a26c9fb50392210eb339837c6cf4e95d9 /sbin/hastd/hast.conf.5
parentee6f63ce1774533a3602145d9627d54d14d70769 (diff)
downloadFreeBSD-src-3420a736119b646db3defc2c3e24d534e35d73a0.zip
FreeBSD-src-3420a736119b646db3defc2c3e24d534e35d73a0.tar.gz
In hast.conf we define the other node's address in 'remote' variable.
This way we know how to connect to secondary node when we are primary. The same variable is used by the secondary node - it only accepts connections from the address stored in 'remote' variable. In cluster configurations it is common that each node has its individual IP address and there is one addtional shared IP address which is assigned to primary node. It seems it is possible that if the shared IP address is from the same network as the individual IP address it might be choosen by the kernel as a source address for connection with the secondary node. Such connection will be rejected by secondary, as it doesn't come from primary node individual IP. Add 'source' variable that allows to specify source IP address we want to bind to before connecting to the secondary node. MFC after: 1 week
Diffstat (limited to 'sbin/hastd/hast.conf.5')
-rw-r--r--sbin/hastd/hast.conf.514
1 files changed, 13 insertions, 1 deletions
diff --git a/sbin/hastd/hast.conf.5 b/sbin/hastd/hast.conf.5
index f4d0754..9bf6c4e 100644
--- a/sbin/hastd/hast.conf.5
+++ b/sbin/hastd/hast.conf.5
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 30, 2010
+.Dd March 20, 2011
.Dt HAST.CONF 5
.Os
.Sh NAME
@@ -93,6 +93,7 @@ resource <name> {
local <path>
# Required
remote <addr>
+ source <addr>
}
on <node> {
# Resource-node section
@@ -101,6 +102,7 @@ resource <name> {
local <path>
# Required
remote <addr>
+ source <addr>
}
}
.Ed
@@ -337,6 +339,14 @@ A special value of
.Va none
can be used when the remote address is not yet known (eg. the other node is not
set up yet).
+.It Ic source Aq addr
+.Pp
+Local address to bind to before connecting to the remote
+.Nm hastd
+daemon.
+Format is the same as for the
+.Ic listen
+statement.
.El
.Sh FILES
.Bl -tag -width ".Pa /var/run/hastctl" -compact
@@ -367,10 +377,12 @@ resource shared {
resource tank {
on hasta {
local /dev/mirror/tanka
+ source tcp4://10.0.0.1
remote tcp4://10.0.0.2
}
on hastb {
local /dev/mirror/tankb
+ source tcp4://10.0.0.2
remote tcp4://10.0.0.1
}
}
OpenPOWER on IntegriCloud