PNFS Setup Instructions

From Linux NFS

Revision as of 12:54, 13 October 2009 by BennyHalevy (Talk | contribs)
Jump to: navigation, search

File Layout

Accessing a storage system with pNFS

Step 0: Get pNFS kernel from git tree and install on all involved servers.

Step 1: Setup NFSv4 servers

  • Create /etc/exports file on all DS's and the MDS.
    /export  *(rw,sync,fsid=0,insecure,no_subtree_check)
    

    Note: starting with 2.6.32-rc1, the "pnfs" export option is required.

    /export  *(rw,sync,fsid=0,insecure,no_subtree_check,pnfs)
    

    Until support for the "pnfs" export option is publicly released, please build and install exportfs from:

    git://linux-nfs.org/~bhalevy/pnfs-nfs-utils.git
    
  • Run the following commands on the storage server<p>
    rpc.mountd
    rpc.nfsd 8
    exportfs -r
    
    or
    
    /etc/init.d/nfs start
    

Step 2: Load File Layout driver on clients

modprobe nfslayoutdriver

Step 3: Mount pNFS file system.

  • On pNFS client:
    mount -t nfs4 <i>"mds_server_name"</i>:/ /mnt/pnfs
    
    Note: Each file system has its own way of picking the MDS.  Ensure you mount only the MDS and not a DS.
    

Debugging Help

  • NFS debugging:
    echo 32767 > /proc/sys/sunrpc/nfsd_debug
    echo 32767 > /proc/sys/sunrpc/nfs_debug
    

Personal tools