[Bugs] [Bug 1339689] RFE - capacity info (df -h on a mount) is incorrect for a tiered volume

bugzilla at redhat.com bugzilla at redhat.com
Wed Jul 27 13:03:52 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1339689



--- Comment #8 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14536 committed in master by Dan Lambright
(dlambrig at redhat.com) 
------
commit 64ae3907818ad3cdaed1a1454cb44f684c9fcffd
Author: Dan Lambright <dlambrig at redhat.com>
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 at redhat.com>
    Reviewed-on: http://review.gluster.org/14536
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.


More information about the Bugs mailing list