What to do when the nfsserver hangs on your slug?

I have a slug running on unslung V2.3R63-uNSLUng-6.8-beta.

Sometimes I can’t mount the
exported directories on the slug from my clients in the network. Reading /var/log/messages on the slug I can see the entry

getfh failed: Operation not permitted

This post tracked the cause down to a stale /var/lib/nfs/rmtab file. Wiping all files in /var/lib/nfs/ and executing /opt/etc/init.d/S56nfs-utils – which stops and restarts the nfsd – did the job for me and mounting worked perfectly afterwards.

However, even though I did this quite a view times now I can’t guarantee that this is the proper way to solve this problem. I’m especially not so sure if the wiping part is safe at all. Furthermore, it’s still unclear to me, why the mount problem happens at all and why the file gets stale (feedback is welcome!).

So use this recipe on your own risk.