Skip to content

Getting started with File Store

This guide walks you through creating a File Store instance and mounting it on a Virtual Machine (VM). You’ll learn how to create the File Store, verify it’s ready, and mount it using the standard Linux NFS client.

Before you begin, you’ll need:

  • An evroc account with appropriate IAM permissions.
  • The evroc CLI installed and logged in. For instructions, see getting started.
  • A virtual machine (VM) running in the same zone as where you’ll create the File Store.

To create a File Store, use the storage filestore create command. You’ll need to specify a unique ID for your File Store and the availability zone where it should be deployed.

Terminal window
# Create a File Store in zone se-sto-a
evroc storage filestore create my-filestore --zone se-sto-a

If successful, the CLI responds with:

created

Note: File Store names must be unique within your project and can only contain lowercase letters, numbers, and hyphens.

After creation, the File Store goes through a provisioning phase. To check its status, use the get command:

Terminal window
evroc storage filestore get my-filestore

The output includes the status information:

kind: FileStore
apiVersion: storage/v1
metadata:
id: my-filestore
uid: 8f4e2c9d-1a3b-4c5d-6e7f-8a9b0c1d2e3f
project: my-project
region: se-sto
spec:
protocol: NFS
placement:
zone: se-sto-a
nfs:
version: V4.1
status:
status: Available
protocol: NFS
nfs:
version: V4.1
endpoint: 10.100.0.10
exportPath: /
placement:
zone: se-sto-a
conditions:
- type: Ready
status: "True"
reason: Ready
message: FileStore is ready for use
lastTransitionTime: "2026-05-19T10:30:00Z"

Look for the Ready condition with status "True". This indicates the File Store is fully provisioned and ready to mount. The endpoint field shows the IP address you’ll use for mounting.

Note: Provisioning typically takes a couple of minutes. If the status shows Provisioning, wait a moment and check again.

Once your File Store is available, it’s accessible to all VMs in the same zone and VPC.

Ensure the VM has the NFS client installed:

For Ubuntu/Debian:

Terminal window
sudo apt-get update
sudo apt-get install -y nfs-common

For RHEL/CentOS/Rocky Linux:

Terminal window
sudo yum install -y nfs-utils
  1. Create a mount point:

    Terminal window
    sudo mkdir -p /mnt/filestore
  2. Mount using the endpoint IP and export path from the File Store status:

    Terminal window
    # Replace `<filestore-endpoint>` with your File Store's endpoint IP
    sudo mount -t nfs4 -o nfsvers=4.1 <filestore-endpoint>:/ /mnt/filestore
  3. Verify the mount:

    Terminal window
    df -h | grep filestore
    # Output: 10.100.0.10:/ 100G 10G 90G 10% /mnt/filestore

To automatically mount the File Store when the VM boots, add an entry to /etc/fstab:

Terminal window
# Replace `<filestore-endpoint>` with your File Store's endpoint IP
echo "<filestore-endpoint>:/ /mnt/filestore nfs4 nfsvers=4.1,_netdev,rsize=1048576,wsize=1048576 0 0" | \
sudo tee -a /etc/fstab

The _netdev option ensures the mount waits for the network to be available before attempting to mount.

Create a test file to verify the mount is working:

Terminal window
# Create a test file
echo "Hello from evroc File Store" | sudo tee /mnt/filestore/test.txt
# Read it back
cat /mnt/filestore/test.txt
# Output: Hello from evroc File Store
# List the file
ls -la /mnt/filestore/
# Output: -rw-r--r-- 1 root root 28 May 19 10:35 test.txt

When you no longer need the File Store mounted:

Terminal window
sudo umount /mnt/filestore

If the File Store is being used, you may need to stop any processes accessing it first:

Terminal window
# Find processes using the mount
lsof /mnt/filestore
# Stop those processes, then unmount
sudo umount /mnt/filestore

To delete the File Store when you no longer need it:

Warning: Deleting a File Store permanently removes all data stored on it. This action can’t be undone.

Terminal window
evroc storage filestore delete my-filestore

You’ll be prompted to confirm:

Are you sure (y/n)?

After confirmation, the File Store enters a deleting state and is permanently removed.