Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 15:38:31 +0200
From:      cpghost <cpghost@cordula.ws>
To:        Nagy L?szl? Zsolt <nagylzs@freemail.hu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Almost ready with diskless setup
Message-ID:  <20060811133831.GA56300@epia2.farid-hajji.net>
In-Reply-To: <44DB7D53.5060902@freemail.hu>
References:  <44DB32B7.8080602@enternet.hu> <44DB7D53.5060902@freemail.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 10, 2006 at 08:39:15PM +0200, Nagy L?szl? Zsolt wrote:
> 
> >
> >2. syslogd tells that it cannot open the pid file. (Operation not 
> >supported)  However, it creates /var/log/syslogd.pid. But that file is 
> >empty. What can be the problem?
> After making another diskless distribution, I found out that the 
> 'Operation not supported' error comes out because of calling flock() on 
> nfs. For example:
> 
> ---------------
> sendmail_submit: /etc/mail/aliases.db not present, generating
> cannot flock(/etc/mail/aliases, fd=3, type=6, omode=4002, euid=0): 
> Operation not supported
> --------------
> 
> The same message (Operation not supported) comes when creating the pid 
> file /var/log/syslogd.pid. The /var/log filesystem is writeable. Is it  
> possible that flock() is not implementedon nfs? :-(

It is, but you need to enable it:

On the NFS server and clients, add to /etc/rc.conf:

rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

>  Laszlo

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060811133831.GA56300>