NFS: Difference between revisions

From miki
Jump to navigation Jump to search
m (moved Nfs to NFS: Better capitalization)
No edit summary
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].


* Install packages
* Install package <tt>nfs-kernel-server, nfs-common, portmap</tt>
<source lang="bash">
* Edit file <tt>/etc/exports</tt>
sudo apt-get install nfs-kernel-server nfs-common portmap
</source>


* Edit file <tt>/etc/exports</tt>
<source lang="text">
<source lang="text">
/files 192.168.1.0/24(rw,no_root_squash,async) #Full RW permission, incl. root access
/files 192.168.1.0/24(rw,no_root_squash,async) #Full RW permission, incl. root access
Line 17: Line 24:
</source>
</source>


== Setting up an NFS Client ==
* Install client with
* 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 ==
* Bad interferences between NFS Server and NTFS. Accessing files on a remote NTFS partition through NFS in unstable (''stale links''). Got complete system freeze.

Revision as of 10:06, 17 January 2011

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,no_root_squash,async)    #Full RW permission, incl. root access
/files 192.168.1.2 (ro,async)                     #Single machine RO access
  • 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

  • Bad interferences between NFS Server and NTFS. Accessing files on a remote NTFS partition through NFS in unstable (stale links). Got complete system freeze.