AIStor Files
Get started

Install

Supported platforms, what the package installs, and how to turn the gateway on, upgrade it, and remove it.

AIStor Files ships as one package per platform. Install it on every AIStor node, then turn the gateway on in AIStor. AIStor starts, supervises, and stops the gateway on each node.

Supported platforms

ItemRequirement
DistributionsRHEL, Rocky, or AlmaLinux 9 and later; Debian 12 and later; Ubuntu 22.04 and later
Architecturesamd64 and arm64
Packages.rpm and .deb, from MinIO
AIStorA deployment on the same nodes, with a license that includes AIStor Files
ClientsAny NFSv4.1 client. The gateway is tested with the Linux kernel client. See Linux kernels to avoid.
NetworkTCP port 2049 open from clients to every node

Install the package

Install the package on every AIStor node:

sudo dnf install -y ./aistor-files-<version>.x86_64.rpm     # Intel or AMD
sudo dnf install -y ./aistor-files-<version>.aarch64.rpm    # Arm
sudo apt-get install -y ./aistor-files_<version>_amd64.deb  # Intel or AMD
sudo apt-get install -y ./aistor-files_<version>_arm64.deb  # Arm

The package manager installs the dependencies, such as rpcbind and D-Bus. Check the installed version with files -V.

AIStor looks for the package only when it starts. On a node where AIStor is already running, restart AIStor after the first install. Until then, AIStor does not start the gateway on that node.

The package bundles its own NFS server. Do not install a distribution nfs-ganesha package, and do not run another NFS server on port 2049.

What the package installs

PathWhat it is
/usr/bin/filesThe gateway
/usr/bin/files-mgrA tool to inspect the gateway on one node
/usr/bin/files-backupA tool to back up and restore an export's metadata

The package installs no systemd unit, nothing under /etc, and no state directory. AIStor runs the gateway.

Turn the gateway on

mc admin config set myaistor files enable=on

AIStor then starts the gateway on every node that had the package when AIStor started. The setting needs no restart of AIStor. If a node's gateway exits, AIStor starts it again. The setting is off by default.

To turn the gateway off on every node:

mc admin config set myaistor files enable=off

AIStor stops each gateway cleanly: the gateway writes its buffered data to AIStor, saves its metadata, and releases the leases of the cells it runs. Every export is unavailable until you turn the gateway on again. AIStor ends a gateway that has not stopped after one minute; a gateway ended that way releases no leases, so another node waits out the lease term before it takes those cells. When you turn the gateway on again, each cell gives clients 90 seconds to reclaim their opens and locks, which a client with a hard mount does by itself. A client that reconnects after those 90 seconds cannot reclaim: its locks are gone, and another client may already hold a conflicting one. Have its applications reopen their files and take their locks again.

Where an export's data lives

WhatWhere
File data and metadataThe aistor-files bucket. AIStor creates it and hides it from S3 listings.
A local copy of the metadata.minio.sys/files/cells/ on each of the node's drives. The gateway rebuilds it from the bucket.
The gateway's state, socket, and PID file.minio.sys/files/ on the node's first drive

Do not change anything in these places with other tools.

Upgrade

Install the new package on each node, the same way as above. The running gateway keeps its version until AIStor starts it again. To start the new version, restart AIStor on the node, or turn the gateway off and on, which restarts it on every node.

Metadata from an earlier version is read as it is. There is no migration step. To check that every node runs the new version, see Monitoring.

Remove AIStor Files

To take one node out, see Take a node out of service. To remove AIStor Files from the whole deployment:

  1. Remove every export with mc files export remove myaistor <export> --force. See mc files export remove.

  2. Turn the gateway off: mc admin config set myaistor files enable=off.

  3. Remove the package from every node:

    sudo dnf remove aistor-files        # RHEL, Rocky, AlmaLinux
    sudo apt-get remove aistor-files    # Debian, Ubuntu

The exports' data stays in the aistor-files bucket. AIStor cannot delete it yet.