cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 248 Views

Limit Disk Usage

Jump to solution

Can disk space usage be limited for a specific user, on a specific filesystem?

 

Trevor "Red Hat Evangelist" Chandler
Labels (3)
1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 201 Views

@Trevor yes , enter disk quota. 

This functionality is handled by the XFS quota subsystem, which lets you manage limits on both the amount of disk space (referred to as blocks) and the total number of files (inodes) a user, group, or project can use.

After enabling quotas on an XFS filesystem, you use the xfs_quota command to set and report on these limits. The tool is powerful and allows you to define both soft and hard limits for a user's usage. A soft limit acts as a warning threshold, while a hard limit strictly prevents the user from writing any more data.

example : 

xfs_quota -x -c 'limit isoft=300 ihard=500 trevor' /home/

https://linux.die.net/man/8/xfs_quota 

 

View solution in original post

2 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 202 Views

@Trevor yes , enter disk quota. 

This functionality is handled by the XFS quota subsystem, which lets you manage limits on both the amount of disk space (referred to as blocks) and the total number of files (inodes) a user, group, or project can use.

After enabling quotas on an XFS filesystem, you use the xfs_quota command to set and report on these limits. The tool is powerful and allows you to define both soft and hard limits for a user's usage. A soft limit acts as a warning threshold, while a hard limit strictly prevents the user from writing any more data.

example : 

xfs_quota -x -c 'limit isoft=300 ihard=500 trevor' /home/

https://linux.die.net/man/8/xfs_quota 

 

Trevor
Commander Commander
Commander
  • 191 Views

An explanation, along with the actual command syntax to implement the functionality.  
It just doesn't get much better than that!!!!

Chetan, I can forsee the Red Hat Learning Community name being changed to
"Chetan_Tiwary Learning Community"!  If not that, maybe the establishment of
a Wall of Fame - something to honor the mega contributions you've made, and
continue to make, to this community! 

Thank you for another addition to my knowledgebase!!!

Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.