Bug 458662 - rpc.quotad is not shut down upon '/etc/init.d/nfs stop'
Summary: rpc.quotad is not shut down upon '/etc/init.d/nfs stop'
Keywords:
Status: CLOSED DUPLICATE of bug 470483
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nfs-utils
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-11 12:47 UTC by martijn
Modified: 2008-11-24 16:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-24 14:14:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description martijn 2008-08-11 12:47:42 UTC
Description of problem:
rpc.quotad is not shut down upon '/etc/init.d/nfs stop'

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

1.0.9-33.el5

How reproducible:
  /etc/init.d/nfs start
  /etc/init.d/nfs stop
  rpcinfo -p | grep rquotad

Steps to Reproduce:
1. 
2.
3.
  
Actual results:
    100011    1   udp    889  rquotad
    100011    2   udp    889  rquotad
    100011    1   tcp    892  rquotad
    100011    2   tcp    892  rquotad


Expected results:
  <empty>

Additional info:
Normally, performing an '/etc/init.d/nfs restart' does not produce any warnings that the rquotad is still running. However, if you set a line like this in /etc/sysconfig/nfs:
  RQUOTAD_PORT=4003
you will see the following message upon '/etc/init.d/nfs restart':
  Starting NFS quotas: rpc.rquotad: Cannot bind to given address: Address already in use

Problem can be fixed by adding these lines to the stop) case:
        # Remote quota server
        [ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

(For some reason these were moved from top-level to within the start case in the upgrade of 5.1 to 5.2.

Comment 1 Gianluca Cecchi 2008-08-19 09:32:28 UTC
The bug is still present in latest version nfs-utils-1.0.9-35z.el5_2 with wich I updated an rh el 5.2 x86 system.
The annoying thing is that current F9 x86_64 which has nfs-utils version 1.1.2-6.fc9 is correct as the part

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

was moved at the very beginning, out of start/stop/ecc. sections.

I'm configuring a server with  drbd/nfs/ha and moved the /var/lib/nfs dir under drbd file system and heartbeat is not able to cleanly unmount the resource because rquotad has in use  /var/lib/nfs/rpc_pipefs

Comment 2 Gianluca Cecchi 2008-08-19 10:04:34 UTC
With the term "The annoying thing is..." I didn't want to hurt anyone: miswritten.
Sorry.
Probably the new version 1.1 of nfs-utils already incorporated the redesign of the start/stop script.

Gianluca

Comment 3 Bryn M. Reeves 2008-11-13 16:50:03 UTC
In reply to comment #2, it seems like the intent was to make this match what is now done in f9 & rawhide - have you tried moving the line that checks & sets RQUOTAD to the top of the script as it is in f9?

Comment 4 Steve Dickson 2008-11-24 14:14:29 UTC

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

Comment 5 Gianluca Cecchi 2008-11-24 16:36:04 UTC
As I wrote in the first post, I solved putting it in the stop) section, just before the if statement containing 
killproc rpc.rquotad

Same effect putting it at the beggining of the script itself.

BTW: strange to see this bug marked as a duplicated of an access denied bug...


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