GlusterFS Add a New Server to the Pool

Posted on Sunday, April 16, 2023


Looking at a client that has the two drives mounted.


I can see that one is 16TB and the other is 5.9TB
how can I limit this?


Quota command

For some more info check out https://docs.gluster.org/en/v3/Administrator%20Guide/Directory%20Quota/ [1]

It looks like you can set the quota on the volume level or even on a director level.  I am just going to do a volume level. 

 

First enable quota on volume-one

 

 > sudo gluster volume quota volume-one enable

 

Now set the limit to 1 TiB.

 

 > sudo gluster volume quota volume-one limit-usage / 1TB

 

Now check from the GlusterFS server run this

 

 > sudo gluster volume quota volume-one list

 

Very nice.

Now checking out the mounted drives from my client server

 

 > df -h

 

OK that worked

Now let me do the other volume

First enable quota on volume-one

 

 > sudo gluster volume quota volume-three enable

 

Now set the limit to 2 TiB.

 

 > sudo gluster volume quota volume-three limit-usage / 2TB

 


 

Now check from the GlusterFS server run this

 

 

 > sudo gluster volume quota volume-three list

 

 

Very nice.

Now checking out the mounted drives from my client server

 

 > df -h

 

I will take it 😊

 

 

References

[1]       Managing Directory Quota
              
https://docs.gluster.org/en/v3/Administrator%20Guide/Directory%20Quota/
            Accessed 04/2023

 

 

 


 

 

 

 

No comments:

Post a Comment