| Summary: | Appending data to a file using Vi editor violates quota limits | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | shylesh <shmohan> |
| Component: | quota | Assignee: | Raghavendra G <rgowdapp> |
| Status: | CLOSED WONTFIX | QA Contact: | storage-qa-internal <storage-qa-internal> |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.1 | CC: | grajaiya, rhs-bugs, spalai, storage-qa-internal, vagarwal, vbellur, vmallika |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
Expected behavior of quota:
If the rate of I/O is more than the value of hard-timeout and soft-timeout, there is possibility of quota limit being exceeded
For example:
If the rate of IO is 1GB/sec
If hard-timeout is set to 5sec (default value).
If soft-timeout is set to 60sec (default value).
Then we may exceed quota limit by ~30GB - 60GB
In order to attain a strict checking of quota limit, then you need to lower the value of hard-timeout and soft-timeout
Command to set timeout:
gluster volume quota <volume-name> soft-timeout 0
gluster volume quota <volume-name> hard-timeout 0
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-01-16 08:07:42 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: | |
| Bug Depends On: | 1182890, 1182921 | ||
| Bug Blocks: | |||
|
Description
shylesh
2013-10-24 16:38:29 UTC
I see ""shanks.txt" E212: Can't open file for writing" when disk quota is already exceeded in a directory and you try to write a file using vim. I also happened to see: [shanks@localhost Music]$ vim shanks.txt E72: Close error on swap file [shanks@localhost Music]$ Needs further testing. [root@vm1 home]# gluster volume quota test1 list
Path Hard-limit Soft-limit Used Available Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/ 100.0KB 80% 1.7MB 0Bytes Yes Yes
I tried similar steps. After quota limit is reached tried to edit and save the file in vim and got the following error message while saving
"file1" E512: Close failed
WARNING: Original file may be lost or damaged
do not quit the editor until the file is successfully written!
Press ENTER or type command to continue
This needs to be documented: When the quota hard-timeout is set to default value of 30, the quota limit is checked once in 30 seconds and during that 30 second time window there is possibility of quota hard-limit being exceeded. In order to attain a strict checking of quota limit it is recommended to set the quota soft-timeout and hard-timeout to lower value so that quota limit is checked frequently, and possibility of quota hard-limit being exceeded is reduced. |