cluster: master - cman: remove set_networking_params
David Teigland
teigland at fedoraproject.org
Thu Dec 3 19:39:20 UTC 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=62b029332b988f9e44fb1a68cf466982e54b3ee9
Commit: 62b029332b988f9e44fb1a68cf466982e54b3ee9
Parent: bcf995db647d599e398df117cfc3fb85aab3c3a5
Author: David Teigland <teigland at redhat.com>
AuthorDate: Thu Dec 3 14:35:42 2009 -0600
Committer: David Teigland <teigland at redhat.com>
CommitterDate: Thu Dec 3 14:35:42 2009 -0600
cman: remove set_networking_params
dlm_controld now increases rmem values when necessary
Signed-off-by: David Teigland <teigland at redhat.com>
---
cman/init.d/cman.in | 40 ----------------------------------------
1 files changed, 0 insertions(+), 40 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 67b3b4e..ef89c85 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -96,16 +96,6 @@ fi
# indefinitely set the value to -1.
[ -z "$FENCE_JOIN_TIMEOUT" ] && FENCE_JOIN_TIMEOUT=20
-# NET_RMEM_DEFAULT -- minimum value for rmem_default. If this is set
-# higher elsewhere it will not be reduced here.
-# These two values are only really needed for the DLM when using sctp
-# but do no harm.
-[ -z "$NET_RMEM_DEFAULT" ] && NET_RMEM_DEFAULT=4194304
-
-# NET_RMEM_MAX -- minimum value for rmem_max. If this is set
-# higher elsewhere it will not be reduced here.
-[ -z "$NET_RMEM_MAX" ] && NET_RMEM_MAX=4194304
-
# FENCED_MEMBER_DELAY -- amount of time to delay fence_tool join to allow
# all nodes in cluster.conf to become cluster members. In seconds.
[ -z "$FENCED_MEMBER_DELAY" ] && FENCED_MEMBER_DELAY=45
@@ -371,26 +361,6 @@ fence_xvmd_enabled()
return 0
}
-set_networking_params()
-{
- if [ ! -f /proc/sys/net/core/rmem_default ]
- then
- return 0;
- fi
-
- value="$(cat /proc/sys/net/core/rmem_default)"
- if [ $value -le $NET_RMEM_DEFAULT ]
- then
- echo $NET_RMEM_DEFAULT > /proc/sys/net/core/rmem_default
- fi
-
- value="$(cat /proc/sys/net/core/rmem_max)"
- if [ $value -le $NET_RMEM_MAX ]
- then
- echo $NET_RMEM_MAX > /proc/sys/net/core/rmem_max
- fi
-}
-
fence_join_enabled()
{
#
@@ -448,16 +418,6 @@ start()
return 1
fi
- echo -n " Setting network parameters... "
- set_networking_params
- if [ $? -eq 0 ]
- then
- echo "done"
- else
- echo "failed"
- return 1
- fi
-
echo -n " Starting cman... "
start_cman
if [ $? -eq 0 ]
More information about the cluster-commits
mailing list