On Thu, Jun 29, 2006 at 10:44:51PM +0200, Rico Secada wrote:
> Hi
>
> I am having problems with one of our NFS servers at our datacenter.
>
> I have just set it up.
>
> I have edited /etc/rc.conf and changes the portmap and nfs_server to YES.
>
> I have created the /var/db/mountdtab file.
>
> I have made an entry to /etc/exports
>
> When I reboot the machine and take a look with rpcinfo, I only get
> portmapper running.
>
> # rpcinfo -p
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
>
> If I try manually to start nfsd, it won't start.
>
> Looking at the log of daemon I get:
>
> # cat /var/log/daemon
> Jun 30 00:27:11 nfsserver savecore: no core dump
>
> What could be wrong here?
Lots of stuff, but let's venture a guess. nfsd might not like malformed
entries in /etc/exports. /var/db/mountdtab isn't going to do you a lot
of good, either:
# $nfs_server is imported from /etc/rc.conf;
# if $nfs_server == YES, the machine is setup for being an nfs server
if [ X"${nfs_server}" = X"YES" -a -s /etc/exports -a \
`sed -e '/^#/d' < /etc/exports | wc -l` -ne 0 ]; then
rm -f /var/db/mountdtab
echo -n > /var/db/mountdtab
echo -n ' mountd'; mountd
echo -n ' nfsd'; nfsd ${nfsd_flags}
if [ X"${lockd}" = X"YES" ]; then
echo -n ' rpc.lockd'; rpc.lockd
fi
fi
(This is from line 380 of /etc/rc on my box.)
What is the output, if any, when you execute nfsd with nfsd_flags from
/etc/rc.conf?
Also, don't modify /etc/rc.conf; that is a FreeBSDism. On OpenBSD, use
/etc/rc.conf.local.
Joachim