Linux NFS Troubleshooting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
* [[Linux_NFS#Troubleshooting|Linux NFS]] | * [[Linux_NFS#Troubleshooting|Linux NFS]] | ||
* [[Linux_NFS_Installation#NFS_Troubleshooting|Linux NFS Installation]] | * [[Linux_NFS_Installation#NFS_Troubleshooting|Linux NFS Installation]] | ||
=Verbose <tt>mount</tt>= | |||
Try to mount with -v (verbose) | |||
=showmount= | |||
Use | |||
<pre> | |||
showmount -e | |||
</pre> | |||
on the server to see what is exported. | |||
=mount hangs= | |||
I've seen cases when trying to mount a filesystem from ''other machine'' hangs if nfs is not started on ''that machine'' (service nfs start). | |||
=mount.nfs: access denied by server while mounting= | |||
I've also seen cases when I get the following error message when not using <tt>-t nfs</tt>, so use <tt>-t nfs</tt>: | |||
<pre> | |||
mount.nfs: access denied by server while mounting f01:/opt/shared | |||
</pre> | |||
=mount(2): No such file or directory= | |||
<tt>mount -v</tt> yields: | |||
<pre> | |||
mount.nfs: trying text-based options 'bg,vers=4,addr=172.31.20.184,clientaddr=172.31.21.24' | |||
mount.nfs: mount(2): No such file or directory | |||
... | |||
</pre> | |||
I get this because I use the wrong exported path in <tt>/etc/fstab</tt>. |
Revision as of 06:44, 21 August 2016
Internal
Verbose mount
Try to mount with -v (verbose)
showmount
Use
showmount -e
on the server to see what is exported.
mount hangs
I've seen cases when trying to mount a filesystem from other machine hangs if nfs is not started on that machine (service nfs start).
mount.nfs: access denied by server while mounting
I've also seen cases when I get the following error message when not using -t nfs, so use -t nfs:
mount.nfs: access denied by server while mounting f01:/opt/shared
mount(2): No such file or directory
mount -v yields:
mount.nfs: trying text-based options 'bg,vers=4,addr=172.31.20.184,clientaddr=172.31.21.24' mount.nfs: mount(2): No such file or directory ...
I get this because I use the wrong exported path in /etc/fstab.