Operating System - HP-UX
1748106 Members
4965 Online
108758 Solutions
New Discussion юеВ

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

Hi All,

I want to start the NFS server on HP-UX 11.31 at start up (boot up) automatically.

For that i have done following configuration in /etc/rc.config.d/nfsconf
---------------------------------------
# vi /etc/rc.config.d/nfsconf

NFS_CORE=1

LOCKMGR=1

NFS_SERVER=1

START_MOUNTD=1

-------------------------------------------

But NFS server is not starting automatically.

where as i am able to start manually and access the NFS share.

I used following commands to start NFS manually

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

# /sbin/init.d/lockmgr start

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


How to solve this issue
33 REPLIES 33
Patrick Wallek
Honored Contributor
Solution

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

That should start it automatically when you boot the system.

What does '/etc/rc.log' show? Any error messages for the NFS start processes?
Vishu
Trusted Contributor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

do you have Startup scripts in the /sbin/rc2.d directory.

if yes, check /etc/rc.log to see what is the error causing it to fail.
senthil_kumar_2
Regular Advisor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

Hi All,

Please find the output from /etc/rc.log

# more /etc/rc.log | grep -i nfs
Start NFS core subsystem
Output from "/sbin/rc2.d/S400nfs.core start":
Starting NFS CORE networking
Start NFS IPv6 subsystem
Output from "/sbin/rc2.d/S401nfs.core-ipv6 start":
Start NFS IPv6 subsystem
Output from "/sbin/rc2.d/S402nfs.core2-ipv6 start":
Start NFS client subsystem
Output from "/sbin/rc2.d/S430nfs.client start":
Starting NFS CLIENT subsystem
"/sbin/rc2.d/S430nfs.client start" FAILED
Start NFS server subsystem
Output from "/sbin/rc3.d/S100nfs.server start":
"/sbin/rc3.d/S100nfs.server start" FAILED


# more /etc/rc.log | grep -i lock
Start lock manager subsystem
Output from "/sbin/rc2.d/S425lockmgr start":
Starting up the lock manager daemon
/usr/sbin/rpc.lockd
ERROR: rpc.lockd not running. Run "/sbin/init.d/lockmgr start" to start rpc.lockd, exiting
Start clock daemon
ERROR: rpc.lockd not running. Run "/sbin/init.d/lockmgr start" to start rpc.lockd, exiting



So as per above log, the "NFS server" and "lockmgr" are not started.

How to solve this issue.
Patrick Wallek
Honored Contributor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

We need to see more of the rc.log file. See if there are any errors in that section of the file. Just grep'ing for NFS may not show you the errors it encountered.
Vishu
Trusted Contributor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

Hi senthil,

you grepped the nfs word, it will not show the error it gave while failed. So, can you attach the /etc/rc.log with your post or paste the error from the file here to further look into.
James R. Ferguson
Acclaimed Contributor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

Hi Senthil:

By any chance did you make a backup of '/etc/rc.config.d/nfsconf' when you changed its settings? If so, did you retain that backup copy in '/etc/rc.config.d'? There are ways to do this and ways to _not_ do this.

Regards!

...JRF...
senthil_kumar_2
Regular Advisor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

Please find logs related to NFS services from the output of /etc/rc.log:


Start NFS core subsystem
Output from "/sbin/rc2.d/S400nfs.core start":
----------------------------
Starting NFS CORE networking

Starting up the rpcbind
/usr/sbin/rpcbind



Start lock manager subsystem
Output from "/sbin/rc2.d/S425lockmgr start":
----------------------------
Starting up the Status Monitor daemon
/usr/sbin/rpc.statd
Starting up the lock manager daemon
/usr/sbin/rpc.lockd


Start NFS client subsystem
Output from "/sbin/rc2.d/S430nfs.client start":
----------------------------
Starting NFS CLIENT subsystem

ERROR: rpc.lockd not running. Run "/sbin/init.d/lockmgr start" to start rpc.lockd, exiting
"/sbin/rc2.d/S430nfs.client start" FAILED



Start NFS server subsystem
Output from "/sbin/rc3.d/S100nfs.server start":
----------------------------
ERROR: rpc.lockd not running. Run "/sbin/init.d/lockmgr start" to start rpc.lockd, exiting
"/sbin/rc3.d/S100nfs.server start" FAILED



Is it enough?
Pete Randall
Outstanding Contributor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

The NFS failure is because of the lockmgr not being started. Is there any more detail concerning lock mgr in rc.log? If not, we need to take a look at /etc/rc.config.d/lockmgr to see if there is something obviously wrong there.


Pete

Pete
Steven Schweda
Honored Contributor

Re: How to start the NFS server on HP-UX 11.31 at start up (boot up) automatically

> For that i have done following [...]

Using SAM / SMH to enable NFS might get
everything done right automatically. Not
using the easy-to-use tools may make more
sense if you know what you're doing, but if
you're asking here about what went wrong,
then I'd vote for using the easy-to-use
tools.

After it works, you can go back in and play
with exporting/sharing particular file
systems in particular ways.