Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a NFS set up with one server and two clients. I'm running into the issue that when I create a file on the server (I'm logged in on the server) I cannot see the new file on the client and visa versa. My problem has somewhat to do with this question but with my problem, the files never show up.

These are the NFS settings on the server (/etc/exports):

/share 192.168.43.57/24(rw,no_root_squash,async) 192.168.123.1/24(rw,no_root_squash,async)

On my clients, this is how I mount the shares:

192.168.43.57:/share     /mnt/share      nfs     rsize=8192,wsize=8192,timeo=14,intr

UPDATE

I've set up some local virtual machines with the same configuration and the problem does not seem to occur this environment. Not sure where to look to start solving this issue.

share|improve this question

2 Answers 2

Is there some error logs when you mount your share ? when you access it the first time ? Do you have a firewall between/in the machines ? Portmap server is it up ?

share|improve this answer
    
I don't see any errors that I can find (want me to look anywhere specific?). iptables are currently only running on the clients but the problem was already there before iptables was added. Disabling iptables doesn't change the behavior. Portmap on the server is running. –  Luke Jul 26 '10 at 10:51
    
Portmap is running too on the client (at least on Debian). If you do 'exportfs -v' on the server, all the shares are available ? If not, 'exportfs -rv' –  Dom Jul 26 '10 at 11:49

I suspect the server exported /share before /share was mounted and clients are seeing the underlying filesystem.

To test (assuming you are on Linux) unmount filesystem on the client, run exportfs -rv on server, and then remount on the client. More drastically you could try exportfs -avu; exportfs -av rather then the exportfs -rv.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.