NFS: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__TOC__ |
|||
This page is part of the [[Linux Disk Management]] pages. |
|||
== Setting up an NFS Server == |
== Setting up an NFS Server == |
||
See howto [http://ubuntuforums.org/showthread.php?t=249889 here]. |
See howto [http://ubuntuforums.org/showthread.php?t=249889 here]. |
||
⚫ | |||
⚫ | |||
<source lang="bash"> |
|||
⚫ | |||
⚫ | |||
</source> |
|||
⚫ | |||
<source lang="text"> |
<source lang="text"> |
||
/files 192.168.1.0/24(rw |
/files 192.168.1.0/24(rw,async) #Full RW permission, incl. root access |
||
/files 192.168.1.2 (ro,async) #Single machine RO access |
/files 192.168.1.2 (ro,async) #Single machine RO access |
||
</source> |
</source> |
||
Add <code>no_root_squash</code> option to avoid remapping user root to nfsnobody ('''not recommended'''). |
|||
* Restart the server |
* Restart the server |
||
Line 17: | Line 25: | ||
</source> |
</source> |
||
== Setting up an NFS Client == |
|||
⚫ | |||
* Install client packages |
|||
<source lang="bash"> |
<source lang="bash"> |
||
sudo apt-get install portmap nfs-common |
sudo apt-get install portmap nfs-common |
||
</source> |
</source> |
||
== Issues == |
|||
* '''Stale NFS file handler''' on NTFS — Bad interferences between NFS Server and NTFS. Accessing files on a remote NTFS partition through NFS in unstable (''stale NFS file handler''). Got even complete system freeze. |
Latest revision as of 20:42, 7 May 2017
This page is part of the Linux Disk Management pages.
Setting up an NFS Server
See howto here.
- Install packages
sudo apt-get install nfs-kernel-server nfs-common portmap
- Edit file /etc/exports
/files 192.168.1.0/24(rw,async) #Full RW permission, incl. root access
/files 192.168.1.2 (ro,async) #Single machine RO access
Add no_root_squash
option to avoid remapping user root to nfsnobody (not recommended).
- Restart the server
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a # Also needed after making changes to /etc/exports
Setting up an NFS Client
- Install client packages
sudo apt-get install portmap nfs-common
Issues
- Stale NFS file handler on NTFS — Bad interferences between NFS Server and NTFS. Accessing files on a remote NTFS partition through NFS in unstable (stale NFS file handler). Got even complete system freeze.