NFSv4... idmapd refuses to start

I recently upgraded to openSUSE 11.1, but I’m having trouble completing my NFS setup.

NFS itself is working, but idmapd isn’t. What that means for me is that every file on the mount appears to be owned by “4294967294”, although it appears file permissions are being processed properly (I can access files I should be able to access, etc).

The thing is, I don’t have my NFS in my fstab. Instead, I have autofs initiating the connection. I’ve had much better luck over the past few years doing it that way.

But the catch with this setup is that idmapd outright refuses to start because it’s not in fstab.

I could put it in fstab, but past experience (right or not) has taught me that because fstab is processed before network services are started, the NFS mount fails. That’s why I’ve used autofs, and that works great… aside this idmapd problem.

With opensuse 11.0, I could simply start the nfs service, and it would start idmapd. But this one…

Not starting NFS client services - no NFS found in /etc/fstab

Any ideas? I already emailed the opensuse mailing list and didn’t get very far.

I put my NFS volumes in fstab, but set the sixth field (fs_passno) as
zero. That way, the mount request is not done at boot time. Next I
added the following lines to /etc/init.d/boot.local:

Ensure that the NFS volumes are mounted

/etc/init.d/mount_nfs &

The file /etc/init.d/mount_nfs is as follows:


Mount the NFS volumes on sonylap

Wait for network to get properly started

/bin/sleep 120

Mount the volumes

/bin/mount /ide
/bin/mount /ide1

The sleep time of 120 seconds is because I use NetworkManager to
control my networks - thus the network is not started until login is
completed. If you use a wired connection controlled by ifup, then a
much shorter time should work.


The reason the nfs client script won’t start is because your NFS lines in fstab are marked noauto, so it reckons you have nothing to mount at boot. So idmapd doesn’t get started.

You’d have to write an init script to start idmapd so that it’s already running by the time autofs mounts it. You can steal the code from /etc/init.d/nfs.