From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,7a01654699d9257f X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,7a01654699d9257f X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,7a01654699d9257f X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-07 21:56:44 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!dziuxsolim.rutgers.edu!igor.rutgers.edu!geneva.rutgers.edu!not-for-mail From: hedrick@geneva.rutgers.edu (Chuck Hedrick) Newsgroups: comp.unix.osf.osf1,comp.unix.ultrix,comp.sys.dec Subject: Re: Mail Locking Ultrix/OSF Date: 8 Jan 1995 00:56:44 -0500 Organization: Rutgers University LCSR Sender: hedrick@cs.rutgers.edu Message-ID: <3enuqs$9n6@geneva.rutgers.edu> References: <3e1p6l$i3f@amhux3.amherst.edu> <1995Jan2.124404.1101@arbi.Informatik.Uni-Oldenburg.DE> NNTP-Posting-Host: geneva.rutgers.edu Xref: nntp.gmd.de comp.unix.osf.osf1:7151 comp.unix.ultrix:16423 comp.sys.dec:20855 werme@alingo.zk3.dec.com (Eric Werme) writes: >At present, I believe we have three open bug reports against rpc.lockd. One >affect PCs and some third party NFS implementations. One old report >involves mishandling a lost NLM message between lock daemons and was found >in local testing, and one recent report involves simultaneously taking out >hundreds of locks, but that may have been fixed in V3.0. That fix is in a >patch available from Ultrix support. If NFS locking were "almost allways >broken", I would expect more bug reports. It's almost always broken on SunOS 4.1.x (or has been enough in the past that most of us aren't prepared to believe it's working now). That means that in mixed environments I'm not even going to try it. One thing I noticed in doing user support is that when something fails a few times, people give up using it. The support staff say "why didn't you tell us??" and they say "but everybody knows it doesn't work". We carefully purge all code of lockf's, so you'll never get any bug reports from us... Rutgers has used lock files in many configurations for quite a long time, so I'm pretty confident that it works OK. (Yes, I would notice if it failed. Delivery to files other than your mailbox is not similarly protected, and I see confused mail in them fairly often.) I believe your machines need to have their time synchronized to within a couple of seconds. The usual code ignores lock files that are over 2 minutes old. (This is in case a machine has crashed.) That won't work if machines' time is wildly inconsistent. We're now using nntp anyway, so that's no longer an issue. I used to use code that figured out the difference in time between the system on which it was running and the file server, before doing any time-based calculations.