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 - autofs-mounted NFS mounts hang on shutdown
Summary: autofs-mounted NFS mounts hang on shutdown
Keywords:
Status: CLOSED DUPLICATE of bug 767818
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 16
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-11 12:13 UTC by Jeremy Sanders
Modified: 2014-03-17 03:29 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-15 19:01:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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?


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