mount:挂载到NFS服务器'IPADDRESS'失败:RPC错误:程序未注册

我有两个共享一个文件夹的Redhat5 / CentOS系统。 我试图改变共享文件夹的位置,但我遇到了该文件夹的机器上的这个错误…

我怎样才能纠正这一点? 我重新启动电脑,但无济于事。

Server1 – 其“安装”

/etc/fstab IPADDRESS2:/opt/programA/common/files /srv/server2-share nfs rw,intr 0 0 

Server2 – 其“共享”

 /etc/exports /opt/programA/common/files IPADDRESS1/28(rw,insecure,sync,no_root_squash) 

在Server2上运行以下内容

 root@server2 [~]# /etc/init.d/nfs start root@server2 [~]# rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100011 1 udp 875 rquotad 100011 2 udp 875 rquotad 100011 1 tcp 875 rquotad 100011 2 tcp 875 rquotad 100005 1 udp 892 mountd 100005 1 tcp 892 mountd 100005 2 udp 892 mountd 100005 2 tcp 892 mountd 100005 3 udp 892 mountd 100005 3 tcp 892 mountd root@server2 [~]# /etc/init.d/nfs status rpc.mountd (pid 10204) is running... nfsd (pid 10201 10200 10199 10198 10197 10196 10195 10194) is running... rpc.rquotad (pid 10189) is running... 

如果我正确地理解了这一点,你试图改变服务器上的共享位置,而客户端已经挂载了NFS共享。 在将来,我会build议卸载任何客户端上的份额的挂载。 您可以在服务器上使用“showmount”命令来确保没有人安装该共享。