cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop nfs services

how to stop nfs services

Hello
Can somebody explain what is the following processes

$ ps -ef | grep nfs
root 33 0 0 14:20:25 ? 0:00 nfs4clntkd
root 32 0 0 14:20:25 ? 0:00 nfs_failover
root 31 0 0 14:20:25 ? 0:00 nfs_async_io
root 29 0 0 14:20:25 ? 0:00 nfs_reclaim
root 34 0 0 14:20:25 ? 0:00 nfs4_async_io
root 103 0 0 14:20:53 ? 0:00 nfs4srvkd
root 102 0 0 14:20:53 ? 0:00 nfslogkd

I don't want nfs service be running at all so I execute:
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop

but mentioned processes still run on the HP-UX B.11.31.
5 REPLIES
Jose Mosquera
Honored Contributor

Re: how to stop nfs services

Hi,

Please check this document:
http://docs.hp.com/en/5991-1154/ch02s02.html#bghechdj

Rgds.

Re: how to stop nfs services

Hi Jose Thanks for reply.
I received the following message for the
$ /usr/sbin/showmount -a
showmount: HP-UX: RPC: Rpcbind failure - RPC: Unable to receive

In any case I have NFS_SERVER=0 in the file
/etc/rc.config.d/nfsconf so the server should not be running, but there is still this proesses
$ ps -ef | grep nfs
root 33 0 0 14:20:25 ? 0:00 nfs4clntkd
root 32 0 0 14:20:25 ? 0:00 nfs_failover
root 31 0 0 14:20:25 ? 0:00 nfs_async_io
root 29 0 0 14:20:25 ? 0:00 nfs_reclaim
root 34 0 0 14:20:25 ? 0:00 nfs4_async_io
root 103 0 0 14:20:53 ? 0:00 nfs4srvkd
root 102 0 0 14:20:53 ? 0:00 nfslogkd

Do i need them? How can I force them not to start after reboot?
Jose Mosquera
Honored Contributor

Re: how to stop nfs services

Hi,

My previous doc reference is obsolete, you are in NFSv4, so please check "Disabling the NFS Server" into this updated doc:
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02153184/c02153184.pdf

Rgds.

Re: how to stop nfs services

I check the section in this document. Can't find the file sharetab
$ sudo unshareall -F nfs
sed: Cannot find or open file /etc/dfs/sharetab.

My nfsconf file

$ cat /etc/rc.config.d/nfsconf
#********************** NFSCONF ******************************************
#
# NFS Configuration File.
#
# @(#) nfsconf $Revision: $
#
#***************************************************************************
# Core configuration variables
#
# NFS_CORE: If set to 0, services in nfs.core and
# rpcbind will not be started. rpcbind is needed
# for NFS, AutoFS, and other applications.
# Default is 1.
#
# RPCBIND_OPTIONS: Options to be passed to rpcbind when it is
# started. See rpcbind(1M). Default is "".
#
#***************************************************************************
NFS_CORE=0
RPCBIND_OPTIONS=""

#***************************************************************************
# Remote lock manager configuration variables
#
# LOCKMGR: 1 if this node is an NFS client or an NFS
# server or remote lock manager is needed
# (NFS_CORE must be set to 1). 0 if not.
# Default is 1.
#
# LOCKD_OPTIONS: Options to be passed to rpc.lockd when it is
# started. See lockd(1M). Default is "".
#
# STATD_OPTIONS: Options to be passed to rpc.statd when it is
# started. See statd(1M). Default is "".
#
#***************************************************************************
LOCKMGR=1
LOCKD_OPTIONS=""
STATD_OPTIONS=""

#***************************************************************************
# NFS client configuration variables
#
# NFS_CLIENT: Is this node is an NFS client (NFS_CORE must be
# set to 1). 0 if not. Default is 1.
#
#***************************************************************************
NFS_CLIENT=0

#***************************************************************************
# NFS server configuration variables
#
# NFS_SERVER: Is this node is an NFS server (NFS_CORE must be
# set to 1). 0 if not. Default is 1.
#
# PCNFS_SERVER: Is this node is a server for PC-NFS requests.
# This variable controls the startup of the
# pcnfsd server. See pcnfsd(1M). Default is 0.
#
# START_NFSLOGD: Is nfslogd is started at startup. 0 if not.
# This variable controls the startup of nfslogd.
# See nfslogd(1M). Default is 0.
#
# START_MOUNTD: 1 if mountd is started at startup. 0 if not.
# Default is 1.
#
# MOUNTD_OPTIONS: Options to be passed to rpc.mountd when it is
# started. See mountd(1M). Default is "".
#
#***************************************************************************
NFS_SERVER=0
PCNFS_SERVER=0
START_NFSLOGD=0
START_MOUNTD=1
MOUNTD_OPTIONS=""

#***************************************************************************
# AutoFS configuration variables
#
# AUTOFS: 1 if this node uses AutoFS (NFS_CORE must be set to 1).
# 0 if not. Default is 1.
# AUTOMOUNT_OPTIONS: Options to be passed to automount when it is run.
# See automount (1M). Default is "".
# AUTOMOUNTD_OPTIONS: Options to be passed to automountd when it is started.
# See automountd (1M). Default is "".
# AUTO_MASTER: The AutoFS master map file. See automount (1M).
# Default is "/etc/auto_master".
#***************************************************************************
AUTOFS=0
AUTOMOUNT_OPTIONS=""
AUTOMOUNTD_OPTIONS=""
AUTO_MASTER="/etc/auto_master"

#********************** End of NFSCONF **************************
AUTOMOUNT=0
ManojK_1
Valued Contributor

Re: how to stop nfs services

Hi,

Your NFS configuration file shows you have disabled NFS Server, Client service.

Your NFS Service is already running in the server. I think you have update this files after service got started.

For stopping currently running NFS Service please run the following commmands.

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

Manoj K
Thanks and Regards,
Manoj K