[Gluster-users] Verify limit-objects from clients in Gluster9 ?

Diego Zuccato diego.zuccato at unibo.it
Tue Nov 21 19:12:56 UTC 2023


Since Gluster allows for setting "project quotas" on directories both 
for size (limit) and for inodes (limit-objects), and it allows for 
checking size quota from clients (via df), I expected it to do the same 
for inodes (tentatively via "df -i"). But it seems it's not the case, so 
I was asking if I'm missing something...

Diego

Il 21/11/2023 19:06, Strahil Nikolov ha scritto:
> What do you mean by dir ?
> Usually inode max value is per File System.
> 
> Best Regards,
> Strahil Nikolov
> 
>     On Mon, Nov 6, 2023 at 12:58, difa.csi
>     <difa.csi at unibo.it> wrote:
>     Hello all.
> 
>     Is there a way to check inode limit from clients?
>     df -i /path/to/dir
>     seems to report values for all the volume, not just the dir.
> 
>     For space it works as expected:
> 
>     # gluster v quota cluster_data list
>                        Path                  Hard-limit  Soft-limit
>     Used  Available  Soft-limit exceeded? Hard-limit exceeded?
>     -------------------------------------------------------------------------------------------------------------------------------
>     /astro                                    20.0TB    80%(16.0TB)
>     18.8TB  1.2TB            Yes                  No
>     # df /mnt/scratch/astro
>     Filesystem              1K-blocks        Used  Available Use% Mounted on
>     clustor00:cluster_data 21474836480 20169918036 1304918444  94%
>     /mnt/scratch
> 
>     For inodes, instead:
>     # gluster v quota cluster_data list-objects
>                        Path                  Hard-limit  Soft-limit
>     Files      Dirs    Available  Soft-limit exceeded? Hard-limit exceeded?
>     -----------------------------------------------------------------------------------------------------------------------------------------------
>     /astro                                      100000      80%(80000)
>     # df -i /mnt/scratch/astro
>     Filesystem                Inodes  IUsed      IFree IUse% Mounted on
>     clustor00:cluster_data 4687500480 122689 4687377791    1% /mnt/scratch
>     99897      103          0            Yes                  Yes
> 
>     Should report 100% use for "hard quota exceeded", IMO.
> 
>     That's on Gluster 9.6.
> 
>     -- 
>     Diego Zuccato
>     DIFA - Dip. di Fisica e Astronomia
>     Servizi Informatici
>     Alma Mater Studiorum - Università di Bologna
>     V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
>     tel.: +39 051 20 95786
>     ________
> 
> 
> 
>     Community Meeting Calendar:
> 
>     Schedule -
>     Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
>     Bridge: https://meet.google.com/cpu-eiue-hvk
>     <https://meet.google.com/cpu-eiue-hvk>
>     Gluster-users mailing list
>     Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
>     https://lists.gluster.org/mailman/listinfo/gluster-users
>     <https://lists.gluster.org/mailman/listinfo/gluster-users>
> 
> 
> ________
> 
> 
> 
> Community Meeting Calendar:
> 
> Schedule -
> Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
> Bridge: https://meet.google.com/cpu-eiue-hvk
> Gluster-users mailing list
> Gluster-users at gluster.org
> https://lists.gluster.org/mailman/listinfo/gluster-users

-- 
Diego Zuccato
DIFA - Dip. di Fisica e Astronomia
Servizi Informatici
Alma Mater Studiorum - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786


More information about the Gluster-users mailing list