[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I get NFS locking to work?

On Sat, Dec 23, 2006 at 04:53:28PM +0100, Michelle Konzack wrote:
> Am 2006-12-14 12:42:13, schrieb hendrik@topoi.pooq.com:
> > On Thu, Dec 14, 2006 at 12:18:27PM -0500, hendrik@topoi.pooq.com wrote:
> > > How do I get NFS locking to work?  (And why doesn't it "just work" 
> > > anyway?)
> > > 
> > > I am unable to use monotone properly over an NFS mount because it very 
> > > sensibly tries to lock its repository before modifying it.
> You NEEED to mount your NFS-Share HARD in your /etc/fstab with:
> nfsserver:/directory   /datadir nfs rw,bg,hard,intr,tcp,vers=3,wsize=8192,rsize=8192 0 0
>                                           ^^^^      ^^^ ^^^^^^
> and it seems, that some things are working only correctly,
> if you use "tcp" and "vers=3".  Be sure, you have compiled
> this options into your kernel or kernel-module.
> Thanks, Greetings and nice Day

Thanks.  I finally had the chance to do that.  But it still doesn't 
work.  Could the following error messages be a clue? 

hendrik@lovesong:~/dv/lang/frith$ mtn commit
lockd: cannot monitor
lockd: failed to monitor
mtn: error: sqlite error: database is locked

I also occasionally get similar messages from fam

The /etc/fstab entry for /farhome is  /farhome nfs noauto,user,defaults,rw,hard,tcp,lock,vers=3,exec,nodev 1 1

And the /etc/exports entry on is


The machine I ran the mtn commit from was (the third entry on 
the above list)

>     Michelle Konzack
>     Systemadministrator
>     Tamay Dogan Network
>     Debian GNU/Linux Consultant

I always enjoy reading your posts on debian-user, by the way.  Somehow a 
sunny personality manages to shine through the dry tech stuff.

-- hendrik

Reply to: