Bug 1339689
| Summary: | RFE - capacity info (df -h on a mount) is incorrect for a tiered volume | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Dan Lambright <dlambrig> |
| Component: | tiering | Assignee: | Dan Lambright <dlambrig> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | bugs <bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | mainline | CC: | bugs, pcuzner |
| Target Milestone: | --- | Keywords: | RFE, Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.9.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1333220 | Environment: | |
| Last Closed: | 2017-03-27 18:19:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | fuse |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1333220, 1367842 | ||
| Bug Blocks: | |||
|
Description
Dan Lambright
2016-05-25 15:37:58 UTC
REVIEW: http://review.gluster.org/14536 (cluster/tier: run statfs on cold tier) posted (#1) for review on master by Dan Lambright (dlambrig) REVIEW: http://review.gluster.org/14536 (cluster/tier: fix statfs for tiered volumes) posted (#2) for review on master by Dan Lambright (dlambrig) REVIEW: http://review.gluster.org/14536 (cluster/tier: fix statfs for tiered volumes) posted (#3) for review on master by Dan Lambright (dlambrig) REVIEW: http://review.gluster.org/14536 (cluster/tier: fix statfs for dht/tiered volumes) posted (#4) for review on master by Dan Lambright (dlambrig) REVIEW: http://review.gluster.org/14536 (cluster/tier: fix statfs for dht/tiered volumes) posted (#5) for review on master by Dan Lambright (dlambrig) REVIEW: http://review.gluster.org/14536 (cluster/tier: fix statfs for dht/tiered volumes) posted (#6) for review on master by Dan Lambright (dlambrig) REVIEW: http://review.gluster.org/14536 (cluster/tier: fix statfs for dht/tiered volumes) posted (#7) for review on master by Dan Lambright (dlambrig) COMMIT: http://review.gluster.org/14536 committed in master by Dan Lambright (dlambrig) ------ commit 64ae3907818ad3cdaed1a1454cb44f684c9fcffd Author: Dan Lambright <dlambrig> Date: Wed May 25 13:54:13 2016 -0400 cluster/tier: fix statfs for dht/tiered volumes Return the correct size of the tiered volume in statfs. It should be the size of the cold tier, not the sum of the hot and cold tier, because the hot tier is a cache and not an extension of the volume's capacity. The number of free blocks, etc is the cold tier's capacity subtracted by the sum of utilization on the hot and cold tiers. Note if both tiers are part of the same file system this must be accounted for as well. The patch also fixes a pre-existing bug in the DHT/tier translators. If statfs was taken on a file, the code only calculated free space on the cached subvolume, not all subvolumes in the replica group. With the fix, this is corrected, except in the case where quota is used with the deem-statfs option set to "on". Change-Id: I2b8bcb4511edf83f12130960aad0a609fcf8f513 BUG: 1339689 Signed-off-by: Dan Lambright <dlambrig> Reviewed-on: http://review.gluster.org/14536 Smoke: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> Reviewed-by: Raghavendra G <rgowdapp> CentOS-regression: Gluster Build System <jenkins.org> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.9.0, please open a new bug report. glusterfs-3.9.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/gluster-users/2016-November/029281.html [2] https://www.gluster.org/pipermail/gluster-users/ |