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
home_server:home_server_setup:other_services:nfs [2024-10-20 Sun wk42 14:36] – [NFS Server] baumkphome_server:home_server_setup:other_services:nfs [2024-10-20 Sun wk42 15:20] (current) – [NFS Client] baumkp
Line 14: Line 14:
   *[[https://www.quora.com/What-are-the-differences-between-bind-mounts-and-symlink-on-Unix|What are the differences between bind mounts and symlink on Unix?]]   *[[https://www.quora.com/What-are-the-differences-between-bind-mounts-and-symlink-on-Unix|What are the differences between bind mounts and symlink on Unix?]]
   *[[https://www.techtarget.com/searchenterprisedesktop/definition/Network-File-System|NFS]]   *[[https://www.techtarget.com/searchenterprisedesktop/definition/Network-File-System|NFS]]
 +  *[[https://shape.host/resources/how-to-set-up-and-configure-an-nfs-server-on-debian-12|How to Set Up and Configure an NFS Server on Debian 12]]
   *[[http://linux-nfs.org]]   *[[http://linux-nfs.org]]
  
Line 23: Line 24:
 ---- ----
 =====NFS Server===== =====NFS Server=====
-  *''sudo apt install nfs-kernel-server'' to install+  *''sudo apt install nfs-kernel-server nfs-common'' to install
   *Create share directories on host ''sudo mkdir -p /export/storage'' (-p also creates higher level directories if necessary.)   *Create share directories on host ''sudo mkdir -p /export/storage'' (-p also creates higher level directories if necessary.)
 ''sudo vim /etc/exports'' - edit the exports file as required ''sudo vim /etc/exports'' - edit the exports file as required
Line 57: Line 58:
  
 The base server configurations options are given in: ''sudo vim /etc/default/nfs-kernel-server''.   The base server configurations options are given in: ''sudo vim /etc/default/nfs-kernel-server''.  
-  *Add or modify the following to allow only NFSv4: +  * Add or modify the following to allow only NFSv4: 
-     *''%%RPCNFSDOPTS="-N 2 -N 3"%%'' +     * ''%%RPCNFSDOPTS="-N 2 -N 3"%%'' 
-     *''%%RPCMOUNTDOPTS="--manage-gids -N 2 -N 3"%%''+     * ''%%RPCMOUNTDOPTS="--manage-gids -N 2 -N 3"%%''
  
-To apply configuration changes ''sudo systemctl restart nfs-server.service''+The NFS configuration file ''sudo vim /etc/default/nfs-common'': 
 +  * Add or modify the following: 
 +    *''%%NEED_STATD="no"%%'' 
 +    *''%%NEED_IDMAPD="yes"%%''
  
-''sudo cat /proc/fs/nfsd/versions'' to check the server supported running versions+To apply configuration changes: ''sudo systemctl restart nfs-server.service''
  
 +''sudo cat /proc/fs/nfsd/versions'' to check the server supported running versions
  
 =====NFS Client===== =====NFS Client=====
Line 75: Line 80:
   *<fs smaller>NEED_STATD=no :(default) we do not need to change the standard port number used </fs>   *<fs smaller>NEED_STATD=no :(default) we do not need to change the standard port number used </fs>
   *<fs smaller>NEED_GSSD=no  :(default) we do not use kerebos security</fs>   *<fs smaller>NEED_GSSD=no  :(default) we do not use kerebos security</fs>
-  *<fs smaller>NEED_IDMAPD=no:(default) we do not need to map gid and uid with names </fs>+  *<fs smaller>NEED_IDMAPD=no :(no default) we do not need to map gid and uid with names </fs>
  
 Mounting the nfs client manually: Mounting the nfs client manually: