Troubleshooting File Store
This guide helps you diagnose and resolve common issues when working with File Store.
Prerequisites
Section titled “Prerequisites”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)
Debug failed mounts
Section titled “Debug failed mounts”Check File Store status
Section titled “Check File Store status”Before troubleshooting mount issues, verify the File Store is available:
evroc storage filestore get my-filestoreLook for the Ready condition with status "True". If the status is Provisioning or Pending,
wait for it to complete.
Verify network connectivity
Section titled “Verify network connectivity”Test connectivity to the File Store endpoint:
Security groups may block ICMP ping, so try connecting directly to the NFS port:
# 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
Availablestatus
Check NFS client installation
Section titled “Check NFS client installation”Verify nfs-common is installed:
# For Ubuntu/Debiandpkg -l | grep nfs-common
# For RHEL/CentOSrpm -qa | grep nfs-utilsCheck NFS client version:
nfsstat --versionFile Store requires NFSv4.1 support. Ensure your client supports it.
Review mount error messages
Section titled “Review mount error messages”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 |
Mount with verbose output
Section titled “Mount with verbose output”For detailed debugging, mount with verbose flags:
# Replace `<filestore-endpoint>` with your File Store's endpoint IPsudo mount -t nfs4 -v -o nfsvers=4.1,_netdev <filestore-endpoint>:/ /mnt/filestoreThis shows the mount process step by step.
Connection issues
Section titled “Connection issues”Connection refused
Section titled “Connection refused”If you see Connection refused:
-
Verify File Store is running:
Terminal window evroc storage filestore get my-filestore -
Check if the File Store is in the same zone as your VM:
status:placement:zone: se-sto-a -
Verify security groups allow ingress on TCP port 2049 (only needed if using custom security groups; default security groups already allow this)
Connection timeout
Section titled “Connection timeout”If mounts timeout:
-
Check if there are custom security groups or firewall rules blocking traffic (default security groups already allow NFS traffic)
-
Verify the File Store endpoint IP hasn’t changed (it shouldn’t)
Mount hangs indefinitely
Section titled “Mount hangs indefinitely”If a mount command hangs:
-
Check if using
hardmount option (can cause indefinite hangs on server failure) -
Add
introption to allow interruption:Terminal window # Replace `<filestore-endpoint>` with your File Store's endpoint IPsudo mount -t nfs4 -o nfsvers=4.1,_netdev,hard,intr <filestore-endpoint>:/ /mnt/filestore -
If already hung, use Ctrl+C to interrupt
Permission issues
Section titled “Permission issues”Permission denied on mount
Section titled “Permission denied on mount”If you see Permission denied when mounting:
-
Verify you’re using sudo:
Terminal window sudo mount -t nfs4 ... -
Check if the mount point exists and is accessible:
Terminal window ls -ld /mnt/filestore -
Ensure the mount point is empty:
Terminal window ls -la /mnt/filestore
Permission denied accessing files
Section titled “Permission denied accessing files”If mount succeeds but you can’t access files:
-
Check file permissions:
Terminal window ls -la /mnt/filestore -
Verify user/group ownership:
Terminal window idls -la /mnt/filestore | head -
Check if you need root access:
Terminal window sudo ls -la /mnt/filestore -
Verify directory permissions allow access
Stale file handle errors
Section titled “Stale file handle errors”If you see Stale file handle errors:
Cause: The File Store recovered (pod rescheduled) while you had files open.
Solution:
-
Close all applications using the File Store
-
Unmount the File Store:
Terminal window sudo umount /mnt/filestore -
If unmount fails, use lazy unmount:
Terminal window sudo umount -l /mnt/filestore -
Remount:
Terminal window # Replace `<filestore-endpoint>` with your File Store's endpoint IPsudo 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.
Performance issues
Section titled “Performance issues”Slow read/write performance
Section titled “Slow read/write performance”If performance is slower than expected (<100 MB/s):
-
Check mount options:
Terminal window mount | grep filestoreEnsure rsize and wsize are set to 1048576:
Terminal window sudo mount -t nfs4 -o nfsvers=4.1,_netdev,rsize=1048576,wsize=1048576 ... -
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
-
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
-
Monitor File Store metrics:
- Check if the File Store is under heavy load from other clients
- Consider distributing load across multiple File Stores
-
Test throughput:
Terminal window # Test write speeddd if=/dev/zero of=/mnt/filestore/test-write bs=1M count=1024 oflag=direct# Test read speeddd if=/mnt/filestore/test-write of=/dev/null bs=1M count=1024 iflag=direct
Connection drops during heavy load
Section titled “Connection drops during heavy load”If connections drop during heavy I/O:
-
Check if using
softmount (may cause data loss):Terminal window mount | grep filestoreSwitch to
hardmount:Terminal window sudo mount -t nfs4 -o nfsvers=4.1,_netdev,hard,intr ... -
Increase NFS timeout values:
Terminal window sudo mount -t nfs4 -o nfsvers=4.1,_netdev,hard,timeo=600,retrans=3 ... -
Reduce concurrent I/O operations
Limit issues
Section titled “Limit issues”“Connection refused” or “Too many open connections”
Section titled ““Connection refused” or “Too many open connections””If you hit connection limits:
- Check current connection count via metrics
- Reduce concurrent mounts if possible
- Use connection pooling with
nconnectmount option - Contact support to discuss increasing connection limits
Resolving slow directory listings
Section titled “Resolving slow directory listings”If directory operations are slow:
- Check directory file count:
ls -1 | wc -l - If >10,000 files, consider reorganizing into subdirectories
- Review metrics for cache hit rates
Resolving filename length errors
Section titled “Resolving filename length errors”If you encounter filename length errors:
- Check filename length:
echo "filename" | wc -c - Ensure total path length stays under 4,096 bytes
- Remember: 255 bytes is the maximum filename length (not characters, depending on encoding)
Getting help
Section titled “Getting help”If you’ve tried the solutions above and still have issues:
-
Gather diagnostic information:
Terminal window # File Store statusevroc storage filestore get my-filestore -o yaml# Mount informationmount | grep filestore# NFS statisticsnfsstat# Network connectivity (check if mount is accessible)ls -la /mnt/filestore -
Contact support with:
- File Store ID
- VM IDs experiencing issues
- Error messages
- Diagnostic output
See Also
Section titled “See Also”- Configure mount options - Optimize mount settings
- Mount on multiple VMs - Shared access patterns
- File Store concepts - Understanding the service