Red Hat Bugzilla – Bug 768550
/lib/systemd/system/nfs-server.service does not reference dependency on rpcbind
Last modified: 2012-01-22 00:25:42 EST
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
Steps to Reproduce:
1.systemctl start nfs-server.service
Failed rpc calls, service does not start
systemctl starts rpcbind first, then proceeds to start the nfs service.
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
[ sip ]
> adding 'Wants=rpcbind.service' to /lib/systemd/system/nfs-server.service fixes
> I just rebooted to test - my nfs mounts defined in /etc/fstab are still the
> slowest units to load...
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
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.
* 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:
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.