From 4041816de0e286a184a5329941ac5d32a6c11daa Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 4 Apr 2019 15:24:04 +1100 Subject: [PATCH] Change fixed NFS RPC ports to be outside the local port range Seeing some instances where nfsd can't start because its port is in use. On Linux the default local port range is 32768-60999, so the ports used for NFS should be outside this range. The configured range can be checked via: $ sysctl net.ipv4.ip_local_port_range net.ipv4.ip_local_port_range = 32768 60999 Signed-off-by: Martin Schwenke --- ansible/node/roles/nas/templates/nfs_sysconfig.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible/node/roles/nas/templates/nfs_sysconfig.j2 b/ansible/node/roles/nas/templates/nfs_sysconfig.j2 index c103fc7..5069c24 100644 --- a/ansible/node/roles/nas/templates/nfs_sysconfig.j2 +++ b/ansible/node/roles/nas/templates/nfs_sysconfig.j2 @@ -1,11 +1,11 @@ NFS_HOSTNAME="{{ cluster }}" -STATD_PORT=32765 -STATD_OUTGOING_PORT=32766 -MOUNTD_PORT=32767 -RQUOTAD_PORT=32768 -LOCKD_UDPPORT=32769 -LOCKD_TCPPORT=32769 +STATD_PORT=61001 +STATD_OUTGOING_PORT=61002 +MOUNTD_PORT=61003 +RQUOTAD_PORT=61004 +LOCKD_UDPPORT=61005 +LOCKD_TCPPORT=61005 STATDARG="-n ${NFS_HOSTNAME}" STATD_HA_CALLOUT="/etc/ctdb/statd-callout" -- 2.34.1