From d7d8b3cf069725dcf62a262295782496febe70ae Mon Sep 17 00:00:00 2001 From: Tee Ngo Date: Fri, 26 Oct 2018 14:40:06 -0400 Subject: [PATCH] Ensure loading order for nfscommon and mountnfs In some rare occasions following a host lock/unlock or force reboot, there are two rpc.statd process one of which is a runaway that floods daemon.log causing high CPU alarm. Based on a few samples of startup sequence (success vs failure), it is evident that the issue appeared each time mountnfs unit had been loaded before rpc.statd process was started. This change ensures nfscommon unit, which starts rpc.statd and rpc.idmapd, is loaded before mountnfs unit. Tests performed: - installation (standard system) - sanity (automated, repeats = 10) Closes-Bug: 1794366 Change-Id: I6a916b9c3348338b0ab79fcec4f2cd5d04741499 Signed-off-by: Tee Ngo --- base/initscripts/centos/files/mountnfs.service | 2 +- filesystem/nfs-utils/files/nfscommon.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/initscripts/centos/files/mountnfs.service b/base/initscripts/centos/files/mountnfs.service index e7b53d2bb..75952b2db 100644 --- a/base/initscripts/centos/files/mountnfs.service +++ b/base/initscripts/centos/files/mountnfs.service @@ -1,6 +1,6 @@ [Unit] Description=Titanium Cloud Filesystem Auto-mounter -After=network.target +After=network.target nfscommon.service Before=uexportfs.service [Service] diff --git a/filesystem/nfs-utils/files/nfscommon.service b/filesystem/nfs-utils/files/nfscommon.service index d1ee13f31..43d1c74f1 100644 --- a/filesystem/nfs-utils/files/nfscommon.service +++ b/filesystem/nfs-utils/files/nfscommon.service @@ -1,7 +1,7 @@ [Unit] Description=Titanium Cloud Filesystem Common After=network.target rpcbind.service -Before=nfsserver.service +Before=nfsserver.service mountnfs.service [Service] Type=oneshot