Skip to main content
NetApp Knowledge Base

Directory listing shows more space used than NFS quota allows

Views:
129
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

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

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.