29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Create <strong>and</strong> mount the <strong>GPFS</strong> file system. In the examples, we assume a file system with a local mount<br />

point of /gpfs.<br />

For performance reasons, some NFS implementations cache file information on the client. Some of the<br />

information (for example, file state information such as file size <strong>and</strong> timestamp) is not kept up-to-date<br />

in this cache. The client may view stale inode data (on ls -l, for example) if exporting a <strong>GPFS</strong> file<br />

system with NFS.<br />

If this is not acceptable for a given installation, caching can be turned off by mounting the file system<br />

on the client using the appropriate operating system mount option (for example, -o noac on Linux NFS<br />

clients). Turning off NFS caching results in extra file systems operations to <strong>GPFS</strong>, <strong>and</strong> negatively affect<br />

its performance.<br />

2. Make sure that the clocks of all nodes in the <strong>GPFS</strong> cluster are synchronized. If this is not done, NFS<br />

access to the data, as well as other <strong>GPFS</strong> file system operations, may be disrupted.<br />

NFS relies on metadata timestamps to validate the local operating system cache. If the same directory<br />

is either NFS-exported from more than one node, or is accessed with both the NFS <strong>and</strong> <strong>GPFS</strong> mount<br />

point, it is critical that clocks on all nodes that access the file system (<strong>GPFS</strong> nodes <strong>and</strong> NFS clients)<br />

are constantly synchronized using appropriate software (for example, NTP). Failure to do so may result<br />

in stale information seen on the NFS clients.<br />

3. Ensure that NFS is properly configured <strong>and</strong> running.<br />

For Linux nodes, information on configuring NFS can be obtained at www.linuxdoc.org.<br />

For AIX nodes, information on configuring NFS can be obtained at publib.boulder.ibm.com/infocenter/<br />

pseries/index.jsp.<br />

4. Edit the /etc/exports file. Include all of the file systems to be exported. For example, to export the<br />

directory /gpfs/dir1 to the cluster1 node, enter:<br />

/gpfs/dir1 rw,access=cluster1<br />

Export considerations<br />

Keep the following points in mind when exporting a <strong>GPFS</strong> file system to NFS. The operating system being<br />

used, <strong>and</strong> version of NFS may require special h<strong>and</strong>ling or consideration.<br />

Linux export considerations: For Linux nodes only, issue the exportfs -ra comm<strong>and</strong> to initiate a reread<br />

of the /etc/exports file.<br />

Starting with Linux kernel versions 2.6, an fsid value must be specified for each <strong>GPFS</strong> file system that is<br />

NFS exported. The format of the entry in /etc/exports for the <strong>GPFS</strong> directory /gpfs/dir1 looks like:<br />

/gpfs/dir1 cluster1(rw,fsid=745)<br />

The administrator must assign fsid values subject to the following conditions:<br />

1. They must be unique for each file system.<br />

2. The values must not change over reboots (the file system should be unexported before any change is<br />

made to an already assigned fsid).<br />

3. Entries in the /etc/exports file are not necessarily file system roots. You may export multiple directories<br />

within a file system. In the case of different directories of the same file system, the fsid should be the<br />

same. For example, in the <strong>GPFS</strong> file system /gpfs, if two directories are exported (dir1 <strong>and</strong> dir2) the<br />

entries may look like:<br />

/gpfs/dir1 cluster1(rw,fsid=745)<br />

/gpfs/dir2 cluster1(rw,fsid=745)<br />

4. If a <strong>GPFS</strong> file system is exported from multiple nodes, the fsids should be the same on all nodes.<br />

Large installations with hundreds of compute nodes <strong>and</strong> a few login or NFS exporting nodes require tuning<br />

the <strong>GPFS</strong> parameters maxFilesToCache <strong>and</strong> maxStatCache with the mmchconfig comm<strong>and</strong>. The<br />

Chapter 6. Managing <strong>GPFS</strong> access control lists <strong>and</strong> NFS export 53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!