Fw: NFSd problem - solved!
Don't respond to this mail. Problem got solved, a powercut and a toasted exports file. On Thu, 29 Jun 2006 22:44:51 +0200 Rico Secada <[EMAIL PROTECTED]> 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 > 102 tcp111 portmapper > 102 udp111 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? > > Best and kind regards, > Rico
Re: NFSd problem
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 > 102 tcp111 portmapper > 102 udp111 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
Re: NFSd problem
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 > 102 tcp111 portmapper > 102 udp111 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? Have you tried stepping through it manually as /etc/rc does it? # rm -f /var/db/mountdtab # echo -n > /var/db/mountdtab # /sbin/mountd # /sbin/nfsd -tun 4 > > Best and kind regards, > Rico
NFSd problem
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 102 tcp111 portmapper 102 udp111 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? Best and kind regards, Rico