AIStor Files
Get started

Mounting from Clients

Mount options, user identities, and the behavior clients can expect.

Clients need no software from MinIO. Any NFSv4.1 client can mount an export. The gateway is tested with the Linux kernel client. Test any other client, such as Windows, macOS or ESXi, in your own environment before you rely on it.

Mount an export

sudo mkdir -p /mnt/carol
sudo mount -t nfs4 -o vers=4.1 node01.example.com:/carol /mnt/carol

The path after the colon is the export's pseudo path, / followed by its name. It is not a directory on the node.

You can mount through any node, because every node serves every export. Every node also serves /, which lists every export in the deployment. Mount / to reach every export in one mount:

sudo mkdir -p /mnt/files
sudo mount -t nfs4 -o vers=4.1 node01.example.com:/ /mnt/files

A client stays with the node it mounted through. To keep clients working while a node is down, mount through a VIP or a load balancer in front of the nodes. See Take a node out of service.

To mount over RDMA, or from GPUDirect Storage clients, see NFS over RDMA.

To mount at boot, create the mount point, and add a line to /etc/fstab:

node01.example.com:/carol  /mnt/carol  nfs4  vers=4.1,_netdev,hard,nosuid,nodev  0 0

Mount options

OptionUse
vers=4.1 or vers=4.2Required. The gateway serves NFSv4.1 and 4.2, and no earlier version.
hardThe default, and the right choice for data. The client retries during a short gateway restart.
soft,timeo=Only for an application that must fail fast. It can return I/O errors on a healthy export.
nconnect=Opens more TCP connections to one gateway. It raises the throughput of one client on a fast network.
proto=rdma,port=20049Mounts over RDMA. See NFS over RDMA.
nosuid,nodevRecommended. The client ignores the SUID and SGID bits of programs it runs from the export, and opens no device node on it.

Linux kernels to avoid

Some Linux kernels can crash when a pNFS write is sent again through another path. The client then stops responding and needs a reboot. The fault is in the Linux NFS client (CVE-2025-68349), not in the gateway. Run uname -rv on each client, and use a kernel that has the fix. On Ubuntu, uname -r shows the kernel version, such as 6.17.0-19-generic, and uname -v shows the build, such as #19~24.04.2-Ubuntu.

KernelFixed in
Upstream stable kernels6.6.120, 6.12.63, 6.17.13, 6.18.2, and every release from 6.19
Ubuntu 24.046.8.0-110 (the GA kernel), or HWE 6.17 from 6.17.0-19.19~24.04.2

Ubuntu's HWE 6.11 and HWE 6.14 kernels are end of life and will not get the fix. Do not use them on clients.

User identities

By default the gateway sends and accepts numeric user and group IDs. It does not look up names, so:

  • A UID or GID must mean the same user or group on every client. Keep them consistent with your directory service or configuration management.
  • ls -l shows owner names from the client's own user and group databases.

Exports use sec=sys (AUTH_SYS): the client states its own user ID, and the gateway trusts it. Serve exports on a trusted network, and limit which clients may mount with client access rules. AIStor does not yet support Kerberos, encrypted connections or owner names.

What clients can expect

  • POSIX namespace behavior. Directories, hard links, symbolic links, special files, renames, permission checks, the sticky bit, and SUID and SGID clearing on write. See POSIX and NFS support.
  • Byte-range locks and flock. Each lock is decided by the node that runs the file's cell, so clients mounted through different nodes see the same locks.
  • Delete on last close. Unlinking an open file removes the name at once. The space is freed when the last handle closes. No .nfs* files are left behind.
  • Quota through df. An export with a quota reports that limit as its size. A write past the limit fails with "disk quota exceeded".
  • Durability. A buffered write is stored in AIStor when the application calls fsync or closes the file. An O_DIRECT write is stored in AIStor, with the metadata that names it, before the write returns. See If a node is lost.

Large directories

The NFS work per entry limits how fast a large directory lists, not AIStor. A cold ls of a directory with one million entries takes about fifteen seconds. A second listing comes from the client's cache.

This holds only for a directory smaller than the gateway's metadata cache, which holds two million entries. A larger directory lists much more slowly.

Stale file handle errors

ESTALE on a mounted export usually means a cell is fenced: the node that ran it lost its lease and refuses changes. See Respond to a fenced export. When the export serves again, remount if the errors continue:

sudo umount -f /mnt/carol
sudo mount -t nfs4 -o vers=4.1 node01.example.com:/carol /mnt/carol