From 54b193760ce59569fa5813e64af7753afbf0d500 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 27 May 2015 15:00:00 -0400 Subject: common-ha: handle long node names and node names with '-' and '.' in them sourcing the /etc/ganesha/ganesha-ha.conf file seemed like a simple and elegant solution for reading config params, but bash variable names do not allow '-' and '.' in them. Change-Id: I0d2e6cb21017472b1e0f764335cf28946cca95f0 BUG: 1225572 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/10952 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- extras/ganesha/config/ganesha-ha.conf.sample | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'extras/ganesha/config') diff --git a/extras/ganesha/config/ganesha-ha.conf.sample b/extras/ganesha/config/ganesha-ha.conf.sample index f8536d39aca..a7ffa5c28dc 100644 --- a/extras/ganesha/config/ganesha-ha.conf.sample +++ b/extras/ganesha/config/ganesha-ha.conf.sample @@ -1,12 +1,26 @@ # Name of the HA cluster created. +# must be unique within the subnet HA_NAME="ganesha-ha-360" -# The server from which you intend to mount -# the shared volume. +# +# The gluster server from which to mount the shared data volume. HA_VOL_SERVER="server1" +# +# N.B. you may use short names, long names, or IP addresses. Once you +# select one, stay with it as it will be mildly unpleasant to clean up +# if you switch later on. Ensure that all names - short and/or long - +# are in DNS or /etc/hosts on all machines in the cluster. +# # The subset of nodes of the Gluster Trusted Pool # that forms the ganesha HA cluster. IP/Hostname # is specified. HA_CLUSTER_NODES="server1,server2,..." -# Virtual IPs of each of the nodes specified above. -VIP_server1="10.x.x.x" -VIP_server2="10.x.x.x" +#HA_CLUSTER_NODES="server1.lab.redhat.com,server2.lab.redhat.com,..." +#HA_CLUSTER_NODES="10.0.1.1,10.0.1.2,..." +# +# Virtual IPs for each of the nodes specified above. +VIP_server1="10.0.2.1" +VIP_server2="10.0.2.2" +#VIP_server1.lab.redhat.com="10.0.2.1" +#VIP_server2.lab.redhat.com="10.0.2.2" +#VIP_10.0.1.1="10.0.2.1" +#VIP_10.0.1.2="10.0.2.2" -- cgit