Difference between revisions of "NFSv4"

From ArchWiki
Jump to navigation Jump to search
m (Required packages)
m (Required packages)
Line 14: Line 14:
 
Download the packages, makepkg and install them.
 
Download the packages, makepkg and install them.
 
<br>'''Note: currently pacman doesn't seem to handle replacing when invoked with pacman -U.'''
 
<br>'''Note: currently pacman doesn't seem to handle replacing when invoked with pacman -U.'''
'''Therefore, you'll need to remove nfs-utils before installing nfs4-utils (which is a complete replacement).'''
+
'''Therefore, you'll need to remove nfs-utils before installing nfs4-utils''' (which is a complete drop-in replacement).
  
 
==Exports==
 
==Exports==

Revision as of 11:35, 6 November 2007



Goals

The goal of this article is getting NFSv4 running on ArchLinux.

Required packages

Required packages for both client and server (from AUR):

  1. libgssglue
  2. librpcsecgss
  3. nfs4-utils

Download the packages, makepkg and install them.
Note: currently pacman doesn't seem to handle replacing when invoked with pacman -U. Therefore, you'll need to remove nfs-utils before installing nfs4-utils (which is a complete drop-in replacement).

Exports

First we'll need to edit our exports in /etc/exports. A typical NFSv4 export would look like this:

/export    *(rw,fsid=0,insecure,no_subtree_check,async,no_root_squash)
/export/music *(rw,async)

/export is the NFS root here (specifying multiple NFSv4 roots seems impossible; you will need to do something with bind mounts if you want this) and everything else has to be placed under /export.

Then, /etc/idmapd.conf needs to be edited. You'll need to specify the Domain there on both client and server, so that they are identical.

Starting the server

To start the NFS server, just

/etc/rc.d/nfsd start
/etc/rc.d/nfs4-common start

If you want to tweak the configuration, feel free to edit /etc/conf.d/nfs to your needs.

Mounting the partitions on the client

On the client, to mount the NFSv4 partition:

/etc/rc.d/nfs4-common start
mount -t nfs4 server:/ /mnt/server/
mount -t nfs4 server:/music /mnt/music/

Note that the root of the path on the server is the NFS root specified; all paths must be specified relative to that.

Take a look at the gentoo wiki for further instructions on how to configure NFSv4.