Archive for May 27th, 2014

NFSV4 does id comparisions, eg user and uid must be the same across hosts or it will automaticly map the file to owner nobody. This can be changed through configuration files and the like.

Easy win is to make sure both boxes are part of the same DNS domain in /etc/idmapd.conf you want domain = domain.com if dns resolution is flaky.

But i found a big pain was that i fixed the mismatched UID’s and i could not get it to accept the update.

I restarted NFS countless times, remounted the mount countless times and so on.

Of course nfs does some form of caching that isnt cleared by a restart

To clear the cache
nfsidmap -c

gawk ‘{if(~ /\.tar/){lasttar=}; if(~ /^filenamehere\.jpg$/){print lasttar; exit;}}’ < internat.txt