1829496 Members
2318 Online
109991 Solutions
New Discussion

Disable NFS services

 
roadrunner_1
Regular Advisor

Disable NFS services

I have D370 which just waits for the NFS core services to start and as a result the system does not boot.

I tried disabling the nfs services in nfsconf and changed the name of the startup script..but when i reboot the box, the box waits for the nfscore to start and does not come up...

What should I do to fix this problem??

This box is neither a nfs client nor a nfs server and its running 11i
14 REPLIES 14
Ross Zubritski
Trusted Contributor

Re: Disable NFS services

Did you try to move nfs.core fro /sbin/init.d to another file name? This could indicate a name resolution problem. Can you boot into single user mode and run a setparms?

Regards,

RZ
roadrunner_1
Regular Advisor

Re: Disable NFS services

Have not touched the nfs files in the /sbin/init.d directories..

And I can run a set parms but I do not want to do it..I remember that by disabling the services in nfsconf, I could bring the box up...

But I dont remember the total no of files i had to edit..
S.K. Chan
Honored Contributor

Re: Disable NFS services

All you need to do to disable NFS is to edit /etc/rc.config.d/nfsconf and set NFS_CLIENT and NFS_SERVER to 0. You should not change the name of the startup script or the control file in /etc/rc.config.d which probably explains why your system hangs when you reboot it. At this point you would have to boot up your system in single user mode..
ISL> hpux -is
then mount /usr and vi the /etc/rc.config.d/nfsconf file. Whatever startup script that you have renamed, undo it. Also do not leave any additional file in /etc/rc.config.d, if you want to make a backup copy of the nfsconf file, put it elsewhere.
roadrunner_1
Regular Advisor

Re: Disable NFS services

Chan,

I did change the startup script to its original name and also I had changed the values in nfsconf file..but no luck..
Ross Zubritski
Trusted Contributor

Re: Disable NFS services

roadrunner,

Please paste your nfs conf files and an ls on /sbin/init.d here.

Thanks
Jeff Schussele
Honored Contributor

Re: Disable NFS services

Not positive, but I believe that nfs.core runs whether or not client & server are disabled.

Do you have proper localhost & hostname entries in /etc/hosts for this system?
If your /etc/nsswitch.conf has DNS before files, do you have connectivity to the DNS server? And does DNS have a proper entry for this host?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ross Zubritski
Trusted Contributor

Re: Disable NFS services

Jeff,

My point above about hostname. Have seen it do some really "whacky" things with NFS. ;)

Regards,

RZ
Steven E. Protter
Exalted Contributor

Re: Disable NFS services

mofifying the NFS_SERVER, NFS_CLIENT variables in the config file noted above should solve the problem after reboot.

Unless you've made your own copies of nfs.core nfs.server and nfs.client in /sbin/init.d

NFS is kind of necessary to have even if you don't think you're using it. If you want to use the box to server Ignite Golden images, NFS is pretty useful.

You could try and rip NFS out, but I don't think its worth the trouble.

Best bet on whacky behavior is the December 2002 Patch for the OS and any subsequent NFS patch you can find on the itrc.hp.com main page, patches, HP-US link.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
pap
Respected Contributor

Re: Disable NFS services

You need to do following.
Boot the system in single user mode.( If you are not able to boot the machine in multi user mode)

# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.client stop

then vi the /etc/rc.config.d/nfsconf file and set the variables to "0"

NFS_SERVER=0
NFS_CLIENT =0

Then reboot the server if you need.

This will certanly solve your problem

-pap


"Winners don't do different things , they do things differently"
pap
Respected Contributor

Re: Disable NFS services

You need to do following.
Boot the system in single user mode.( If you are not able to boot the machine in multi user mode)

# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.client stop

then vi the /etc/rc.config.d/nfsconf file and set the variables to "0"

NFS_SERVER=0
NFS_CLIENT =0

Then reboot the server if you need.

This will certainly solve your problem

-pap


"Winners don't do different things , they do things differently"
roadrunner_1
Regular Advisor

Re: Disable NFS services

Everthing mentioned was here was tried but no luck...and eventuall the problem was solved after making changes in hpbtlanconf(assigned values to speed)and the server came up fine...

But I am unable to relate this to the problem I had...anyway thanks for all the responses...
Wouter Jagers
Honored Contributor

Re: Disable NFS services

Is automount disabled, too ? I think I remember this issue, and something is whispering "automount" in my ears..

In the file /etc/rc.config.d/nfsconf , make sure your AUTOMOUNT is set to 0.

greets
an engineer's aim in a discussion is not to persuade, but to clarify.
Juan Manuel López
Valued Contributor

Re: Disable NFS services

Hi.
JUST edit /etc/rc.config.d/nfsconf and set NFS_CLIENT and NFS_SERVER to 0.
THEN, execute /sbin/init.d/nfs.server stop

With it you will stop the NFS Server and your problems will desappear.

I hope this help you.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
K.Vijayaragavan.
Respected Contributor

Re: Disable NFS services

Ensure START_MOUNTD variable is set to 0 in /etc/rc.config.d/nfsconf.

Ensure NFS is not getting started through /etc/inetd.conf by any chance.

In /etc/inetd.conf file, you may have to comment out the lines with below mentioned nfs services in it.

rpc.mountd
rpc.rexd
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
"Let us fine tune our knowledge together"