Unsolved
This post is more than 5 years old
4 Posts
0
1085
June 17th, 2013 01:00
df shows usage while quota shows 0
Hi Guys,
wonder if someone ever encountered an issue with df reporting usage while tree quota shows usage is 0.
example :
Filesystem Type Size Used Avail Use% Mounted on
infs370b:/vol17/valery
nfs 1.5T 160G 1.3T 11% /nfs/iil/valery
the tree is #5 :
nas_quotas -tree -report -fs vol17
Report for tree quotas on filesystem vol17 mounted on /vol17
+------------+---------------------------------+-------------------------------+
| Tree | Bytes Used (1K) | Files |
+------------+--------+-------+-------+--------+--------+------+------+--------+
| | Used | Soft | Hard |Timeleft| Used | Soft | Hard |Timeleft|
+------------+--------+-------+-------+--------+--------+------+------+--------+
|#1 | 256714| 0|52428800| | 39| 0| 0| |
|#2 |781729495| 0|943718400| | 189654| 0| 0| |
|#3 |172364704| 0|298844160| | 3472307| 0| 0| |
|#4 | 0| 0|5242880| | 1| 0| 0| |
|#5 | 0| 0|1562378240| | 1| 0| 0| |
there are no files under that directory :
root# du -a /nfs/iil/valery
0 /nfs/iil/valery
any idea why df reports 160GB is used ?
Rainer_EMC
4 Operator
•
8.6K Posts
0
June 17th, 2013 03:00
What does server_df say for the complete file system ?
Rainer_EMC
4 Operator
•
8.6K Posts
0
June 17th, 2013 03:00
You are saying the treequota directory is completely empty – right ?
Then the nas_quotas output would be correct
In terms of what df reports on an NFS client take a look at the Quotas manual – specifically the section mentioning the param quota useQuotasInFsStat
vtzipori
4 Posts
0
June 17th, 2013 03:00
yes there are no files under that directory tree. by default we are showing in df the tree quota and not the entire FS.
for other directories i have no issue (under the same FS)
vtzipori
4 Posts
0
June 17th, 2013 03:00
[nasadmin@infs370cs ~]$ server_df infs370b vol17
infs370b :
Filesystem kbytes used avail capacity Mounted on
vol17 3029696800 1635169928 1394526872 54% /vol17
[nasadmin@infs370cs ~]$
full list of directories :
[nasadmin@infs370cs ~]$ nas_quotas -r -t -fs vol17
Report for tree quotas on filesystem vol17 mounted on /vol17
+------------+---------------------------------+-------------------------------+
| Tree | Bytes Used (1K) | Files |
+------------+--------+-------+-------+--------+--------+------+------+--------+
| | Used | Soft | Hard |Timeleft| Used | Soft | Hard |Timeleft|
+------------+--------+-------+-------+--------+--------+------+------+--------+
|#1 | 256714| 0|52428800| | 39| 0| 0| |
|#2 |781729495| 0|943718400| | 189654| 0| 0| |
|#3 |172364704| 0|298844160| | 3472307| 0| 0| |
|#4 | 0| 0|5242880| | 1| 0| 0| |
|#5 | 0| 0|1562378240| | 1| 0| 0| |
|#6 |119046692| 0|141557760| | 2211364| 0| 0| |
|#7 |218627242| 0|262144000| | 1915343| 0| 0| |
|#9 |277835354| 0|314572800| | 1350963| 0| 0| |
|#10 |17169269| 0|25165824| | 1963| 0| 0| |
+------------+--------+-------+-------+--------+--------+------+------+--------+
Rainer_EMC
4 Operator
•
8.6K Posts
1
June 17th, 2013 05:00
Are you sure there are no hidden files there ?
You could try a quota recalc if that changes anything
Otherwise I would suggest to open a service request
vtzipori
4 Posts
0
June 17th, 2013 06:00
yep its empty ... i cant use recalc as i understood its going to have performance impact.
indeed looks like a bug
Rainer_EMC
4 Operator
•
8.6K Posts
0
June 17th, 2013 06:00
Might be a client side issue or config as well
Cant say without looking at the network traces
Rainer_EMC
4 Operator
•
8.6K Posts
0
June 17th, 2013 07:00
I dont think the performance impact for recalc is that big – of course it depends on your number of files and quotas