| Summary: | quota: accounting doesn't work properly with hard links | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | vpshastry <vshastry> |
| Component: | quota | Assignee: | Vijaikumar Mallikarjuna <vmallika> |
| Status: | CLOSED DEFERRED | QA Contact: | Saurabh <saujain> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.1 | CC: | asriram, kparthas, mzywusko, nsathyan, rhs-bugs, sdharane, smohan, storage-qa-internal, vagarwal, vbellur, vmallika |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
Directory Quotas feature does not work well with hardlinks. With a directory that has Quota limit set, the disk usage seen with the du - command and the disk usage seen with the gluster volume quota VOLNAME list <directory> command may differ. It is recommended that applications writing to a volume with directory quotas enabled, do not use hardlinks.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-08-06 10:04:30 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: | |||
| Bug Blocks: | 957769 | ||
Please sign off on the doc text. Per discussion with Shanks and Saurabh, we are not supporting hard links. Removing this from u1 As of now quota is not supported for hard-links, so closing the bug. |
Description of problem: When created hard links across different quota limit set directories, quota list doesn't show proper size utilization. The below specified is just one use case I could consistently reproduce the bug. I found few more cases hard links screws the quota accounting. Version-Release number of selected component (if applicable): rhs-2.1 How reproducible: Always Steps to Reproduce: 1. Create distribute volume, start, enable quota. 2. set limit on a dir say /dir 3. create a file of say 5MB in dir/testfile. 4. ln dir/testfile dir/newtestfile 5. rm -f dir/newtestfile Now the quota list shows the size utilized on d1 to be zero. Actual results: root@-d# ls dir root@-d# dd if=/dev/urandom of=dir/file ^C10537+0 records in 10537+0 records out 5394944 bytes (5.4 MB) copied, 0.886182 s, 6.1 MB/s root@-d# gv q d list Path Hard-limit Soft-limit Used Available -------------------------------------------------------------------------------- /dir 100.0MB 80% 5.1MB 94.9MB root@-d# ln dir/file dir/newfile root@-d# gv q d list Path Hard-limit Soft-limit Used Available -------------------------------------------------------------------------------- /dir 100.0MB 80% 5.1MB 94.9MB root@-d# rm -f dir/newfile root@-d# gv q d list Path Hard-limit Soft-limit Used Available -------------------------------------------------------------------------------- /dir 100.0MB 80% 0Bytes 100.0MB root@-d# Expected results: After the rm -f of newfilconsistantlye. the dir should still show 5.1MB as used as the file is still present. Additional info: