Skip to contentSkip to conversation

nfs-client.target: Removed a ordering cycle with nfs-server.service

PATCH In review Steve Dickson 2 participants 3 messages Sep 29, 2014 – Sep 30, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs-client.target: Removed a ordering cycle with nfs-server.service

On a VM that boots very fast and with out kerberos enabled a systemd ordering cycle happens between nfs-client and nfs-server units when both were enabled.

Having nfs-client start the gssd daemons in the same matter as the nfs-server does ('After=') seemed to eliminated the ordering cycle.

---
 systemd/nfs-client.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
systemd/nfs-client.target +1 -1
index 474f5e9..87a1ce8 100644
@@ -7,7 +7,7 @@ Wants=remote-fs-pre.target
 # start that on demand if needed.
 Wants=rpc-gssd.service rpc-svcgssd.service auth-rpcgss-module.service
 Wants=nfs-blkmap.service rpc-statd-notify.service
-Before=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
+After=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
 
 [Install]
 WantedBy=multi-user.target
Signature · 1 line
1.9.3
#1 lore raw
Quoted 8 lines · Steve Dickson

On a VM that boots very fast and with out kerberos enabled a systemd ordering cycle happens between nfs-client and nfs-server units when both were enabled.

Having nfs-client start the gssd daemons in the same matter as the nfs-server does ('After=') seemed to eliminated the ordering cycle.

ACK.--b.

Quoted 26 lines
---
 systemd/nfs-client.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
systemd/nfs-client.target +1 -1
index 474f5e9..87a1ce8 100644
@@ -7,7 +7,7 @@ Wants=remote-fs-pre.target
 # start that on demand if needed.
 Wants=rpc-gssd.service rpc-svcgssd.service auth-rpcgss-module.service
 Wants=nfs-blkmap.service rpc-statd-notify.service
-Before=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
+After=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
 
 [Install]
 WantedBy=multi-user.target
Signature · 6 lines
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Steve Dickson
Quoted 10 lines · Steve Dickson

On a VM that boots very fast and with out kerberos enabled a systemd ordering cycle happens between nfs-client and nfs-server units when both were enabled.

Having nfs-client start the gssd daemons in the same matter as the nfs-server does ('After=') seemed to eliminated the ordering cycle.

Committed...

steved.

Quoted 18 lines
---
 systemd/nfs-client.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
systemd/nfs-client.target +1 -1
index 474f5e9..87a1ce8 100644
@@ -7,7 +7,7 @@ Wants=remote-fs-pre.target
 # start that on demand if needed.
 Wants=rpc-gssd.service rpc-svcgssd.service auth-rpcgss-module.service
 Wants=nfs-blkmap.service rpc-statd-notify.service
-Before=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
+After=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
 
 [Install]
 WantedBy=multi-user.target