Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my SLES 10, SLES 11, and CentOS 6 servers, I'm able to list information about each NFS mount via nfsstat -m, e.g.:

/usr/local from nfssrv1:/vol/foo
 Flags: rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=blah,mountvers=3,mountport=4046,mountproto=udp,addr=blah

We've got some older SLES 9 servers running kernel 2.6.5, and they report back "invalid option -m" when I try that command, so its not supported on the older nfs clients. How can I find out what flags are being used on these servers?

My goal is to compare the default mount options between servers to troubleshoot some NFS issues in our environment.

share|improve this question
up vote 1 down vote accepted

Look in /proc/mounts.

# grep nfs /proc/mounts
nas-0-0:/export/storage /storage nfs rw,vers=3,rsize=8192,wsize=8192,soft,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=nas-0-0 0 0
share|improve this answer
    
Thats it, thanks! – Banjer Jun 6 '12 at 19:55
    
Just mount by itself shows some flags, but /proc/mounts has more info. – Banjer Jun 7 '12 at 12:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.