PNFS Setup Instructions

From Linux NFS

(Difference between revisions)
Jump to: navigation, search
(New page: <h1>File Layout </h1> <H2>Accessing a storage system with pNFS</H2> <b>Step 0: Get pNFS kernel from git tree and install on all involved servers. </b> <p> <b>Step 1: Setup NFSv4 servers</b...)
Line 19: Line 19:
/etc/init.d/nfs start
/etc/init.d/nfs start
-
</pre></p></li>
+
</pre></li>
</UL>
</UL>
<b>Step 2: Load File Layout driver on clients</b>
<b>Step 2: Load File Layout driver on clients</b>
Line 28: Line 28:
<UL>
<UL>
<li>On pNFS client:
<li>On pNFS client:
-
<p><pre>
+
<pre>
mount -t nfs4 <i>"mds_server_name"</i>:/ /mnt/pnfs
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.
Note: Each file system has its own way of picking the MDS.  Ensure you mount only the MDS and not a DS.
-
</pre></p></li>
+
</pre></li>
</UL>
</UL>
Line 38: Line 38:
<UL>
<UL>
<li>NFS debugging:  
<li>NFS debugging:  
-
<p><pre>
+
<pre>
echo 32767 > /proc/sys/sunrpc/nfsd_debug
echo 32767 > /proc/sys/sunrpc/nfsd_debug
echo 32767 > /proc/sys/sunrpc/nfs_debug
echo 32767 > /proc/sys/sunrpc/nfs_debug
-
</pre></p></li>
+
</pre></li>

Revision as of 18:10, 17 April 2008

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)
    
  • Run the following commands on 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