here I want to point out two issues, first of removing all the files does not make the size as zero, second even recreating the volume and using the same bricks gives the same information about quota as earlier, even though the data was removed from the volume except leaving the dirs. Logs, [root@centos-qa-client-2 sbin]# ./gluster volume create dist2 transport tcp 10.1.12.134:/mnt/dist2 10.1.12.135:/mnt/dsit2 Creation of volume dist2 has been successful. Please start the volume to access data. [root@centos-qa-client-2 sbin]# ./gluster volume start dist2 Starting volume dist2 has been successful [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 enable quota translator is enabled [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 limit-usage / 3MB limit set on / [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 list path limit_set size ---------------------------------------------------------------------------------- / 3145728 0 [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 list path limit_set size ---------------------------------------------------------------------------------- / 3145728 1699840 #################from client side####################### [root@centos-qa-client-1 gluster-test]# ls d1 d2 d3 d4 test [root@centos-qa-client-1 gluster-test]# ls -R .: d1 d2 d3 d4 test ./d1: ./d2: ./d3: ./d4: ./test: [root@centos-qa-client-1 gluster-test]# ############################################################### [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 list path limit_set size ---------------------------------------------------------------------------------- / 3145728 30720 Again, [root@centos-qa-client-2 sbin]# ./gluster volume create dist2 transport tcp 10.1.12.134:/mnt/dist2 10.1.12.135:/mnt/dsit2 Creation of volume dist2 has been successful. Please start the volume to access data. [root@centos-qa-client-2 sbin]# ./gluster volume start dist2 Starting volume dist2 has been successful [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 enable quota translator is enabled [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 limit-usage / 3MB limit set on / [root@centos-qa-client-2 sbin]# ./gluster volume quota dist2 list path limit_set size ---------------------------------------------------------------------------------- / 3145728 30720
PATCH: http://patches.gluster.com/patch/6727 in master (extras: scripts to cleanup xattrs stored by quota.)
PATCH: http://patches.gluster.com/patch/6737 in master (features/marker: Perform quota updation on rmdir and unlink by holding inodelk on parent.)
Saurabh, Can you validate the script? regards, Raghavendra.
The script is a temparory fix. Correct way would be to bring versioning into marker.
We have the scripts to handle this case in 3.2.0 release, the actual root cause will be fixed in 3.2.0+ releases. Hence moving the target milestone.
PATCH: http://patches.gluster.com/patch/6921 in master (extras/quota-xattr-cleanup: don't follow symbolic links.)
(In reply to comment #6) Is this the temporary script fix or the fix for the actual root cause?
because of the large number of bugs filed against mainline version\ is ambiguous and about to be removed as a choice. If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it.