Bug 764440 (GLUSTER-2708) - After healing different quota-sizes are seen on export directories of a replicate subvolume
Summary: After healing different quota-sizes are seen on export directories of a repli...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2708
Product: GlusterFS
Classification: Community
Component: quota
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-11 04:35 UTC by Raghavendra G
Modified: 2015-12-01 16:45 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: fuse
Documentation: DNR
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Raghavendra Bhat 2011-04-11 03:11:16 UTC
Yes. In my replicate setup too quota shows different sizes on different backends



[root@centos-rahul-2 ~]# getfattr -d -m . -e hex /export/mirror/
getfattr: Removing leading '/' from absolute path names
# file: export/mirror
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.676687e0-4f58-4343-b4d8-61309744ae9a.xtime=0x4da1a1730000b11a
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.size=0x0000000184cdf7b4
trusted.glusterfs.test=0x776f726b696e6700


[root@centos-rahul-3 ~]# getfattr -d -m . -e hex /export/mirror/
getfattr: Removing leading '/' from absolute path names
# file: export/mirror
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.676687e0-4f58-4343-b4d8-61309744ae9a.xtime=0x4da2385000004abf
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.size=0x000000012b9f2fce
trusted.glusterfs.test=0x776f726b696e6700

Comment 1 Raghavendra G 2011-04-11 04:35:04 UTC
root@booradley:/home/raghu/work/git/glusterfs# ./extras/quota-metadata-cleanup.sh /home/export/[56] && getfattr -e hex /home/export/[56]// -n trusted.glusterfs.quota.size && find /mnt/glusterfs | xargs touch && ./extras/quota-metadata-cleanup.sh /home/export/[56] && find /mnt/raghu | xargs touch && getfattr -e hex /home/export/[56]// -n trusted.glusterfs.quota.size

/home/export/5/: trusted.glusterfs.quota.size: No such attribute
/home/export/6/: trusted.glusterfs.quota.size: No such attribute

getfattr: Removing leading '/' from absolute path names
# file: home/export/5/
trusted.glusterfs.quota.size=0x0000000005180dfa

# file: home/export/6/
trusted.glusterfs.quota.size=0x0000000005686567

However the disk-usage is same:

root@booradley:/home/raghu/work/git/glusterfs# du -hs /home/export/5  
396M    /home/export/5
root@booradley:/home/raghu/work/git/glusterfs# du -hs /home/export/6
396M    /home/export/6

Also note that the size as indicated by xattrs (around 84MB) is not the same as shown by du.

regards,
Raghavendra.

Comment 2 Amar Tumballi 2011-04-14 06:56:34 UTC
Tried the same test with tag v3.2.0qa12, and everything seems to be working fine.

Can some one in QA too confirm this is fixed.

Comment 3 Raghavendra G 2011-06-06 23:29:28 UTC
Tested on top of fixes to bug 764429 and everything is working fine. Hence marking this bug as resolved.


Note You need to log in before you can comment on or make changes to this bug.