Hello,
On Fedora 7, I attempted to setup NFS4 between two hosts which didn't work. So, I tried to use NFS with server and client on the same host. I followed the instructions at this address quite exactly.
http://wiki.linux-nfs.org/wiki/index..._configuration
I suspect the example mount command given there might have left off ":/export", so I tried it both ways. Regardless, the same error always occurs. Thanks in advance for any help.
Regards,
Pete
P.S. SELinux is in permissive mode.
Code:[root@homepc ~]# mkdir /export [root@homepc ~]# chmod a+rwxt /export [root@homepc ~]# echo test > /export/testfile.txt [root@homepc ~]# cat /etc/exports /export 127.0.0.1(ro) 192.168.1.2(ro) 192.168.1.3(ro) [root@homepc ~]# /usr/sbin/exportfs -ra [root@homepc ~]# mkdir /mnt/nfs4 [root@homepc ~]# mount -t nfs4 127.0.0.1:/ /mnt/nfs4 mount.nfs4: 127.0.0.1:/ failed, reason given by server: No such file or directory [root@homepc ~]# mount -t nfs4 127.0.0.1:/export /mnt/nfs4 mount.nfs4: 127.0.0.1:/export failed, reason given by server: No such file or directory [root@homepc ~]# /sbin/service iptables stop Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ] [root@homepc ~]# mount -t nfs4 127.0.0.1:/ /mnt/nfs4 mount.nfs4: 127.0.0.1:/ failed, reason given by server: No such file or directory [root@homepc ~]# mount -t nfs4 127.0.0.1:/export /mnt/nfs4 mount.nfs4: 127.0.0.1:/export failed, reason given by server: No such file or directory [root@homepc ~]# /sbin/service nfs restart Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] [root@homepc ~]# mount -t nfs4 127.0.0.1:/ /mnt/nfs4 mount.nfs4: 127.0.0.1:/ failed, reason given by server: No such file or directory [root@homepc ~]# mount -t nfs4 127.0.0.1:/export /mnt/nfs4 mount.nfs4: 127.0.0.1:/export failed, reason given by server: No such file or directory [root@homepc ~]# ls -o /export total 8 -rw-r--r-- 1 root 5 Aug 25 21:02 testfile.txt [root@homepc ~]# cat /etc/hosts.allow # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # portmap: 127.0.0.1, 192.168.1.2, 192.168.1.3 mountd: 127.0.0.1, 192.168.1.2, 192.168.1.3 rquotad: 127.0.0.1, 192.168.1.2, 192.168.1.3 statd: 127.0.0.1, 192.168.1.2, 192.168.1.3 [root@homepc ~]#


Reply With Quote
