6.1 and NFS

Robert Joosten robert at ml.erje.net
Fri Sep 22 11:04:05 PDT 2006


Hi,

> >Hmmm, is there a way to run pxe-boxes without rpc.lockd and then still
> >able to run adduser and so on ?
> Safely?  No.  But then, flock() doesn't work via NFS even if  
> rpc.lockd is running, so you aren't any worse off.

flock() .. hmm yeah, I discoverd trouble with sendmail as well, it rings 
my bell. At least I know where to look for digging in the code finding 
clues about why. 

You say flock() doesn't work with rpc.lockd running. I observed running a 
pxe client running fbsd 5.[45] being served by nfs-box running 5 (and 4 
nowadays because of asr0 trouble due to geom) having disabled rpc.lockd 
the box doens't let me run adduser, but with rpc.lockd enabled it's fine 
with 'em. Is that strange or am I missing (some) insight about this matter 
?

> However, I believe that some systems have actually re-implemented the  
> BSD flock() call in terms of calling the POSIX lockf(), which would  
> attempt to use rpc.lockd and thus have some chance of working over  
> NFS.  I believe this was done in Linux by Andy Walker and for MacOS X  
> by Justin Walker (odd naming coincidence, there), IIRC; perhaps some  
> of these changes have made their way back to the other BSDs.

Interesting observation.

Thx for your reply !

Regards,
Robert


More information about the freebsd-questions mailing list