HPE 9000 and HPE e3000 Servers
1751710 Members
5111 Online
108781 Solutions
New Discussion юеВ

Re: Checking NFS on Unix Server

 
faiza
Occasional Contributor

Checking NFS on Unix Server

I have been asked to check if we are using NFS on our Unix servers. How can I check if NFS is installed and being used? sorry I have very little Unix knowledge.

TIA.
Faiza
6 REPLIES 6
KCS_1
Respected Contributor

Re: Checking NFS on Unix Server

Hi,

These are able to check NFS related of the commands which i known.

# showmount (showing mounted NFS)

# exportfs -a ( showing exported Filesystem)

# nfsstat (showing NFS status)

most of all is using the glance which purchased product one.

# glance

press 'n ' or 'N' are so useful and easy to show up abd see NFS Global status and more detail current information of the NFS.


Best Regards

-Patrick


Easy going at all.
Brian Bergstrand
Honored Contributor

Re: Checking NFS on Unix Server

All of Patrick's suggestions are good, but here are a few more:

ps -ef | grep nfsd | grep -v grep

This will list all nfs server processes. If you don't see any, then you aren't running NFS.

grep NFS_SERVER /etc/rc.config.d/nfsconf

If NFS_SERVER=1, then you are running an NFS server. If there are entries in /etc/exports, then you are also exporting shares.

grep NFS_CLIENT /etc/rc.config.d/nfsconf

If NFS_CLIENT=1, then you can mount shares from nfs servers (where you have permissions)

HTH.
faiza
Occasional Contributor

Re: Checking NFS on Unix Server

Thanx all for wornderful input and making my life easy.

I did "showmount", it doesn;t show anything.

"nfsstat" returns me info in attached file.

ps -ef | grep nfsd | grep -v grep returns 4 processes " /usr/sbin/nfsd 4"

NFS_SERVER=1 and NFS_CLIENT=1 in my config files and I have

/var/opt/ignite/clients -anon=2
in /etc/exports.

I think NFS is running on the server but no NFS is mounted and we are not exporting any files.

Now how can I stop it from running? because it is started everytime I restart my server.

TIA.
Faiza

Bernhard Mueller
Honored Contributor

Re: Checking NFS on Unix Server

Faiza,

in /etc/rc.config.d/nfsconf you can just set

NFS_SERVER=0 and NFS_CLIENT=0 and reboot

if you do not want to reboot you can run
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.core stop

do not forget to set the above config variables, else nfs will start again upon your next reboot.

Regards,
Bernhard
Michael Steele_2
Honored Contributor

Re: Checking NFS on Unix Server

Easiest way is with 'rpcinfo'.

# rpcinfo -p master/client

Display for NFS will be:

nfs, rpcbind, status, mountd, nlockmgr, llockmgr
Support Fatherhood - Stop Family Law
faiza
Occasional Contributor

Re: Checking NFS on Unix Server

Thank you very much everybody. I have stopped and disabled NFS.

Faiza