Bug 162446 - Stopping NFS locking: [FAILED]
Stopping NFS locking: [FAILED]
Product: Fedora
Classification: Fedora
Component: nfs-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Dickson
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2005-07-04 17:44 EDT by Andre Robatino
Modified: 2007-11-30 17:11 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-06 08:53:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
output of "strace -f rpc.lockd" (1.61 KB, text/plain)
2005-07-04 17:58 EDT, Andre Robatino
no flags Details

  None (edit)
Description Andre Robatino 2005-07-04 17:44:55 EDT
Description of problem:
  At shutdown, "Stopping NFS locking:" fails.  If I'm not mistaken, this is
associated with rpc.lockd which belongs to the nfs-utils package.

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

How reproducible:

Steps to Reproduce:
1.  Clean workstation install of FC4.
2.  Boot and then shutdown.
Actual results:
  "Stopping NFS locking:" returns [FAILED].

Expected results:
  Should return [OK].
Comment 1 Andre Robatino 2005-07-04 17:52:11 EDT
  Forgot to mention that the error persists even with all current updates applied.
Comment 2 Andre Robatino 2005-07-04 17:58:39 EDT
Created attachment 116334 [details]
output of "strace -f rpc.lockd"
Comment 3 Pascal de Bruijn 2005-07-12 12:56:57 EDT
I'm having the same issue. I have all updates applied.

Note, that I'm not using NFS though...
Comment 4 Andre Robatino 2005-07-12 13:03:13 EDT
  Neither am I.  I've done clean FC4 installs on 2 different machines and have
the same problem on both.  My father also has the problem on his machine with a
clean FC4 install.  All of these are workstation installs and none of them use NFS.
  The strace I attached is short and the problem probably very simple.  But
since this service is enabled by default, even if it's not used, the error
should be fixed.
Comment 5 Steve Dickson 2005-07-13 17:19:52 EDT
agreed... its being looked into... 
Comment 6 Phillip Landis 2005-07-14 12:31:19 EDT
I am having the same 'fail' message from nfslock at shutdown. NFS is running
properly.  All updates have been applied.

Please fix!
Comment 7 Jerry 2005-07-17 02:26:52 EDT
I am using NFS and noticed that I have to do a service nfs restart after bootup
to get the nfs export to appear to other machines on my network.  The Stopping
error occurs when I do the restart.  Subsequent restarts show no errors.
Comment 8 Martin 2005-07-21 09:48:27 EDT
I've just compared the script /etc/init.d/nfslock from FC4 with the one from 

stop() {
        # Stop daemons.
        echo -n $"Stopping NFS locking: "
        if [ "$USERLAND_LOCKD" ]; then
           killproc lockd
           killproc lockd -KILL
        echo -n $"Stopping NFS statd: "
        killproc rpc.statd
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/nfslock
        return $RETVAL

stop() {
        # Stop daemons.
        if [ "$USERLAND_LOCKD" ]; then
           echo -n $"Stopping NFS locking: "
           killproc lockd
        echo -n $"Stopping NFS statd: "
        killproc rpc.statd
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/nfslock
        return $RETVAL

Please note:
The variable $USERLAND_LOCKD is empty on a non-modified FC4 installation.
So why does the lockd process need to be stopped when it isn't started?

if [ "$USERLAND_LOCKD" ]; then
   killproc lockd
   killproc lockd -KILL   <- This is the line which causes the failed message.
                             What is this line for? It was missing in FC3.

Maybe this could help...
Comment 9 Steve Dickson 2005-09-06 08:53:16 EDT
Should be fixed in nfs-utils-1.0.7-16
Comment 10 André Fettouhi 2005-11-22 08:07:17 EST
When will a fix be released for FC4? The problem still exists for

Kind Regards

André Fettouhi
Comment 11 Tamas Vincze 2005-12-07 20:11:39 EST
Stopping the nfs service also stops lockd so I just commented out this section
of /etc/init.d/nfslock to get rid of the annoying [ERROR] message:

# Stop daemons.
#echo -n $"Stopping NFS locking: "
#if [ "$USERLAND_LOCKD" ]; then
#   killproc lockd
#   killproc lockd -KILL

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