Operating System - HP-UX
1833017 Members
2130 Online
110048 Solutions
New Discussion

Re: nfs.server wil not start - weird error

 
Ron D.
Frequent Advisor

nfs.server wil not start - weird error

I am trying to start nfs.server and get the following command line feedback:
------------------
starting NFS SERVER networking
starting up the rpcbind daemon
rpcbind already started, using pid: 616
Reading in /etc/exports
starting up the mount daemon
/usr/sbin/rpc.mountd
./nfs.server[177]: 0: A test command parameter is not valid.
starting up the Status Monitor daemon
rpc.statd already started, using pid: 677
starting up the Lock Manager daemon
rpc.lockd already started, using pid: 683
starting up the PC-NFS daemon
/usr/sbin/rpc.pcnfsd
-----------------
Any idea where to look for the problem with nfs.server? Is it in /etc/rc.config.d/nfsconf? I have tried to modify nfsconf and remove each parameter individually with no luck. ANy help would be appreciated.

Thanks
9 REPLIES 9
Bharat Katkar
Honored Contributor

Re: nfs.server wil not start - weird error

hi,
looks like a problem in /etc/exports file. see man exports and check your entries accordingly.
Before that first stop the nfs.
# /sbin/init.d/nfs.client stop
# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.core stop

Edit exports file and put correct entries.
Start the nfs server

# /sbin/init.d/nfs.core start
# /sbin/init.d/nfs.server start
# /sbin/init.d/nfs.client start

This should work.
Hope that helps.
Regards,
You need to know a lot to actually know how little you know
RAC_1
Honored Contributor

Re: nfs.server wil not start - weird error

What is line 177 in file /sbin/init.d/nfs.server ??
There is no substitute to HARDWORK
Ron D.
Frequent Advisor

Re: nfs.server wil not start - weird error

Here's the single line /etc/exports:
-----------------
/opt/3mhis/pps
-----------------
Ron D.
Frequent Advisor

Re: nfs.server wil not start - weird error

I just tried stopping and starting again in the order suggest;
stop client
stop server
stop core

start core
start server
start client

Same results

Thanks
Ron D.
Frequent Advisor

Re: nfs.server wil not start - weird error

Line 177 of my nfs.server file is:
/usr/sbin/nfsd $NUM_NFSD && echo " starting up the NFS daemons" && echo "\t/usr/sbin/nfsd $NUM_NFSD"

I am running HPUX 11iv1
Bharat Katkar
Honored Contributor

Re: nfs.server wil not start - weird error

RAC you r still there...:)

Well, my script has follgoin if statement at line no.177.

You can check if the test condition inside has changed accidently. It should be as:

if [ $LFS -eq 0 -a $NUM_NFSD -gt 0 -a -f /usr/sbin/nfsd ] ;

One of the test parameter inside the bracket is wrong it seems.

Regards,
You need to know a lot to actually know how little you know
RAC_1
Honored Contributor

Re: nfs.server wil not start - weird error

Hey Bharat,

How are U?? Dpending upon what os this is, line may vary.

User should check it with the one that is working fine?? Did you play with file, USER???

Anil
There is no substitute to HARDWORK
Ron D.
Frequent Advisor

Re: nfs.server wil not start - weird error

Solved the problem - I did not specify the NUM_NFSD parameter in nfsconf. Once it was set to 4 it worked like a champ
Bharat Katkar
Honored Contributor

Re: nfs.server wil not start - weird error

RAC ... iam doin fine .. still waiting for some work to get over.

Well, this is amazing point assignment.

Anyways...thanks
You need to know a lot to actually know how little you know