Bug 1304970

Summary: [quota]: Incorrect disk usage shown on a tiered volume
Product: [Community] GlusterFS Reporter: Manikandan <mselvaga>
Component: quotaAssignee: Manikandan <mselvaga>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: mainlineCC: bugs, byarlaga, kramdoss, mselvaga, sankarshan, saujain, smohan
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1304684
: 1305029 (view as bug list) Environment:
Last Closed: 2016-06-16 13:57:06 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:
Bug Depends On: 1304684    
Bug Blocks: 1305029    

Comment 1 Vijay Bellur 2016-02-05 07:46:06 UTC
REVIEW: http://review.gluster.org/13363 (quota: Fix incorrect disk usage shown on a tiered volume) posted (#2) for review on master by Manikandan Selvaganesh (mselvaga)

Comment 2 Vijay Bellur 2016-02-05 11:26:35 UTC
REVIEW: http://review.gluster.org/13363 (quota: Fix incorrect disk usage shown on a tiered volume) posted (#3) for review on master by Manikandan Selvaganesh (mselvaga)

Comment 3 Vijay Bellur 2016-02-11 06:09:29 UTC
COMMIT: http://review.gluster.org/13363 committed in master by Raghavendra G (rgowdapp) 
------
commit b8bd9a6e6e3f50ede4c25dcfc0a05aad53e66c79
Author: Manikandan Selvaganesh <mselvaga>
Date:   Fri Feb 5 12:17:22 2016 +0530

    quota: Fix incorrect disk usage shown on a tiered volume
    
    When quota is enabled on a tiered volume, incorrect data usage is
    shown, it is because, during the process of migrating files in tiering,
    we are accounting both for the src file and dst file at some point. By the
    time we make the srcfile as a T file, marker has already accounted the
    contri and has updated it's parent and also we are not accounting for the
    truncate operation done, which accounts to incorrect data usage even after
    unlinking the file. The size can increase drastically with multiple promotes
    and demotes since the contri keeps changing and the parent is being updated.
    
    Change-Id: Ie567228786713d7dc257ff374a69ad3be40f9e82
    BUG: 1304970
    Signed-off-by: Manikandan Selvaganesh <mselvaga>
    Reviewed-on: http://review.gluster.org/13363
    Smoke: Gluster Build System <jenkins.com>
    CentOS-regression: Gluster Build System <jenkins.com>
    Reviewed-by: Raghavendra G <rgowdapp>
    Reviewed-by: Vijaikumar Mallikarjuna <vmallika>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 4 Niels de Vos 2016-06-16 13:57:06 UTC
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.8.0, please open a new bug report.

glusterfs-3.8.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://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user