[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-nfs
Subject:    Re: [NFS] RELEASE CANDIDATE - nfs-utils-1.1.0-rc1
From:       Neil Brown <neilb () suse ! de>
Date:       2007-03-29 9:31:25
Message-ID: 17931.34669.47062.146703 () notabene ! brown
[Download RAW message or body]

On Thursday March 29, baggins@sith.mimuw.edu.pl wrote:
> On Thu, 29 Mar 2007, Neil Brown wrote:
> 
> >  Run "statd" only when starting the NFS server.
> >  "statd" should be run before starting the NFS server.
> 
> While you're at it, can you tell me what should be the order of starting
> all NFS/NFS4 daemons? So far I got to this:
> 
> 1) statd
> 2) mountd
> 3) nfsd
> 4) idmapd
> 5) svcgssd
> 6) gssd
> 7) rquotad
> 8) any NFS mounts
> 
> Is it correct?

Hmm... good question.

I think:

  - idmapd and gssd should be started before any nfs mount
  - idmapd and svcgssd should be started before nfsd
  - mountd should start before nfsd.
  - sm-notify should start *after* nfsd.
  - on reflection, statd can probably start slightly after nfsd,
     and if statd is doing the notify, it should definitely be
     after, so my above comment is wrong.  I'll fix it in the
     next RC.
     Similarly it should start before, or atmost slightly after, any
     NFS mount.
  - rquotad should probably start before nfsd, but it probably isn't
    very important.

Rationale:

 sm-notify:
   On an NFS server, this tells the client to reclaim locks.  They
   will try to do so straight away.  If nfsd hasn't started lockd yet,
   they will fail and give up.   This is the most important
   dependency.
   On an NFS client, it simply tells the server to forget about old
   locks, so when it starts isn't terribly important.
 statd:
   This provides service to nfsd/lockd, but also it responds to
   SM_NOTIFY from peers and then needs to talk to the kernel.
   So kernel needs to talk to statd, and statd need to talk to kernel.
   Both sides will retry on failure, so order isn't too important,
   but there should not be a long gap between startup time.
 mountd:
   provides "is this exported" service to nfsd.  If it isn't running
   when the first nfs request arrives, it might be rejected
   incorrectly.  This is probably the second most important
   dependency.
 rquotad:
   provides service to clients completely independently of nfsd
   so when it starts probably doesn't matter.
 idmapd/svcgssd/gssd:
   simply provide service to the kernel modules.   So they should
   be running before the kernel wants them.

I think that covers everything.

NeilBrown

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic