Re: Quota limits gone after upgrading to 3.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sanoj,

I do understand that my quotas are still working on my GluserFS volume but not displayed in the output of the volume quota list command.

I now did the test of re-adding the quota by running for example:

gluster volume quota myvolume limit-usage /directoryX 50GB

After that I ran the volume quota list command and luckily enough my quota is available display again in the list. So I guess I will re-add the quotas so that the are displayed again in the list. That's the easiest way for me but I do hope the quotas stay next time I upgrade...

Regards,
M.




-------- Original Message --------
Subject: Re: [Gluster-users] Quota limits gone after upgrading to 3.8
Local Time: May 10, 2017 8:48 AM
UTC Time: May 10, 2017 6:48 AM
From: sunnikri@xxxxxxxxxx
To: mabi <mabi@xxxxxxxxxxxxx>
Gluster Users <gluster-users@xxxxxxxxxxx>

Hi Mabi,

Note that limits are still configured and working.
re-adding the limits will not help here (unless you are willing to disable and re-enable quota first).
The reason is if a gfid exists in quota.conf (because a limit was earlier set on it), it does not  need change when limit changes.
The quota.conf file only keep track of which gfid have limit set. The original value of the limits are set in xattr on filesystem
Another work around without mauallly touching quota.conf is,
> Create a new dummy directory anywhere in the FS. add a limit in this directory.

After this you should be able to see the listing.
If you remove this dummy directory or limit on it, you will once again be exposed to same issue.

Regards,
Sanoj

On Tue, May 9, 2017 at 10:59 PM, mabi <mabi@xxxxxxxxxxxxx> wrote:
Hi Sanoj,

Thanks for pointing me at this bug, I was not aware about it.

As this is a production GlusterFS cluster I would rather not mess with the quota.conf file as you suggested. Instead I will simply re-add all my quotas by running the following command again:

gluster volume quota myvolume limit-usage /directory1 100GB

Can you confirm me that this is safe to run again?



As soon as I have a minute I will complete your survey about quotas.

Best,
M.

-------- Original Message --------
Subject: Re: [Gluster-users] Quota limits gone after upgrading to 3.8
Local Time: May 9, 2017 6:50 AM
UTC Time: May 9, 2017 4:50 AM

Hi mabi,

This bug was fixed recently, https://bugzilla.redhat.com/show_bug.cgi?id=1414346. It would be available in 3.11 release. I will plan to back port same to earlier releases.

Your quota limits are still set and honored, It is only the listing that has gone wrong. Using list with command with single path should display the limit on that path. The printing of list gets messed up when the last gfid in the quota.conf file is not present in the FS (due to an rmdir without a remove limit)

You could use the following workaround to get rid of the issue.
 => Remove exactly the last 17 bytes of " /var/lib/glusterd/vols/<volname>/quota.conf"
      Note: keep a backup of quota.conf for safety
If this does not solve the issue, please revert back with
1) quota.conf file
2) output of list command (when executed along with path)
3) getfattr -d -m . -e hex <path_on_brick _where_limit_is_set> | grep limit
It would be great to have your feedback for quota on this thread (http://lists.gluster.org/pipermail/gluster-users/2017-April/030676.html)

Thanks & Regards,
Sanoj


On Mon, May 8, 2017 at 7:58 PM, mabi <mabi@xxxxxxxxxxxxx> wrote:
Hello,

I upgraded last week my 2 nodes replica GlusterFS cluster from 3.7.20 to 3.8.11 and on one of the volumes I use the quota feature of GlusterFS. Unfortunately, I just noticed by using the usual command "gluster volume quota myvolume list" that all my quotas on that volume are gone. I had around 10 different quotas set on different directories.

Does anyone have an idea where the quotas have vanished? are they gone for always and do I need to re-set them all?

Regards,
M.



_______________________________________________
Gluster-users mailing list


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux