Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

NFS · NAS

Direct answer

NFS on a NAS exports directories to Unix and Linux clients. Restrict exports by host or subnet, choose NFSv3 or NFSv4 consistently, and align user IDs or use Kerberos so permissions work as intended.

When to use this

Use this when exporting NAS directories to Linux and Unix clients over NFS.

First 30 seconds

1. NAS NFS service exports directories to UNIX clients.

2. Prefer NFSv4.1+.

3. Restrict exports by client.

4. Kerberos for security.

5. Hard mounts.

Operational verification

client → NFS → NAS export

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Network file storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork file storage
Scope / prerequisiteUse this when exporting NAS directories to Linux and Unix clients over NFS.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • NFSv3 with AUTH_SYS on untrusted networks.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Restrict exports by host or subnet.
  • Root squash maps root to nobody.
  • UID/GID must match or use Kerberos.
Key checks
  • showmount -e <nas> — exports
  • nfsstat -m — client options
  • rpcinfo -p <nas> — services
ReferenceHow it works1 section · depth on demand

Reference

OptionMeaning
hardRetry forever (safe for data)
softFail after retries (risk of data loss)
nconnect=NSeveral TCP connections (Linux 5.3+)
vers=4.1Protocol version
_netdevWait for network at boot
ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Running an NFS export: syntax, durability and applying changes

exports(5) describes the format. Each line has a path, then client specifications, each with an optional parenthesised option list, with no space before the parenthesis.

# /etc/exports
/srv/vmstore   10.0.40.11(rw,sync,no_root_squash) 10.0.40.12(rw,sync,no_root_squash)
/srv/home      10.0.20.0/24(rw,sync,root_squash)
/srv/iso       *(ro,all_squash)
# exportfs -ra
# exportfs -v
/srv/vmstore  10.0.40.11(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)

The space before the parenthesis matters

/srv/data host(rw) gives host read-write. /srv/data host (rw) gives host the defaults and gives everyone read-write.

Durability: sync versus async

OptionBehaviour (exports(5))
sync (default)Reply only after data is on stable storage
asyncReply earlier; a server crash can lose or corrupt data

Keep sync for VM disks, databases and anything where clients assume committed writes are safe.

Other defaults worth knowing

OptionDefaultEffect
secureOnRequests (other than GSS) must come from ports below 1024
no_subtree_checkOnBetter reliability; subtree_check adds a check for subdirectory exports
sec=sysOnTrusts client UIDs; use krb5* for authentication

Server-side checks

CheckCommand
Active exportsexportfs -v
NFS server runningsystemctl status nfs-server
Versions offeredcat /proc/fs/nfsd/versions
Clients connected (NFSv4)ls /proc/fs/nfsd/clients/
FirewallNFSv4: TCP 2049; NFSv3 also rpcbind and mountd

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works

The NAS exports a directory over NFS; clients mount it and see a normal filesystem. Access is controlled by export rules (client IPs, root squash) and file permissions, with NFSv4 adding Kerberos and ID mapping.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork file storage current

Authoritative/upstream documentation reviewed for bounded claims in NAS → NFS. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.snia.org/education/what-is-network-attached-storage · confidence 94%
Confirmation

Confirm action

Continue?