Bug 1025333
Summary: | quota: after reset command, and setting quota-deem-statfs to "on", df displays wrong values | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Saurabh <saujain> |
Component: | glusterd | Assignee: | Bug Updates Notification Mailing List <rhs-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Saurabh <saujain> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 2.1 | CC: | grajaiya, kparthas, mzywusko, vagarwal, vbellur |
Target Milestone: | --- | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.4.0.38rhs | Doc Type: | Bug Fix |
Doc Text: |
Previously, when data is present in the volume before the quota feature is enabled and quota limits are set on it, such that the data already present consumes disk space greater than the limit, df utility would report negative values for "Used" and "Available" columns. Now, with this update, df utility reports properly with data populated before quota feature is enabled.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-27 15:45: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: |
Description
Saurabh
2013-10-31 13:55:40 UTC
for cluster having nodes namely, quota[1-4] from quota1, [root@quota1 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r15 getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d1r15 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000555555547ffffffd trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000125841000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d3r15 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000aaaaaaa8d5555551 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d5r15 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000000000002aaaaaa9 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 for directory, [root@quota1 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r15/dir getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d1r15/dir trusted.afr.dist-rep5-client-0=0x000000000000000000000000 trusted.afr.dist-rep5-client-1=0x000000000000000000000000 trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000000000002aaaaaa9 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x00000000a3f31000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x00000000a3f31000 # file: rhs/brick1/d3r15/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000555555547ffffffd trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 # file: rhs/brick1/d5r15/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000aaaaaaa8d5555551 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 from quota2, [root@quota2 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r25 getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d1r25 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000555555547ffffffd trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000125920000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d3r25 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000aaaaaaa8d5555551 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d5r25 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000000000002aaaaaa9 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 for directory, [root@quota2 ~]# [root@quota2 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r25/dir getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d1r25/dir trusted.afr.dist-rep5-client-0=0x000000000000000000000000 trusted.afr.dist-rep5-client-1=0x000000000000000000000000 trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000000000002aaaaaa9 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x00000000a4010000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x00000000a4010000 # file: rhs/brick1/d3r25/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000555555547ffffffd trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 # file: rhs/brick1/d5r25/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000aaaaaaa8d5555551 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 for quota3, [root@quota3 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r15 getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d2r15 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x00000001000000007ffffffeaaaaaaa7 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x000000015e000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d4r15 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000d5555552ffffffff trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d6r15 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x00000001000000002aaaaaaa55555553 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 [root@quota3 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r15/dir getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d2r15/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x00000001000000002aaaaaaa55555553 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x000000009c400000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x000000009c400000 # file: rhs/brick1/d4r15/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x00000001000000007ffffffeaaaaaaa7 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 # file: rhs/brick1/d6r15/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000d5555552ffffffff trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 for quota4, [root@quota4 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r25 getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d2r25 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x00000001000000007ffffffeaaaaaaa7 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x000000015e000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d4r25 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x0000000100000000d5555552ffffffff trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 # file: rhs/brick1/d6r25 trusted.gfid=0x00000000000000000000000000000001 trusted.glusterfs.dht=0x00000001000000002aaaaaaa55555553 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 trusted.glusterfs.volume-id=0x4827938087834cc6812b916db4a56fe7 for directory, [root@quota4 ~]# getfattr -m . -d -e hex /rhs/brick1/d*r25/dir getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d2r25/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x00000001000000002aaaaaaa55555553 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x000000009c400000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x000000009c400000 # file: rhs/brick1/d4r25/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x00000001000000007ffffffeaaaaaaa7 trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 # file: rhs/brick1/d6r25/dir trusted.gfid=0x7acf1b2a6a7147f39d9690e332d750f7 trusted.glusterfs.dht=0x0000000100000000d5555552ffffffff trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000000000 trusted.glusterfs.quota.dirty=0x3000 trusted.glusterfs.quota.limit-set=0x0000000140000000ffffffffffffffff trusted.glusterfs.quota.size=0x0000000000000000 collect sosreports from here, http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/1025333/ verified on glusterfs-3.4.0.38rhs as can be seen here, [root@quota1 ~]# df -h /var/run/gluster/dist-rep5 Filesystem Size Used Avail Use% Mounted on localhost:dist-rep5 15G 15G 0 100% /var/run/gluster/dist-rep5 [root@quota1 ~]# gluster volume reset dist-rep5 volume reset: success: All unprotected fields were reset. To reset the protected fields, use 'force'. [root@quota1 ~]# df -h /var/run/gluster/dist-rep5 Filesystem Size Used Avail Use% Mounted on localhost:dist-rep5 2.2T 2.1T 63G 98% /var/run/gluster/dist-rep5 [root@quota1 ~]# gluster volume set dist-rep5 quota-deem-statfs on volume set: success [root@quota1 ~]# [root@quota1 ~]# df -h /var/run/gluster/dist-rep5 Filesystem Size Used Avail Use% Mounted on localhost:dist-rep5 15G 15G 0 100% /var/run/gluster/dist-rep5 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1769.html |