Skip to content

Troubleshooting File Store

This guide helps you diagnose and resolve common issues when working with File Store.

Before you begin troubleshooting, ensure you have:

  • The evroc CLI installed and configured
  • Access to the VM where the File Store is mounted (for mount-related issues)
  • Appropriate IAM permissions to view File Store resources
  • The NFS client tools installed (for mount troubleshooting)

Before troubleshooting mount issues, verify the File Store is available:

Terminal window
evroc storage filestore get my-filestore

Look for the Ready condition with status "True". If the status is Provisioning or Pending, wait for it to complete.

Test connectivity to the File Store endpoint:

Security groups may block ICMP ping, so try connecting directly to the NFS port:

Terminal window
# Replace `<filestore-endpoint>` with your File Store's endpoint IP
# Test if the NFS port is reachable (if telnet is available)
telnet <filestore-endpoint> 2049
# Or attempt a connection using /dev/tcp (works in most shells)
timeout 5 bash -c "</dev/tcp/<filestore-endpoint>/2049" && echo "Connection successful"

If connection fails, check:

  • The VM and File Store are in the same VPC
  • Security groups allow traffic between the VM and File Store (TCP port 2049). Note: Default security groups already allow this; you only need to check this if using custom security groups
  • The File Store is in Available status

Verify nfs-common is installed:

Terminal window
# For Ubuntu/Debian
dpkg -l | grep nfs-common
# For RHEL/CentOS
rpm -qa | grep nfs-utils

Check NFS client version:

Terminal window
nfsstat --version

File Store requires NFSv4.1 support. Ensure your client supports it.

Common mount errors and solutions:

Error Cause Solution
Connection timed out Network connectivity issue Check VPC and security groups
No route to host VM can’t reach File Store Verify endpoint IP and VPC configuration
Access denied Custom security group blocking Add rule for TCP 2049 (default security groups already allow this)
Stale file handle File Store recovered while files open Unmount and remount
Invalid argument Wrong mount options Use nfsvers=4.1

For detailed debugging, mount with verbose flags:

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

This shows the mount process step by step.

If you see Connection refused:

  1. Verify File Store is running:

    Terminal window
    evroc storage filestore get my-filestore
  2. Check if the File Store is in the same zone as your VM:

    status:
    placement:
    zone: se-sto-a
  3. Verify security groups allow ingress on TCP port 2049 (only needed if using custom security groups; default security groups already allow this)

If mounts timeout:

  1. Check if there are custom security groups or firewall rules blocking traffic (default security groups already allow NFS traffic)

  2. Verify the File Store endpoint IP hasn’t changed (it shouldn’t)

If a mount command hangs:

  1. Check if using hard mount option (can cause indefinite hangs on server failure)

  2. Add intr option to allow interruption:

    Terminal window
    # Replace `<filestore-endpoint>` with your File Store's endpoint IP
    sudo mount -t nfs4 -o nfsvers=4.1,_netdev,hard,intr <filestore-endpoint>:/ /mnt/filestore
  3. If already hung, use Ctrl+C to interrupt

If you see Permission denied when mounting:

  1. Verify you’re using sudo:

    Terminal window
    sudo mount -t nfs4 ...
  2. Check if the mount point exists and is accessible:

    Terminal window
    ls -ld /mnt/filestore
  3. Ensure the mount point is empty:

    Terminal window
    ls -la /mnt/filestore

If mount succeeds but you can’t access files:

  1. Check file permissions:

    Terminal window
    ls -la /mnt/filestore
  2. Verify user/group ownership:

    Terminal window
    id
    ls -la /mnt/filestore | head
  3. Check if you need root access:

    Terminal window
    sudo ls -la /mnt/filestore
  4. Verify directory permissions allow access

If you see Stale file handle errors:

Cause: The File Store recovered (pod rescheduled) while you had files open.

Solution:

  1. Close all applications using the File Store

  2. Unmount the File Store:

    Terminal window
    sudo umount /mnt/filestore
  3. If unmount fails, use lazy unmount:

    Terminal window
    sudo umount -l /mnt/filestore
  4. Remount:

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

Note: If files were open during the recovery, applications may need to reopen them.

If performance is slower than expected (<100 MB/s):

  1. Check mount options:

    Terminal window
    mount | grep filestore

    Ensure rsize and wsize are set to 1048576:

    Terminal window
    sudo mount -t nfs4 -o nfsvers=4.1,_netdev,rsize=1048576,wsize=1048576 ...
  2. Verify same-zone access:

    • File Store performance is guaranteed only within the same zone
    • Verify the VM is in the same zone as the File Store
    • Cross-zone access is not supported
  3. Check network latency: Since security groups may block ping, you can estimate latency by timing the mount or file operations. Latency should be <1ms for same-zone access

  4. Monitor File Store metrics:

    • Check if the File Store is under heavy load from other clients
    • Consider distributing load across multiple File Stores
  5. Test throughput:

    Terminal window
    # Test write speed
    dd if=/dev/zero of=/mnt/filestore/test-write bs=1M count=1024 oflag=direct
    # Test read speed
    dd if=/mnt/filestore/test-write of=/dev/null bs=1M count=1024 iflag=direct

If connections drop during heavy I/O:

  1. Check if using soft mount (may cause data loss):

    Terminal window
    mount | grep filestore

    Switch to hard mount:

    Terminal window
    sudo mount -t nfs4 -o nfsvers=4.1,_netdev,hard,intr ...
  2. Increase NFS timeout values:

    Terminal window
    sudo mount -t nfs4 -o nfsvers=4.1,_netdev,hard,timeo=600,retrans=3 ...
  3. Reduce concurrent I/O operations

“Connection refused” or “Too many open connections”

Section titled ““Connection refused” or “Too many open connections””

If you hit connection limits:

  1. Check current connection count via metrics
  2. Reduce concurrent mounts if possible
  3. Use connection pooling with nconnect mount option
  4. Contact support to discuss increasing connection limits

If directory operations are slow:

  1. Check directory file count: ls -1 | wc -l
  2. If >10,000 files, consider reorganizing into subdirectories
  3. Review metrics for cache hit rates

If you encounter filename length errors:

  1. Check filename length: echo "filename" | wc -c
  2. Ensure total path length stays under 4,096 bytes
  3. Remember: 255 bytes is the maximum filename length (not characters, depending on encoding)

If you’ve tried the solutions above and still have issues:

  1. Gather diagnostic information:

    Terminal window
    # File Store status
    evroc storage filestore get my-filestore -o yaml
    # Mount information
    mount | grep filestore
    # NFS statistics
    nfsstat
    # Network connectivity (check if mount is accessible)
    ls -la /mnt/filestore
  2. Contact support with:

    • File Store ID
    • VM IDs experiencing issues
    • Error messages
    • Diagnostic output