Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 146141 - bug in netfs script causes hang on shutdown
Summary: bug in netfs script causes hang on shutdown
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: initscripts
Version: 3.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
Blocks: 168995
TreeView+ depends on / blocked
Reported: 2005-01-25 17:26 UTC by Chris O'Regan
Modified: 2014-03-17 02:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-09-21 21:18:51 UTC
Target Upstream Version:

Attachments (Terms of Use)
Patch to fix NFS umount bug in /etc/init.d/netfs (deleted)
2005-01-25 17:29 UTC, Chris O'Regan
no flags Details | Diff

Description Chris O'Regan 2005-01-25 17:26:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041123 Firefox/1.0

Description of problem:
It appears that the netfs script was written with the intention to
gracefully stop (unmount) NFS file systems.  The problem is that the
first thing the script does is forcibly unmount the NFS-mounted file
systems.  As a result, it is unable to terminate any processes that
have files open on those file systems.  On our servers -- where we use
NFS extensively -- this leaves hundreds of processes "stuck" because
NFS was pulled out from under them, and the servers fail to shutdown
properly, usually requiring a power cycle.

We've patched the netfs script so that it gracefully stops all
processes with open files on NFS-mounted file systems.  It makes four
attempts (sending the following signals in this order: HUP, TERM,
KILL, KILL) before forcing the umount.  Test shows that it works as
expected, and our servers shutdown quickly.  I'll include the patch as
soon as I can figure out where to upload it.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start a process that opens a file on an NFS-mounted file system.
2. Shutdown system


Actual Results:  System hangs on shutdown.

Expected Results:  System should have shutdown quickly and not
required a power cycle.

Additional info:

Comment 1 Chris O'Regan 2005-01-25 17:29:54 UTC
Created attachment 110205 [details]
Patch to fix NFS umount bug in /etc/init.d/netfs

Comment 2 Bill Nottingham 2005-09-21 21:18:51 UTC
This problem is being considered for the next release of Red Hat Enterprise
Linux. Red Hat does not currently plan to provide a resolution for this in a Red
Hat Enterprise Linux update for currently deployed systems.

With the goal of minimizing risk of change for deployed systems, and in response
to customer and partner requirements, Red Hat takes a conservative approach when
evaluating changes for inclusion in maintenance updates for currently deployed
products. The primary objectives of update releases are to enable new hardware
platform support and to resolve critical defects. 

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