LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2012, 02:22 PM   #1
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Rep: Reputation: 2
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?
 
Old 02-17-2012, 02:29 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ 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?
 
Old 02-17-2012, 02:30 PM   #3
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
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?

Last edited by dorlack; 02-17-2012 at 02:34 PM.
 
Old 02-17-2012, 02:47 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ 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
 
Old 02-17-2012, 02:57 PM   #5
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
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?
 
Old 02-17-2012, 03:01 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ 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.
 
Old 02-17-2012, 03:09 PM   #7
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
GOT IT!

Thank you very much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
increasing disk quota sang_froid Linux - Server 1 11-17-2009 08:13 AM
Increasing size of a user folder campol76 Linux - Newbie 2 02-26-2008 08:59 AM
quota.user or aquota.user outbackjack Linux - General 1 07-04-2006 08:30 AM
Increasing hard-disk space allocated to user guam Linux - General 10 03-01-2005 08:31 AM
Increasing normal user's permissions gboutwel Linux - Security 3 11-10-2002 04:21 AM


All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration