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 3 RHEL 6.3 servers connected via a 1 Gb switch. One of them (server) is sharing a local directory through through NFS and the other two (clients) mount that NFS share at startup. Recently I've started to notice that I can't access some of the files on the nfs share from the two clients. I can see the files through ls, but can't cp or ldd and so on. After reboot or remount I may be able to access those files, but not some others so it's seemingly random which files I can access and which I can't.

here is /etc/exports on the nfs server:

/nfs_share client1(rw,no_root_squash) client2(rw,no_root_squash)

and /etc/fstab on the clients

192.168.36.1:/nfs_share /nfs_share nfs rw,exec,suid 0 0

So the behavior is quite inconsistent so I'm not really sure where to start on this. Any pointers will be appreciated.

share|improve this question
    
The next thing to look is permissions and ownership. What exactly are the error messages from cp and ldd? Then check the logs on the clients. Since there are linux file system syscalls failing, all failures except permission problems will be logged. –  Dmitri Chubarov Dec 15 '12 at 10:00
    
There are no errors from cp or ldd. I type "cp some_file", press Enter and it just sits there doing nothing. I'm guessing it's waiting for network communication of some kind since it's trying to access NFS, but not sure why this is happening. –  exfizik Dec 15 '12 at 23:00
    
You could check if there is anything falling into the logs by issuing tail -f /var/log/messages in one terminal window and executing cp somefile in another window. –  Dmitri Chubarov Dec 16 '12 at 11:44
    
Nothing in the logs... –  exfizik Dec 17 '12 at 1:12

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.