meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:remotefs:nfs [2025/02/26 08:37] niziaklinux:remotefs:nfs [2025/04/24 08:06] (current) niziak
Line 9: Line 9:
   on lossy networks. In addition, TCP will handle network speed differences better than UDP, due to the underlying    on lossy networks. In addition, TCP will handle network speed differences better than UDP, due to the underlying 
   flow control at the network level.    flow control at the network level. 
 +
 +===== show child mounts =====
 +
 +Mounts inside NFS export. Crossmounts.
 +
 +  * **nohide**: This option prevents the NFS server from hiding the contents of a directory when it's mounted by a client. If you don't use ''nohide'', clients will only see the directory itself, not the contents of any subdirectories that are themselves mounted. 
 +  * **crossmnt**: This option is similar to ''nohide'' but specifically allows clients to navigate and access filesystems that are mounted within the exported directory. It ensures that the NFS client can "see through" the mount point and access the filesystems mounted beneath it. 
 +
 +<file ini /etc/exports>
 +/srv * (sync,no_subtree_check,crossmnt,nohide)
 +</file>
  
 ===== performance ===== ===== performance =====
Line 16: Line 27:
   * **async** - This option allows the NFS server to violate the NFS protocol and reply to requests before any changes made by that request have been committed to stable storage (e.g. disc drive).    * **async** - This option allows the NFS server to violate the NFS protocol and reply to requests before any changes made by that request have been committed to stable storage (e.g. disc drive). 
   * **all_squash** - Map all uids and gids to the anonymous user. Useful for NFS-exported public FTP directories, news spool directories, etc. The opposite option is no_all_squash, which is the default setting.    * **all_squash** - Map all uids and gids to the anonymous user. Useful for NFS-exported public FTP directories, news spool directories, etc. The opposite option is no_all_squash, which is the default setting. 
 +
 +On client ''/etc/fstab'':
 +  * ''homeserver:/srv/downloads /srv/downloads nfs4 _netdev,x-systemd.after=network-online.target,x-systemd.device-timeout=0,noatime,nodiratime,nfsvers=4.2 0 0''
 +
  
 ===== diagnostic ===== ===== diagnostic =====