AIStor Files
Get started

Quick Start

Turn on AIStor Files, create an export, and mount it on a client.

This page takes an AIStor deployment to a mounted export in four steps.

Before you start

You need:

  • An AIStor deployment on Linux, with a license that includes AIStor Files. See Install for the supported distributions.
  • mc with an alias for the deployment, using an administrator's credentials.
  • TCP port 2049 open from your clients to every AIStor node.
  • The uid and gid of the client user who will write to the export. On the client, id -u and id -g print them.

1. Install the package on every node

Get the .rpm or .deb for your platform from MinIO, and install it on each AIStor node:

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

AIStor looks for the package only when it starts. On a node where AIStor is already running, restart AIStor after you install the package.

2. Turn on the gateway

mc admin config set myaistor files enable=on

AIStor starts the gateway on every node that has the package.

3. Create an export

mc files export add myaistor carol --pseudo /carol --size 10GiB --access none \
  --root-dir-uid <uid> --root-dir-gid <gid>
printf '<client> rw\n' | mc files export access myaistor carol -f -

Replace <uid> and <gid> with the client user's IDs. That user then owns the export's top directory and can write to it. Root on the client becomes nobody. Replace <client> with the client's host name or IP address. --access none keeps the export closed, and the second command allows only your client.

AIStor picks a node for the export and reports serving once that node serves it. If add reports pending, wait until mc files export list myaistor shows the export as serving. See mc files export add.

4. Mount it

On a Linux client, mount the export. Then, as the user whose IDs you gave, write a file and read it back:

sudo mkdir -p /mnt/carol
sudo mount -t nfs4 -o vers=4.1 <any-node>:/carol /mnt/carol
echo hello > /mnt/carol/first.txt
cat /mnt/carol/first.txt

You can mount through any node, because every node serves every export.

Next steps