Hide Forgot
Description of problem: The older /etc/sysconfig/nfs file used to contain many PORT options to allow NFS to be more firewall friendly (so you can fix the port numbers). Since the change to systemd a couple of these have gone: MOUNTD_PORT STATD_PORT These can be fixed in F16 with: RPCMOUNTDOPTS="-p 4003" STATDARG="-p 4001" But it is less clear perhaps. Was this change intended ? Also RQUOTAD_PORT is still present in the sample config file this file but doesn't work! You have to use similar to above: RPCRQUOTADOPTS="-p 4004" to fix it's port. So either RQUOTAD_PORT should be removed from the sample /etc/sysconfig/nfs or else made to work along with a readding in MOUNTD_PORT and STATD_PORT. The lockd ports still can be fixed in this file (LOCKD_TCPPORT and LOCKD_UDPPORT ) and work as intended which seems inconsistent with the other NFS services no longer having port setting config options.
(In reply to comment #0) > Description of problem: > > The older /etc/sysconfig/nfs file used to contain many PORT options to allow > NFS to be more firewall friendly (so you can fix the port numbers). > > Since the change to systemd a couple of these have gone: > > MOUNTD_PORT > STATD_PORT > > These can be fixed in F16 with: > > RPCMOUNTDOPTS="-p 4003" > STATDARG="-p 4001" > > But it is less clear perhaps. Was this change intended ? Unfortunately yes. Systemd scripts lack any programming support like if-then clauses so there is no way of testing if a variable is set or not. > > Also RQUOTAD_PORT is still present in the sample config file this file but > doesn't work! You have to use similar to above: > > RPCRQUOTADOPTS="-p 4004" > > to fix it's port. So either RQUOTAD_PORT should be removed from the sample > /etc/sysconfig/nfs or else made to work along with a readding in MOUNTD_PORT > and > STATD_PORT. I'll do the latter... > > The lockd ports still can be fixed in this file (LOCKD_TCPPORT and > LOCKD_UDPPORT ) and work as intended which seems inconsistent with the other > NFS services no longer having port setting config options. Well this is another systemd-ism... To get the lockd port setting to work, I actually have the systemd script call a shell script in which those variables are used. So those variables are actually shell script variables that are used in a command line to /sbin/sysctl in /usr/lib/nfs-utils/scripts/nfs-lock.preconfig
(In reply to comment #1) > > > > > Also RQUOTAD_PORT is still present in the sample config file this file but > > doesn't work! You have to use similar to above: > > > > RPCRQUOTADOPTS="-p 4004" > > > > to fix it's port. So either RQUOTAD_PORT should be removed from the sample > > /etc/sysconfig/nfs or else made to work along with a readding in MOUNTD_PORT > > and > > STATD_PORT. > I'll do the latter... After further review I'm going to do the former... I just remove it...