LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 12-17-2006, 12:02 PM   #1
kennyghh
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Question Calculate soft limit & hard limit for quotas


I am needed to set a soft limit of 200MB and hard limit of 205MB for users.

How do I calculate that for a harddisk with ext2, ext3 and reiserfs ?

Correct me if i am wrong. For ext2 i need to determine the block size with the command

dumpe2fs /dev/hda1
from here i get the block size of 4096

therefore (200 x 1024) / 4096 = 50MB (50000) is the soft limit

therefore (205 x 1024) / 4096 = 51.25MB (51250) is the hard limit
 
Old 12-17-2006, 12:45 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Yes those are the correct number of blocks.

You might want to use the -h option on dumpe2fs or you might want to use the tune2fs -l /dev/whatever to see volume information.

5 MB does not seem to be a large enough number between the soft limit and the hard limit.

Then again I am totally against the use of disk quotas. They will only cause problems for you and the end users. You will find that someone has used up their disk quota and is working on some critical report. They need more space and they don't have the time to clean out their old files. This will create an emergency for you and you will just have to raise that person's disk quota anyway. If you don't then their manager, the CEO inevitably, will get very angry at you. If you do then they will never go back and clean up their old files anyway. Disk quotas are the kind of thing that looks good on paper but doesn't actually fly.
 
Old 12-18-2006, 08:43 AM   #3
kennyghh
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Original Poster
Rep: Reputation: 0
You must have experience all these nonsense haa ... well I'll see where i can implement it on, perhaps on less critical areas.

By the way, how about ext3 and reiserfs ? How do i go about to calculate it ?
 
Old 12-18-2006, 11:06 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I don't know if journaling file systems are supported with the disk quota utility. The man page for setquotactl says that the XFS file system has special parameters to invoke XQM, which is the quota utility for XFS. The XFS file system is the only one named and it is treated as a special case. That appears to imply to me that only ext2 and XFS are supported. I looked at the man pages for all of the disk quota utilities, edquota(8), quota(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8), and this is all that I could find. All of them talk about a -F parameter for specifying the quota version but they only talk about old version and new version and XFS.

I have had problems with Reiser file system so I advise against using it. I have bad luck with XFS as well. I only trust ext2 and ext3 for Linux systems.
 
Old 03-03-2011, 12:49 PM   #5
apple.23
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
i dont get it...

Im sorry, but I dont understand. I want to set a soft limit of 8 GB and hard limit of 10 GB for users.
According to your explanation I get this:
the block size of 4096

therefore (8 x 1024 x 1024) / 4096 = 2048 (2048000) is the soft limit????

therefore (10 x 1024 x 1024) / 4096 = 2560 (2560000) is the hard limit????

Is it that correct???
Why do I have to convert 2048 again to kb? I mean, I did it (8 x 1024 x 1024) here.

I will appreciate any answer.



Quote:
Originally Posted by kennyghh View Post
I am needed to set a soft limit of 200MB and hard limit of 205MB for users.

How do I calculate that for a harddisk with ext2, ext3 and reiserfs ?

Correct me if i am wrong. For ext2 i need to determine the block size with the command

dumpe2fs /dev/hda1
from here i get the block size of 4096

therefore (200 x 1024) / 4096 = 50MB (50000) is the soft limit

therefore (205 x 1024) / 4096 = 51.25MB (51250) is the hard limit
 
  


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
hard-limit quotas exceeded and how is that possible? openandout Linux - Enterprise 2 06-09-2006 05:21 AM
Is there a hard limit to virtual domains? kuplo Linux - Software 6 11-10-2005 03:50 AM
Purpose of setting a soft limit ? vmniza Linux - General 1 03-11-2004 07:37 AM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 07:35 AM
200 Gig hard drive limit briz Linux - Hardware 19 02-22-2003 07:05 PM


All times are GMT -5. The time now is 05:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration