All of lore.kernel.org
 help / color / mirror / Atom feed
* Lock recovery doesn't work in debian statd/lockd ordering
@ 2002-09-12  2:19 Neil Brown
  2002-09-12  4:00 ` Adrian Phillips
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Neil Brown @ 2002-09-12  2:19 UTC (permalink / raw)
  To: Chip Salzenberg; +Cc: nfs


Hi Chip and NFSers.

 I just noticed that lock recovery doesn't work with a Debian NFS
 server.
 i.e.  server shuts down, restarts, and the client *Doesn't* reclaim
 the locks.

 The problem is that statd starts before lockd.

 What happens is that:
    statd starts
      it moves everything from /var/lib/nfs/sm to /var/lib/nfs/sm.bak
      it notifies each host listed in /var/lib/nfs/sm.bak that the
        server has restarted
    statd on the client gets the notification and tells it's local
        lockd to reclaim locks.
    lockd on client asked portmap on server for port number for lockd,
        but lockd hasn't started on the server so there isn't one.  So
        lockd on the client gives up (maybe it should persist, I'm not
        sure).
    Finally lockd on the server starts, but it is too late.


 I fixed this for myself by moving /etc/rc2.d/S19nfs-common to S21 so
 that it starts after nfsd and lockd which are started in
 S20nfs-kernel-server.

 There should be no problem with statd starting after lockd and lockd
 doesn't try to talk to statd until it gets the first lock request.

NeilBrown


-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-09-16  1:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12  2:19 Lock recovery doesn't work in debian statd/lockd ordering Neil Brown
2002-09-12  4:00 ` Adrian Phillips
2002-09-12  4:49   ` Neil Brown
2002-09-13 16:37     ` H. J. Lu
2002-09-13 19:22 ` Philippe Troin
2002-09-15 21:44 ` Chip Salzenberg
2002-09-16  1:31   ` unsubcribe Will Stowe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.