≡ Menu

Find out if NFS Service Running On Linux / Unix Server


Sample outputs:

root     10446  0.0  0.0   2980   300 pts/0    S+   00:11   0:00 grep portman

Also make sure mountd is running:
# ps aux | grep 'mountd'
Sample outputs:

root      7859  0.0  0.0  24916   768 ?        Ss   Jun23   1:37 rpc.mountd

Debian / Ubuntu Linux user

Type the following commands:
# /etc/init.d/nfs-kernel-server status
OR
# service nfs-kernel-server status
Sample outputs:

nfsd running

On older system (NFSv3 and older), you also need to make sure portmap service is running:
# /etc/init.d/portmap status
OR
# service portmap status
Sample outputs:

portmap is running.

RHEL / CentOS / Fedora Linux user

Type the following command:
# service nfs status
# service portmap status ## <-- required for nfsv3 and earlier only

Sample outputs:

rpc.svcgssd is stopped
rpc.mountd (pid 7859) is running...
nfsd (pid 7924 7923 7922 7921 7920 7919 7918 7917) is running...
rpc.rquotad (pid 7855) is running...

FreeBSD Unix users

Type the following commands to make sure all required 3 services are running on the FreeBSD:
# ps aux | egrep 'rpcbind|mountd|nfsd'

Share this tutorial on:
{ 2 comments… add one }
  • K Thangamariappan August 31, 2014, 10:50 am

    [root@server ~]# rpcinfo -p localhost <— Available version for nfs (4,3 and 2)
    program vers proto port service
    100000 4 tcp 111 portmapper
    100000 3 tcp 111 portmapper
    100000 2 tcp 111 portmapper
    100000 4 udp 111 portmapper
    100000 3 udp 111 portmapper
    100000 2 udp 111 portmapper

  • karthik September 14, 2015, 1:33 pm

    Hi
    How can check the nfs server is exporting the dirctory from server side .
    checking from /var/lib/nfs/etab and /var/lib/nfs/mtab any other commands is their to know the status Whether its is exporting or not …
    apart from nfs service. any command is that to know better information .

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">