Directory listing shows more space used than NFS quota allows
Applies to
- ONTAP 9
- NFS quota
Issue
When running the ls
command, a directory may show more space consumed than the configured quota allows.
Example:
- Quota configured for 50mb:
Cluster01::> volume quota report -vserver svm1 -volume vol1
Vserver: svm1
----Disk---- ----Files----- Quota
Volume Tree Type ID Used Limit Used Limit Specifier
------- -------- ------ ------- ----- ----- ------ ------ ---------
vol1 qtree user * 0B 50MB 0 - *
- Listing the directory shows 60 MB used:
$ ls -l
-rw-rw-r-- 1 user1 user1 20480000 Feb 15 17:13 user1_20mb-01.txt
-rw-rw-r-- 1 user1 user1 20480000 Feb 15 17:14 user1_20mb-02.txt
-rw-rw-r-- 1 user1 user1 20480000 Feb 15 17:13 user1_20mb-03.txt
- When writing files, a message similar to the following may be seen:
cp: failed to close 'user1_20mb-03.txt': Disk quota exceeded