Fedora 18 how to enable version 3 nfs server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
in f18 I see this content in file

/lib/systemd/system/nfs.service

[Unit]
Description=NFS Server
Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount rpcbind.service
Requires=nfs-idmap.service nfs-mountd.service nfs-rquotad.service
After=network.target named.service

[Service]
Type=oneshot
RemainAfterExit=yes
StandardError=syslog+console
EnvironmentFile=-/etc/sysconfig/nfs
ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig
ExecStartPre=/usr/sbin/exportfs -r
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
ExecStartPost=-/usr/lib/nfs-utils/scripts/nfs-server.postconfig
ExecStop=/usr/sbin/rpc.nfsd 0
ExecStopPost=/usr/sbin/exportfs -f

[Install]
WantedBy=multi-user.target

What do they mean the lines where after = sign there is a - (minus)

such as

EnvironmentFile=-/etc/sysconfig/nfs

Does this mean that actually environment file is not used?

In fact I configured ports in iptables satisfying this /etc/sysconfig/nfs 
RPCNFSDCOUNT=8
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020

But when I start the nfs service and check ports open

# ps -ef|grep mount
root     19135     1  0 18:15 ?        00:00:00 /usr/sbin/rpc.mountd
root     19821 17123  0 18:53 pts/0    00:00:00 grep --color=auto mount

# lsof -Pp19135
COMMAND     PID USER   FD   TYPE             DEVICE SIZE/OFF       NODE NAME
rpc.mount 19135 root  cwd    DIR              253,1     4096     522387 /var/lib/nfs
rpc.mount 19135 root  rtd    DIR              253,1     4096          2 /
rpc.mount 19135 root  txt    REG              253,1   276336     674293 /usr/sbin/rpc.mountd
rpc.mount 19135 root  mem    REG              253,1    62416     654089 /usr/lib64/libnss_files-2.16.so
rpc.mount 19135 root  mem    REG              253,1   144552     678575 /usr/lib64/libpthread-2.16.so
rpc.mount 19135 root  mem    REG              253,1    40920     655774 /usr/lib64/libgssglue.so.1.0.0
rpc.mount 19135 root  mem    REG              253,1    22624     655691 /usr/lib64/libuuid.so.1.3.0
rpc.mount 19135 root  mem    REG              253,1   116224     664371 /usr/lib64/libnsl-2.16.so
rpc.mount 19135 root  mem    REG              253,1  2071376     678570 /usr/lib64/libc-2.16.so
rpc.mount 19135 root  mem    REG              253,1   162168     655777 /usr/lib64/libtirpc.so.1.0.10
rpc.mount 19135 root  mem    REG              253,1    22440     678573 /usr/lib64/libdl-2.16.so
rpc.mount 19135 root  mem    REG              253,1   217648     678654 /usr/lib64/libblkid.so.1.1.0
rpc.mount 19135 root  mem    REG              253,1    44592     664739 /usr/lib64/libwrap.so.0.7.6
rpc.mount 19135 root  mem    REG              253,1   162616     678569 /usr/lib64/ld-2.16.so
rpc.mount 19135 root    0u   CHR                1,3      0t0       4507 /dev/null
rpc.mount 19135 root    1u   CHR                1,3      0t0       4507 /dev/null
rpc.mount 19135 root    2u   CHR                1,3      0t0       4507 /dev/null
rpc.mount 19135 root    3u   REG                0,3        0 4026532424 /proc/19131/net/rpc/auth.unix.ip/channel
rpc.mount 19135 root    4u   REG                0,3        0 4026532438 /proc/19131/net/rpc/nfsd.export/channel
rpc.mount 19135 root    5u   REG                0,3        0 4026532442 /proc/19131/net/rpc/nfsd.fh/channel
rpc.mount 19135 root    6r   REG              253,1      299     525178 /var/lib/nfs/etab
rpc.mount 19135 root    7u  IPv4             238470      0t0        UDP *:20048 
rpc.mount 19135 root    8u  IPv4             238480      0t0        TCP *:20048 (LISTEN)
rpc.mount 19135 root    9u  IPv6             238483      0t0        UDP *:20048 
rpc.mount 19135 root   10u  IPv6             238486      0t0        TCP *:20048 (LISTEN)
rpc.mount 19135 root   11u  unix 0xffff880036bb8340      0t0     238509 socket

I'm able to mount from another host with version 4 but not version 3 so I suspect /etc/sysconfig/nfs is not parsed...

If this is the case would it be possible to simply remove the "-" or should I configure parameters in another file for Fedora 18?

Thanks in advance,
Gianluca
-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux