Setup NFS Server

From RidgeRun Developer Wiki
Revision as of 16:43, 6 March 2014 by Efernandez (talk | contribs)

Introduction

This wiki explains the process of setting up a NFS server in a target board.

Kernel Configuration

Enable kernel NFS server support

-> Kernel configuration                                                                                                                               
   -> File systems                                                                                                                                    
      -> Network File Systems (NETWORK_FILESYSTEMS [=y])
         -> NFS server support (NFSD [=y])  

Suboptions to support NFS version 3 and NFS version 4 can be selected

-> Kernel configuration                                                                                                                               
   -> File systems                                                                                                                                    
      -> Network File Systems (NETWORK_FILESYSTEMS [=y])
         -> NFS server support (NFSD [=y])  
            -> NFS server support for NFS version 3 
-> Kernel configuration                                                                                                                               
   -> File systems                                                                                                                                    
      -> Network File Systems (NETWORK_FILESYSTEMS [=y])
         -> NFS server support (NFSD [=y])  
            -> NFS server support for NFS version 4 

Required Packages

nfs-utils

The NFS Utilities package contains the userspace server and client tools necessary to use the kernel's NFS abilities (http://www.linuxfromscratch.org/blfs/view/svn/basicnet/nfs-utils.html_).


rpcbind

The rpcbind program is a replacement for portmap. It is an Open Network Computing Remote Procedure Call (ONC RPC) service that runs on network nodes that provide other ONC RPC services. It is required for import or export of Network File System (NFS) shared directories. (http://www.linuxfromscratch.org/blfs/view/svn/basicnet/rpcbind.html)

libtirpc

The libtirpc package contains libraries that support programs that use the Remote Procedure Call (RPC) API. It replaces the RPC, but not the NIS library entries that used to be in glibc. It is required for rpcbind. (http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libtirpc.html).


File system configuration

Enable nfs-utils

-> File System Configuration                                                                                                                                │  
     -> Select target's file system software
          -> nfs-utils-1.2.9