NFS: does not map into domain ‘localdomain’

I stumbled on a strange problem regarding NFS, which I hadn’t used for a while on my server. I had some old exports which worked last time I used them, but not any more. I was doing an rsync and suddenly saw messages about chgrp or chmod failing. These messages are expected when uid/gid is not matching between server and client, so what’s up?

Running dmesg showed me messages like these:

NFS: v4 server warhammer does not accept raw uid/gids. Reenabling the idmapper.

Looking in /var/log/syslog I saw messages like these:

rpc.idmapd nss_getpwnam: name ... does not map into domain 'localdomain'

I finally found a working solution here.

I’m not sure when or why this broke. I did re-install my workstation since last time NFS was working, but I’ve done that previously without any NFS problems, and my DNS is correctly set up

Anyway, to recap the solution from the link above:

Editing /etc/idmapd.conf and setting the correct Domain = <my domain name>

Restart idmapd:

/etc/init.d/idmapd restart

I did this on both server and client, since I have some stuff I want to share the other way around as well.

This entry was posted in Linux and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *