nfs works fine after a reboot but as soon as rpcbind is restarted, we cannot get file locks. only solution has been to reboot, afaict. this problem occurs on several different centos 6 servers and I've duplicated it with fresh installs.
server:
Code:
[root@nfstest01_rm12340 ~]# cat /etc/exports
/srv/test1 nfstest02_rm12340(rw,no_root_squash,fsid=1)
client:
Code:
[root@nfstest02_rm12340 ~]# cat /etc/fstab
...
nfstest01_rm12340:/srv/test1 /mnt/test1 nfs _netdev,intr,noatime,nodiratime,nfsvers=3 0 0
*every* time:
- on server boot, nfs is exported fine
- on client boot, nfs mounts are mounted fine
- on client, run file lock test, successful
- on server, issue a rpcbind restart
- on client, run file lock test, failed
- on server, restart all nfs daemons (rpcbind, nfslock, nfs)
- on client, run file lock test, failed
- on server, reboot, wait for up
- on client, run file lock test, successful
for now, we're just resolved to not restart rpcbind but this cannot be expected behavior, right?