Use this when limiting space per user, group or share on a NAS.
Quotas
NAS quotas limit how much space a user, group or share can use, either as a hard limit that blocks writes or a soft limit that warns, so one share cannot fill the whole volume.
1. Quotas limit space per user, group or directory.
2. Hard vs soft limits.
3. Notify before reaching limits.
4. Dataset quotas on ZFS.
5. Review regularly.
writes → quota check → allow/deny
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-FsrmQuotaVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
Get-FsrmQuota # Windows FSRM
xfs_quota -x -c 'report -h' /export
repquota -a
Step 2 Common mistakes Narrow the fault
- Hard quotas without warnings.
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.
- Hard quotas block writes; soft quotas warn.
- Snapshots may count toward quotas.
- Users see quota as disk full.
repquota -a— Linux quotaszfs get quota,refquota <ds>— ZFS quotasGet-FsrmQuota— Windows FSRM quotas
ReferenceHow it works1 section · depth on demand
How it works
Quotas cap how much space a user, group or folder (tree/dataset) can use. Hard quotas block writes at the limit; soft quotas only warn or allow a grace period. Space is usually counted after compression on ZFS-based systems, and snapshots may or may not count depending on the platform — check before setting limits.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Quotas cap how much one user, group or directory tree may use
On a shared NAS, quotas stop one user or project from filling a volume that everyone depends on.
XFS quotas
xfs_quota(8) explains that quota accounting is switched on at mount time, for example with uquota (users) or prjquota (projects). Commands that change limits need expert mode (-x). Project quotas limit a directory tree: /etc/projects maps project IDs to directories, /etc/projid maps IDs to names.
# grep /srv /etc/fstab
/dev/vg0/srv /srv xfs defaults,uquota,prjquota 0 0
# xfs_quota -x -c 'limit bsoft=45g bhard=50g alice' /srv
# echo "10:/srv/projects/apollo" >> /etc/projects
# echo "apollo:10" >> /etc/projid
# xfs_quota -x -c 'project -s apollo' /srv
# xfs_quota -x -c 'limit -p bhard=2t apollo' /srv
# xfs_quota -x -c 'report -h' /srv
User quota on /srv (/dev/mapper/vg0-srv)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
alice 41.2G 45G 50G 00 [------]
Soft versus hard limits
| Limit | Behaviour |
|---|---|
| Soft | May be exceeded during a grace period; a warning |
| Hard | Writes fail with "Disk quota exceeded" |
Quota types across platforms
| Platform | Mechanism |
|---|---|
| ext4 | quota package (quotaon, setquota), or the quota feature |
| ZFS | zfs set quota= / refquota= per dataset; userquota@alice= |
| Windows | File Server Resource Manager (FSRM) quotas per folder |
| NAS appliances | Per share, per user or per tree in the vendor UI |
Operational tips
- Directory-tree (project) quotas match how teams think: "the project folder is full".
- Show users their usage, so a full quota isn't reported as "the server is broken".
- Monitor how close quotas are to their limits as well as volume capacity. Many hard limits reached at once can mean the limits are too small.
Documented example, not captured output.
Quota types
| Type | Behaviour |
|---|---|
| User quota | Per user across a volume |
| Tree/folder quota | Per directory |
| Soft vs hard | Warn vs block |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NAS → Quotas. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/education/what-is-network-attached-storage · confidence 94%