Bug 1244361
Summary: | Command "cp *" to directory crosses hard-limit quota and copies all requested files | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | vnosov <vnosov> |
Component: | quota | Assignee: | Manikandan <mselvaga> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.2 | CC: | amukherj, bugs, gluster-bugs, mselvaga, smohan, vnosov |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-15 11:25:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
vnosov
2015-07-17 23:03:10 UTC
Hi, The reason that quota has not restricted while copying may be because of the soft and hard timeouts not set to 0. I ran the same steps as mentioned above with hard and soft timeout set to 0s and quota shows "Disk quota exceeded" as expected. Could you please make the following changes and check it again? 'gluster volume quota <VOLNAME> soft-timeout 0s' 'gluster volume quota <VOLNAME> hard-timeout 0s' Please refer here: https://gluster.readthedocs.org/en/latest/Administrator%20Guide/Directory%20Quota/ to know more about timeouts. -- Regards, Manikandan Selvaganesh. Manikandan, Yes, the timeout settings able enforce quota now. There are still some time between moment when the quota is enforced and "cp" is stopped, so the "cp" is able to copy some additional data above the limit. And some file are not copied because the disk quota exceeded. Thanks! Best regards! (In reply to Manikandan from comment #1) > Hi, > > The reason that quota has not restricted while copying may be because of the > soft and hard timeouts not set to 0. > > I ran the same steps as mentioned above with hard and soft timeout set to 0s > and quota shows "Disk quota exceeded" as expected. > > Could you please make the following changes and check it again? > > 'gluster volume quota <VOLNAME> soft-timeout 0s' > 'gluster volume quota <VOLNAME> hard-timeout 0s' > > Please refer here: > https://gluster.readthedocs.org/en/latest/Administrator%20Guide/ > Directory%20Quota/ to know more about timeouts. > > > > -- > Regards, > Manikandan Selvaganesh. Hi, There is always a small window where quota can exceed depending on IO and also the quota limit set value. Closing the bug as it's an expected behavior. -- Regards, Manikandan Selvaganesh. |