NFS Mount from QNAP to Ubuntu
NFS Mount from QNAP to Ubuntu
This document details the configuration required for a stable NFS mount between a legacy QNAP TS-421 and a modern client running Ubuntu 26.04. This setup specifically resolves network timeouts caused by incompatible RPC and lock services.The ProblemStandard mount attempts to the QNAP resulted in a Connection timed out error, even though port 2049 (NFS) was open and showmount -e worked perfectly.
This happened because the older QNAP firmware uses dynamically assigned ports for lock management (rpcbind / rpc.statd), which are dropped or mishandled by modern Linux kernels.Permanent Solution (/etc/fstab)To ensure the share mounts automatically on boot, connects reliably, and does not freeze the system if the network is delayed, add the following line to the absolute bottom of /etc/fstab:
192.168.nn.7:/share/minio-data /srv/minio/data nfs vers=3,tcp,nolock,noresvport,_netdev,x-systemd.automount 0 0Parameter (Flags) Breakdown
| Parameter | Function | Why it is required here |
|---|---|---|
| vers=3 | Forces the use of NFS version 3. | Legacy QNAP models lack stable, reliable support for modern NFSv4. |
| tcp | Forces transport over TCP instead of UDP. | Ensures reliable data transport and prevents dropped packets. |
| nolock | Disables filesystem-level file locking (NLM). | Resolved the timeout. Prevents the client from waiting indefinitely for the QNAP’s broken/blocked locking daemon. Perfectbly safe for MinIO, as MinIO handles concurrency at the application layer. |
| noresvport<Allows the client to use unprivileged source ports (above 1024). | Prevents the QNAP’s older kernel from silently dropping incoming packets originating from modern Linux network stacks | |
| _netdev | Waits for network initialization. | Tells Ubuntu to delay mounting this share until the local network interface is fully up and active during boot. |
| x-systemd.automount | Mounts the directory “on-demand”. | Prevents the Ubuntu server from hanging or failing to boot if the QNAP is offline. The share mounts automatically the exact millisecond MinIO tries to access /srv/minio/data. |
Troubleshooting Commands
If you ever need to reload or verify the mount manually on the Ubuntu server, use these commands:
- Reload systemd configuration after fstab changes:
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target- Test the mount configurations immediately:
sudo mount -a- Verify the mount is active and check storage space:
df -h | grep minio