Bug 749089 - nfs server doesn't start by systemd
Summary: nfs server doesn't start by systemd
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: 16
Hardware: i686
OS: Linux
high
high
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-26 06:32 UTC by Sergey Arsenyev
Modified: 2011-11-14 12:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-14 12:23:25 UTC
Type: ---


Attachments (Terms of Use)

Description Sergey Arsenyev 2011-10-26 06:32:59 UTC
Description of problem:

 systemd with standart nfs-server.service doesn't start nsfd

Version-Release number of selected component (if applicable):
nfs-utils.i686                          1:1.2.5-4.fc17
systemd.i686                             37-2.fc17 

How reproducible:

systemctl start nfs-server.service


Steps to Reproduce:
1.
2.
3.
  
Actual results:

# ps -A | grep nfs
 2687 ?        00:00:00 nfsiod
# systemctl status nfs-server.service
nfs-server.service - NFS Server
	  Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled)
	  Active: active (running) since Wed, 26 Oct 2011 10:18:39 +0400; 1min 1s ago
	 Process: 623 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
	 Process: 622 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
	 Process: 637 ExecStartPost=/usr/lib/nfs-utils/scripts/nfs-server.postconfig (code=exited, status=0/SUCCESS)
	 Process: 635 ExecStartPost=/usr/sbin/rpc.mountd $RPCMOUNTDOPTS (code=exited, status=0/SUCCESS)
	 Process: 634 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT} (code=exited, status=0/SUCCESS)
	 Process: 633 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
	 Process: 631 ExecStartPre=/usr/sbin/rpc.rquotad $RPCRQUOTADOPTS (code=exited, status=0/SUCCESS)
	 Process: 629 ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig (code=exited, status=0/SUCCESS)
	Main PID: 632 (rpc.rquotad)
	  CGroup: name=systemd:/system/nfs-server.service
		  ├ 632 /usr/sbin/rpc.rquotad
		  └ 636 /usr/sbin/rpc.mountd

Expected results:

# ps -A | grep nfs
 1595 ?        00:00:00 nfsd4
 1596 ?        00:00:00 nfsd4_callbacks
 1597 ?        00:00:00 nfsd
 2687 ?        00:00:00 nfsiod
#

Additional info:
 NFS start with small workaround with nfs-server.service:
-ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT}
+ExecStart=/bin/sh -c '/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT}'

Comment 1 Orion Poplawski 2011-11-08 18:49:07 UTC
True of nfs-utils-1.2.5-1.fc16.i686 as well.  Seems like a big deal to me.

Comment 2 Steve Dickson 2011-11-08 20:35:31 UTC
Please make sure the new /etc/sysconfig/nfs is being used. 
Check to see if there is a /etc/sysconfig/nfs.rpmnew. If so please
either replace the /etc/sysconfig/nfs with the .rpmew version
or make sure RPCNFSDCOUNT is uncommented (RPCNFSDCOUNT=8).

Comment 3 Orion Poplawski 2011-11-08 21:39:42 UTC
Ah, sorry about that.  Using puppet to overwrite the /etc/sysconfig/nfs file.  Fixing that fixed it for me.

Comment 4 Sergey Arsenyev 2011-11-11 07:15:01 UTC
Ok. Uncomenting RPCNFSDCOUNT work fine.


Note You need to log in before you can comment on or make changes to this bug.