oct. 17 12:27:16 myServer systemd[1]: rpcbind.socket failed to listen on sockets: Address family not supported by protocol oct. 17 12:27:16 myServer systemd[1]: Failed to listen on RPCbind Server Activation Socket. oct. 17 12:27:16 myServer systemd[1]: Dependency failed for NFS status monitor for NFSv2/3 locking.. oct. 17 12:27:16 myServer systemd[1]: Job rpc-statd.service/start failed with result 'dependency'. oct. 17 12:27:16 myServer systemd[1]: Starting RPCbind Server Activation Socket. oct. 17 12:27:16 myServer systemd[1]: Starting Kernel Module supporting RPCSEC_GSS... oct. 17 12:27:16 myServer systemd[1]: Starting Preprocess NFS configuration... oct. 17 12:27:16 myServer systemd[1]: Started Kernel Module supporting RPCSEC_GSS. oct. 17 12:27:16 myServer systemd[1]: Started Preprocess NFS configuration.
-- Logs begin at mar. 2017-10-17 12:38:48 CEST, end at mar. 2017-10-17 12:41:14 CEST. -- oct. 17 12:38:49 myServer systemd[1]: [/usr/lib/systemd/system/rpcbind.socket:6] Failed to parse address value, ignoring: [::]:111 oct. 17 12:38:51 myServer systemd[1]: Listening on RPCbind Server Activation Socket. oct. 17 12:38:51 myServer systemd[1]: Starting RPCbind Server Activation Socket.
This is a work in progress.
NFS performance is closely related to RPC performance. Since RPC is a request-reply protocol, it exhibits very poor performance over wide area networks. NFS performs best on fast LANs.
A dependency job for rpc-statd.service failed. See 'journalctl -xe' for details. mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified
Looks like if IP v6 has been disabled via sysctl configurations then it is disabled only on kernel level but not via GRUB so it is not disabled completely hence systemd will attempt to make a connection on port 111 on any IP v6 address, [::]:111 during the boot up (source, similar info from Red Hat documentation).
net.ipv6.conf.all.disable_ipv6 = 1
' > "$ipv6ConfFile"; sysctl -p "$ipv6ConfFile"; dracut -vf; echo 'Now, please reboot.'; }/path/to/export nfsClient(rw)
This is a quick'n'dirty fix, possibly raising security concerns. Do not use as-is in production.
/path/to/export nfsClient(rw,no_root_squash)
NFS allows sharing a directory with any computer over the network. The shared directory can be mounted on a client system and be used like any local directory.
NFS works with several daemons : (OBSOLETE : depends on NFS v(2|3|4)...)
Server install on CentOS 6 (http://www.howtoforge.com/setting-up-an-nfs-server-and-client-on-centos-5.5) : yum install nfs-utils.x86_64 nfs-utils-lib.x86_64 chkconfig --levels 235 nfs on /etc/init.d/nfs start Client install on CentOS 6 : yum install nfs-utils.x86_64 nfs-utils-lib.x86_64
pathName workstation(rw)
pathName workstation (rw)
(rw)
) means that the only client that can access the share is workstation, with read-write access.(rw)
) means that :
/filer/projects/isbadmmvn isbadmmvn(rw) *(ro) /filer/projects/isbadmci isbadmci(rw) *(ro)
Once exports are defined, set them effective with : exportfs option. Don't forget that the daemons must be running correctly before trying to share anything.
Option | Effect |
---|---|
-a | export all directories listed in /etc/exports |
-i | ignore /etc/exports completely and export directories listed further in the command line instead |
-r | re-export /etc/exports after it's been updated |
-v | verbose mode |
You can list active exports / mounted exports with :
showmount comes from nfs-common, nfs-utils.
nfsServer:/path/to/shared/directory /mount/point nfsType options
mount: RPC: Timed out
it could mean that the current client is not declared in /etc/exports on the server side. Moreover, it seems trying to mount an NFS share on a non-declared client makes a daemon hang since the server no longer replies to showmount -e ...