Editing Mount a remote nfs share

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Mounting using hostname instead of IP address can solve some of errors reported in this page
 
 
 
 
  [[mount -t nfs]] -o proto=tcp,port=2049 REMOTE_IP_SERVER:/REMOTE_SHARE_DIR /YOUR/LOCAL_DIR/
 
  [[mount -t nfs]] -o proto=tcp,port=2049 REMOTE_IP_SERVER:/REMOTE_SHARE_DIR /YOUR/LOCAL_DIR/
 
   
 
   
  [[mount -t nfs4]] 10.10.10.2:/ ./
+
  mount -t nfs4 10.10.10.2:/ ./
 
  mount: /mnt: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program
 
  mount: /mnt: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program
 
  (Install client: <code> apt-get install [[nfs-common]]</code>)
 
  (Install client: <code> apt-get install [[nfs-common]]</code>)
  
 
  mount.[[nfs4]]: requested NFS version or transport protocol is not supported
 
  mount.[[nfs4]]: requested NFS version or transport protocol is not supported
 
 
  Solution: Try to mount it using hostname instead of IP
 
  Solution: Try to mount it using hostname instead of IP
  
Line 33: Line 29:
 
  Apr 22 09:28:34 your_hostname kernel: RPC: Registered named UNIX socket transport module.
 
  Apr 22 09:28:34 your_hostname kernel: RPC: Registered named UNIX socket transport module.
 
  Apr 22 09:28:34 your_hostname kernel: FS-Cache: Loaded
 
  Apr 22 09:28:34 your_hostname kernel: FS-Cache: Loaded
 
== Activities ==
 
* Read about EFS performance settings https://docs.aws.amazon.com/efs/latest/ug/performance.html#performance-tips
 
Don't use the following mount options:
 
* <code>[[noac]], [[actimeo]]=0, [[acregmax]]=0, [[acdirmax]]=0</code> – These options disable the attribute cache, which has a very large performance impact.
 
* <code>[[lookupcache]]=pos, [[lookupcache]]=none</code> – These options disable the file name lookup cache, which has a very large impact on performance.
 
* <code>[[fsc]]</code> – This option enables local file caching, but does not change NFS cache coherency, and does not reduce latencies.
 
  
 
== Related terms ==
 
== Related terms ==
* <code>[[exportfs]]</code> List exported filesystems
 
 
* <code>[[mount]]</code>
 
* <code>[[mount]]</code>
 
* [[RPC]]
 
* [[RPC]]
Line 48: Line 36:
  
 
== See also ==
 
== See also ==
* {{mount}}
 
 
* {{NFS}}
 
* {{NFS}}
  
  
 
[[Category:Computing]]
 
[[Category:Computing]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: