pNFS is an extension of NFS that allows clients to read and write files that are distributed across multiple NFS servers.

  1. Clients mount and talk to a pNFS metadata server (MDS). Its role is to tell clients where to find different pieces of the files it is trying to read and write. These are called layouts.
  2. Clients talk directly to data servers (DS), which store pieces of files. Clients learn which DSes to talk to after getting a layout from the MDS.

Diagrammatically,

flowchart TB
    subgraph PF["pNFS files layout"]
        C["pNFS client"]
        MDS["Metadata server"]
        DS["Data servers"]
    end

    C <-->|"1. Layouts (NFSv4.1+)"| MDS
    C <-->|"2. Read/write (NFSv4.1+)"| DS
    MDS <-->|"3. Control (unspecified)"| DS

It defines three forms of communication:

  1. Layouts: Clients get a revocable grant that says which DSes hold a file’s data and how to reach them. This channel also carries metadata operations (open, lookup, getattr, locks), layout recalls, and other client-server metadata.
  2. Read/write: Clients read and write directly to the DSes where file data will live. Data traffic bypasses the metadata server, which is where pNFS gets its parallel performance.
  3. Control: The MDS tells DSes which clients may access which files and cuts off clients whose layouts it has revoked. The MDS also uses this channel to determine file sizes and timestamps.

The original specification of Parallel NFS, defined in RFC 8434, was very Lustre-like. It relied on clients getting file layout information from a single metadata server (like Lustre does) before clients can talk directly to data servers. As the Lustre community learned, this is fundamentally not scalable. Panasas and NetApp were proponents of the original pNFS, but it never gained a lot of traction.

In more recent history, people are figuring out how to properly distribute the pNFS metadata server function to make pNFS actually scalable. Novus and Lattice are examples of how the MDS can be distributed over multiple physical servers. I assume Hammerspace does something similar.

Flex Files

Flexible File Layout (Flex Files) is a layout type for pNFS that allows clients to use the NFSv3 protocol (which is stateless and quick) for accessing data and NFSv4 (which is rich) when accessing metadata:

flowchart TB
    subgraph FF["pNFS Flex Files"]
        C["pNFS client"]
        MDS["Metadata server (MDS)"]
        SD["Data servers (DS)"]
    end

    C <-->|"1. Layouts (NFSv4.1+)"| MDS
    C <-->|"2. Read/write (NFSv3 or NFSv4.x)"| SD
    MDS -->|"3. Control (loose=nfs; tight=unspecified)"| SD

RFC 8435 defines this capability in terms of how different components can talk to each other:

  1. Layouts: Clients get layouts from metadata servers using the NFSv4.1+ protocol
  2. Read/write: Clients read/write data from data servers using either NFSv3 or NFSv4.x
  3. Control: Metadata servers and data servers coordinate with each other using either an unspecified protocol (“tight”) or standard NFS (“loose”)

Flex Files allows for “tight” or “loose” coupling of metadata and data servers.

  • Loose coupling forces the control protocol between MDS and DS to be plain NFS, which means the DS can be any NFS from any supplier. The downside is that the MDS lacks elegant ways to revoke layouts it handed out to clients or enforce NFSv4 opens or locks.
  • Tight coupling lets the implementor use whatever control protocol they want between MDS and DSes, but it requires the client-to-DS protocol to be NFSv4.1+.

In practice, nothing stops a vendor from advertising loose coupling (to get NFSv3 on the data path) but using a custom protocol between MDS and DS. This would allow the MDS and DSes to work better together (e.g., enforce layout revocation on the server side) while getting NFSv3 performance between clients.

Flex Files data path enhancements

Flex Files also supports client-side mirroring1 and bypassing NFS for data access if the DS is running on the same physical host as the client.

There is a post on reddit2 that describes the benefits of pNFS from NFS v4.2 with Flex Files. For posterity:

cbg523 via r/hpc

Actually, there are multiple fundamental differences between pNFSv4.1 from 2011 and the introduction of pNFSv4.2 with Flex Files in 2019. With v4.2 it solves the innate chattiness of the NFS protocol, adds intelligence into the client, etc. The recent addition of localio in v6.12 of the Linux kernel adds even more efficiency, bypassing the NFS protocol within the kernel when storage is local within the server, such as NVMe that is included in DGX servers.

…

The advantage of course is that the client is already included in standard Linux distributions.

I think Hammerspace led the development of this, and it sounds like it addresses many of the issues of the original pNFS.

Implementations

Footnotes

  1. Parallel NFS (pNFS) Flexible File Layout RFC 8435 ↩

  2. Parallel NFS (pNFS) - Anyone using it without Hammerspace? ↩

  3. https://blocksandfiles.com/2025/11/17/dell-powerscale-gets-struck-by-lightning-and-goes-parallel/ ↩