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.
Prerequisites
Section titled “Prerequisites”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.
Create a File Store
Section titled “Create a 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.
# Create a File Store in zone se-sto-aevroc storage filestore create my-filestore --zone se-sto-aIf successful, the CLI responds with:
createdNote: File Store names must be unique within your project and can only contain lowercase letters, numbers, and hyphens.
Verify the File Store is ready
Section titled “Verify the File Store is ready”After creation, the File Store goes through a provisioning phase. To check its status, use the
get command:
evroc storage filestore get my-filestoreThe output includes the status information:
kind: FileStoreapiVersion: storage/v1metadata: id: my-filestore uid: 8f4e2c9d-1a3b-4c5d-6e7f-8a9b0c1d2e3f project: my-project region: se-stospec: protocol: NFS placement: zone: se-sto-a nfs: version: V4.1status: 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.
Mount the File Store on a VM
Section titled “Mount the File Store on a VM”Once your File Store is available, it’s accessible to all VMs in the same zone and VPC.
Prerequisites on the VM
Section titled “Prerequisites on the VM”Ensure the VM has the NFS client installed:
For Ubuntu/Debian:
sudo apt-get updatesudo apt-get install -y nfs-commonFor RHEL/CentOS/Rocky Linux:
sudo yum install -y nfs-utilsMount the file system
Section titled “Mount the file system”-
Create a mount point:
Terminal window sudo mkdir -p /mnt/filestore -
Mount using the endpoint IP and export path from the File Store status:
Terminal window # Replace `<filestore-endpoint>` with your File Store's endpoint IPsudo mount -t nfs4 -o nfsvers=4.1 <filestore-endpoint>:/ /mnt/filestore -
Verify the mount:
Terminal window df -h | grep filestore# Output: 10.100.0.10:/ 100G 10G 90G 10% /mnt/filestore
Configure automatic mount on boot
Section titled “Configure automatic mount on boot”To automatically mount the File Store when the VM boots, add an entry to /etc/fstab:
# Replace `<filestore-endpoint>` with your File Store's endpoint IPecho "<filestore-endpoint>:/ /mnt/filestore nfs4 nfsvers=4.1,_netdev,rsize=1048576,wsize=1048576 0 0" | \ sudo tee -a /etc/fstabThe _netdev option ensures the mount waits for the network to be available before attempting to
mount.
Test the File Store
Section titled “Test the File Store”Create a test file to verify the mount is working:
# Create a test fileecho "Hello from evroc File Store" | sudo tee /mnt/filestore/test.txt
# Read it backcat /mnt/filestore/test.txt# Output: Hello from evroc File Store
# List the filels -la /mnt/filestore/# Output: -rw-r--r-- 1 root root 28 May 19 10:35 test.txtUnmount the File Store
Section titled “Unmount the File Store”When you no longer need the File Store mounted:
sudo umount /mnt/filestoreIf the File Store is being used, you may need to stop any processes accessing it first:
# Find processes using the mountlsof /mnt/filestore
# Stop those processes, then unmountsudo umount /mnt/filestoreClean up
Section titled “Clean up”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.
evroc storage filestore delete my-filestoreYou’ll be prompted to confirm:
Are you sure (y/n)?After confirmation, the File Store enters a deleting state and is permanently removed.
Next steps
Section titled “Next steps”- Mount on multiple VMs - Learn how to share a File Store across multiple VMs
- Configure mount options - Optimize mount settings for your workload
- Troubleshoot mount issues - Solutions to common mounting problems