Portal Home > Knowledgebase > Articles Database > NFS hanging upon operations
Posted by devonblzx, 08-23-2012, 09:04 AM I have a fairly simple NFS setup and for some reason on my newer CentOS 6 boxes, I am having an issue with all commands hanging when run on the NFS mount. I have added an allow all to the host, so the firewall shouldn't be blocking it. exports: 10.10.10.1 /home/tmp(rw,sync) On 10.10.10.1: mount -o nolock 10.10.10.2:/home/tmp /home/tmp It mounts fine, however, when trying to run simple commands like echo 1 > test or cat test it will hang and freeze the whole console until I either force kill the process or shut down the NFS server. There are no error messages on the NFS server, the only messages on the NFS client are: Aug 23 08:58:18 app01 kernel: [399453.891817] NFS: nfs_update_inode(0:36/19136513 ct=1 info=0x27e7f) Aug 23 08:58:18 app01 kernel: [399453.891822] NFS: permission(0:36/19136513), mask=0x11, res=0 Aug 23 08:58:21 app01 kernel: [399457.074202] NFS: permission(0:36/19136513), mask=0x1, res=0 Aug 23 08:58:21 app01 kernel: [399457.074205] NFS: permission(0:36/19136513), mask=0x1, res=0 Aug 23 08:58:21 app01 kernel: [399457.074208] NFS: atomic_lookup(0:36/19136513), Which don't look like error messages to me. Anyone dealt with this before? I never had issues before using CentOS.
Posted by devonblzx, 08-23-2012, 09:53 AM Well for anyone who comes across this, up until I find another fix, it seems to be an issue with NFSv4. I was able to bypass it by forcing nfsv3 with the mount option: nfsvers=3 Thereforce mount -o nolock,nfsvers=3 server:/dir /dir
Add to Favourites Print this Article