Previously, even if the quota limit was not set, quota used to send the "quota-deem-statfs" key to the dictionary resulting in incorrect calculations. With this fix, the value of the "size" field for the mount point is cumulative of all the bricks and does not lead to incorrect calculation.
Description of problem:
The issue is about the df -h displays the "size" field for mount-point as not a cumulative of all bricks but the value displayed by size field is just showing the size of one of bricks.
while I did the quota remove , quota-deem-statfs was on.
quota remove is done in order to remove the earlier set limit on a certain path.
Version-Release number of selected component (if applicable):
glusterfs-3.4.0.44rhs-1
How reproducible:
Steps to Reproduce:
1. set some limit on root of the volume and have quota-deem-statfs on for the volume
2. after mounting over nfs, create some data in it
3. take quota list
[root@nfs1 ~]# gluster volume quota dist-rep12 limit-usage / 300GB
volume quota : success
[root@nfs1 ~]# gluster volume quota dist-rep12 list
Path Hard-limit Soft-limit Used Available
--------------------------------------------------------------------------------
/ 300.0GB 80% 160.8GB 139.2GB
[root@nfs1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
localhost:dist-rep12 300G 161G 140G 54% /var/run/gluster/dist-rep12
4. execute quota remove command
5. df -h
Actual results:
step 4
--------
[root@nfs1 ~]#
[root@nfs1 ~]# gluster volume quota dist-rep12 remove /
volume quota : success
[root@nfs1 ~]#
step 5
--------
[root@nfs1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_nfs1-lv1
425G 167G 259G 40% /rhs/bricks
localhost:dist-rep12 425G 167G 258G 40% /var/run/gluster/dist-rep12
Expected results:
the value of size field for mountpoint should be cumulative of all bricks.
Additional info:
btw same case is found with just quota-deem-statfs on and not limit set on the volume.
[root@quota1 ~]# gluster volume set dist-rep quota-deem-statfs on
volume set: success
[root@quota1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_quota1-lv_root
44G 2.7G 39G 7% /
tmpfs 4.9G 0 4.9G 0% /dev/shm
/dev/vda1 485M 52M 408M 12% /boot
/dev/mapper/RHS_vgvdb-RHS_lv1
421G 234G 188G 56% /rhs/brick1
localhost:dist-rep 312G 236G 77G 76% /var/run/gluster/dist-rep
based on the result moving this BZ to verified
[root@nfs1 ~]# df -h /var/run/gluster/dist-rep/dir
Filesystem Size Used Avail Use% Mounted on
localhost:dist-rep 300G 5.1G 295G 2% /var/run/gluster/dist-rep
[root@nfs1 ~]#
[root@nfs1 ~]# gluster volume set dist-rep quota-deem-statfs off
volume set: success
[root@nfs1 ~]#
[root@nfs1 ~]# df -h /var/run/gluster/dist-rep/dir
Filesystem Size Used Avail Use% Mounted on
localhost:dist-rep 2.5T 16G 2.5T 1% /var/run/gluster/dist-rep
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/RHEA-2014-1278.html
Description of problem: The issue is about the df -h displays the "size" field for mount-point as not a cumulative of all bricks but the value displayed by size field is just showing the size of one of bricks. while I did the quota remove , quota-deem-statfs was on. quota remove is done in order to remove the earlier set limit on a certain path. Version-Release number of selected component (if applicable): glusterfs-3.4.0.44rhs-1 How reproducible: Steps to Reproduce: 1. set some limit on root of the volume and have quota-deem-statfs on for the volume 2. after mounting over nfs, create some data in it 3. take quota list [root@nfs1 ~]# gluster volume quota dist-rep12 limit-usage / 300GB volume quota : success [root@nfs1 ~]# gluster volume quota dist-rep12 list Path Hard-limit Soft-limit Used Available -------------------------------------------------------------------------------- / 300.0GB 80% 160.8GB 139.2GB [root@nfs1 ~]# df -h Filesystem Size Used Avail Use% Mounted on localhost:dist-rep12 300G 161G 140G 54% /var/run/gluster/dist-rep12 4. execute quota remove command 5. df -h Actual results: step 4 -------- [root@nfs1 ~]# [root@nfs1 ~]# gluster volume quota dist-rep12 remove / volume quota : success [root@nfs1 ~]# step 5 -------- [root@nfs1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_nfs1-lv1 425G 167G 259G 40% /rhs/bricks localhost:dist-rep12 425G 167G 258G 40% /var/run/gluster/dist-rep12 Expected results: the value of size field for mountpoint should be cumulative of all bricks. Additional info: btw same case is found with just quota-deem-statfs on and not limit set on the volume. [root@quota1 ~]# gluster volume set dist-rep quota-deem-statfs on volume set: success [root@quota1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_quota1-lv_root 44G 2.7G 39G 7% / tmpfs 4.9G 0 4.9G 0% /dev/shm /dev/vda1 485M 52M 408M 12% /boot /dev/mapper/RHS_vgvdb-RHS_lv1 421G 234G 188G 56% /rhs/brick1 localhost:dist-rep 312G 236G 77G 76% /var/run/gluster/dist-rep