Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 753131

Summary: autofs-mounted NFS mounts hang on shutdown
Product: [Fedora] Fedora Reporter: Jeremy Sanders <jeremy>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 16CC: iarlyy, johannbg, jonathan, lnykryn, lpoetter, metherid, notting, orion, plautrba, rvokal, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-15 19:01:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Sanders 2011-11-11 12:13:39 UTC
We're using static networking on our system. We're also using autofs to mount home directories. It seems systemd is shutting down the network interface before trying to unmount NFS-mounted home directories, so there's a long hang (several minutes) after the network is shut down. Presumably, this is when systemd is trying to unmount the NFS mounts. There is no hang if the system is shut down before anyone logs in.

Version-Release number of selected component (if applicable):
systemd-37-3.fc16.x86_64

Comment 1 Orion Poplawski 2011-12-15 16:51:03 UTC
We're seeing this as well, though not every time.

The first problem I'm having in debugging this is that rsyslog gets shut down very early in the shutdown process so almost none of the shutdown process gets logged.  It seems like this should be one of the last things to get shutdown, just before unmounting filesystems.  Any easy way to specify this?

Comment 2 Orion Poplawski 2011-12-15 17:22:19 UTC
I think the (or at least one) problem is the lack of dependency information in /etc/init.d/netfs.  I propose the following:

# Should-Start: $syslog $network $portmap
# Should-Stop:  $syslog $network $portmap

Similar to bug 767818

Comment 3 Bill Nottingham 2011-12-15 19:00:57 UTC
Should-Start: $network should be enough, I would think.

Comment 4 Bill Nottingham 2011-12-15 19:01:28 UTC
Marking as a dup, if it proves to be something else, we can split it out again.

*** This bug has been marked as a duplicate of bug 767818 ***

Comment 5 Orion Poplawski 2011-12-15 19:35:27 UTC
You're going to need $portmap/rpcbind to unmount nfs mounts, correct?  Or is that only on the server side?