Operating System - HP-UX
1834434 Members
2464 Online
110067 Solutions
New Discussion

Re: How to disable all system's NFS processes?

 
MA Qiang
Regular Advisor

How to disable all system's NFS processes?

I have changed
NFS_CLIENT=0
NFS_SERVER=0
in /etc/rc.config.d/nfsconf. And restarted the server. But I found 'nfskd' and 'nfsktcpd' still in my system.
How to disable them?

Thank you!
6 REPLIES 6
Ermin Borovac
Honored Contributor

Re: How to disable all system's NFS processes?

nfsktcpd is kernel thread (PPID 0) responsible for NFS/TCP traffic and nfskd is supposed to be its NFS/UDP equivalent, but it's currently not in use on HP-UX.

Not 100% sure, but I think nfskd and nfsktcpd would disappear if you disabled NFS/9000 kernel subsystem. You can do this with SAM (SAM -> Kernel Configuration -> Subsystems -> Highlight NFS/9000 -> Actions -> Remove Subsystem from Kernel -> Process New Kernel -> reboot).

If I was you, I wouldn't bother. For the purpose of disabling NFS on the system, what you did is sufficient.
MA Qiang
Regular Advisor

Re: How to disable all system's NFS processes?

I want to try to remove the subsystem from kernel. But how to recover it if I need it later?

Thank you!
Ermin Borovac
Honored Contributor

Re: How to disable all system's NFS processes?

If you want it back, you can re-add it through the same SAM submenu as indicated in the previous post. You will have to rebuild kernel and reboot again.

But as I said earlier you shouldn't need to do this. If all you want is to disable NFS, setting NFS_CLIENT and NFS_SERVER to 0 in /etc/rc.config.d/nfsconf is sufficient.
MA Qiang
Regular Advisor

Re: How to disable all system's NFS processes?

We have installed EMC Legato DXUL on the HP-UX server. The DXUL NFS server's dual mode is not work correctly, only DXUL-SM filesystem can be NFS mounted, native UNIX filesystem can not be NFS mounted. We will try it by disabled all the system's NFS functions.

Thank you!
Bharat Katkar
Honored Contributor

Re: How to disable all system's NFS processes?

Hi,
Normally i would prefer this way to stop NFS.


1. Ensure if any exported file system is not in use.

2. Stop NFS client daemon
# /sbin/init.d/nfs.server stop

3. Stop NFS server daemon
# /sbin/init.d/nfs.server stop

4. Stop NFS core daemon
# /sbin/init.d/nfs.core stop
This will stop NFS entirely.
Then if you disable it permanently and should start after rebot then you need to set following two parameters in /etc/rc.config.d/nfsconf.
NFS_CLIENT=0,NFS_SERVER=0

This should work.
Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: How to disable all system's NFS processes?

sorry one typo there:

Read:

2. Stop NFS client daemon
# /sbin/init.d/nfs.server stop

as

2. Stop NFS client daemon
# /sbin/init.d/nfs.client stop

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