Description of problem: the NFS service fails to start unless the rpcbind service is running, but the dependency is not appropriately referenced in /lib/systemd/system/nfs-server.service Version-Release number of selected component (if applicable): Name : nfs-utils Epoch : 1 Version : 1.2.5 Release : 3.fc16 nfs-utils-1.2.5-3.fc16.src.rpm Steps to Reproduce: 1.systemctl start nfs-server.service Actual results: Failed rpc calls, service does not start Expected results: systemctl starts rpcbind first, then proceeds to start the nfs service. Additional info: adding 'Wants=rpcbind.service' to /lib/systemd/system/nfs-server.service fixes this. I just rebooted to test - my nfs mounts defined in /etc/fstab are still the slowest units to load...
(In reply to comment #0) > Description of problem: > the NFS service fails to start unless the rpcbind service is running, but the > dependency is not appropriately referenced in > /lib/systemd/system/nfs-server.service > [ sip ] > adding 'Wants=rpcbind.service' to /lib/systemd/system/nfs-server.service fixes > this. > > I just rebooted to test - my nfs mounts defined in /etc/fstab are still the > slowest units to load... So the After=syslog.target network.target rpcbind.service line does not start cause rpcbind to be start before the nfs server??
Created attachment 549758 [details] testing dependencies and illustrating workaround testing procedure
After= does not cause rpcbind to be started with nfs-server. the Wants= does cause rpcbind to be started with nfs-server. I've attached the process I used to establish this, and my workaround/solution, hope it helps.
Note that there is a new set of unit files in bug 769879 that you can take for a spin and test. Just follow what's mentioned in comment 2 The nfs.target in that set of units already requires rpcbinds.service
nfs-utils-1.2.5-4.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/nfs-utils-1.2.5-4.fc16
Package nfs-utils-1.2.5-4.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing nfs-utils-1.2.5-4.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0618/nfs-utils-1.2.5-4.fc16 then log in and leave karma (feedback).
With the updated nfs-utils, the nfs service can be started as expected. I've added karma to the package, thank you!
nfs-utils-1.2.5-4.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.