LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Increasing user quota (https://www.linuxquestions.org/questions/linux-newbie-8/increasing-user-quota-929932/)

dorlack 02-17-2012 01:22 PM

Increasing user quota
 
I am wondering how to increase user quota.


[root@rfclnxgrid6 home]# edquota mkenyon
Disk quotas for user mkenyon (uid 491680):
Filesystem blocks soft hard inodes soft hard
/dev/sdb1 10693328 10000000 15000000 115771 0 0


Is this where i need to be, when updating a quota for a single user? Am I editing soft and hard?

T3RM1NVT0R 02-17-2012 01:29 PM

@ Reply
 
Hi dorlack,

Yes, this is how you edit quote for single user.

Quote:

Am I editing soft and hard?
Could you be more clear on this. You can edit both hard and soft limit from here. What exactly are you trying to achieve?

dorlack 02-17-2012 01:30 PM

Thanks for the reply.

User is reporting he is out of space, so I am looking to give the user a small increase of about 5g.

I am not clear on what soft and hard actually is.

Also what unit is this being measured in?

T3RM1NVT0R 02-17-2012 01:47 PM

@ Reply
 
To keep it simple the calculation is done in KBs. So 1 block = 1 KB.

As I can see that you have set a soft limit of 10693328 which is equal to 10693.328 MB.

Soft link is basically the limit that act as an alarm if you have setup grace period. If you have not setup a grace period then this limit becomes the maximum limit.

Hard link is basically the limit that a user can reach during the grace period time. If you use grace period then this limit becomes the maximum limit a user can reach.

For example you have setup the following:

Soft limit: 2000000 = 2 GB
Hard limit: 3000000 = 3 GB
Grace period: 5 days

Then, user will be notified if he reaches his quota of 2 GB and then he will get 5 days grace period to do some housekeeping and come under that limit. During this grace period max he can go is 3 GB, not more than that.

You can check the grace period by typing the following command:

Code:

edquota -t

dorlack 02-17-2012 01:57 PM

Grace period before enforcing soft limits for users:
Time units may be: days, hours, minutes, or seconds
Filesystem Block grace period Inode grace period
/dev/sdb1 10days 10days


So after 10 days it will go back?

T3RM1NVT0R 02-17-2012 02:01 PM

@ Reply
 
That means you have setup 10 days as the grace period. Once user will reach soft limit he will be warned about exceeding quota. During these 10 days maximum space that he can use is what you have setup in hard limit. User have to perform house keeping during this period to come down under the limit what you have setup in soft limit.

dorlack 02-17-2012 02:09 PM

GOT IT!

Thank you very much!


All times are GMT -5. The time now is 04:27 PM.