Setting Disk Quota & Inodes. [message #27565] |
Tue, 19 February 2008 19:26 |
joelee
Messages: 63 Registered: April 2006
|
Member |
|
|
Hi All,
I'd like to know the relationship with setting the disk quota value and the value set for inodes. For example, if I setup my disk quota for 10G soft limit : 12G hard limit. What should the inodes be adjusted to? So, is there a formula used to adjust inodes based on the quota set for the HD?
Would appreciate any info that can clear this up for me!
Joe
|
|
|
|
|
Re: Setting Disk Quota & Inodes. [message #27610 is a reply to message #27588] |
Wed, 20 February 2008 18:06 |
joelee
Messages: 63 Registered: April 2006
|
Member |
|
|
There's no direct connection between disk limits and inode limits.
You may just evaluate these numbers. E.g. if you expect your files to be big, then the inodes limit may be set low; if you're going to create plenty of small files then the larger inodes limit will be required.
Xemul, thanks for your comments above... However, I am wondering how are people evaluating what size files are going to eventually populate the server - Especially, like Web or DB type servers that are so variable. I don't see how one can predict this. I can understand for servers like dns, ntp, that are merely static in data.
So, from xemul comments above, i can set my disk space to any size with out considering how much inodes to give it. And, the other question is: does the default inode setting is it considered for small files, medium size files or large files? What is the baseline for the initial default inode settings?
Joe
|
|
|
|
Re: Setting Disk Quota & Inodes. [message #27644 is a reply to message #27622] |
Thu, 21 February 2008 14:42 |
joelee
Messages: 63 Registered: April 2006
|
Member |
|
|
Xemul, again thanks for your comments below... I am not trying to beat this question to death but really trying to understand how users not to experience with OpenVZ should allocate the proper inodes.
These numbers came from testing. We just noticed how much inodes consumes an average web server (with Apache, Sendmail, MySQL, ect) and set them in default config files.
Per your above comments, the "defualt openz" inode settings and perhaps others where derived from testing average web server with apache, sendmail, sqldb, etc.
The question in my mind is:
"what is considered average", What is considered low vs high?
What are the performance impact (if any) with not properly setting the inodes?
Are there any command tools that can help set the proper inode settings? Or, Identify when inodes are not sufficiently set?
Once the inodes are set can they be changed/adjusted later - Same for disk space?
Joe
|
|
|
|
|
Re: Setting Disk Quota & Inodes. [message #27750 is a reply to message #27565] |
Tue, 26 February 2008 08:09 |
xemul
Messages: 248 Registered: November 2005
|
Senior Member |
|
|
Quote: | what commands can I use to track the inodes usage?
|
vzctl/vzquota
Quote: | how to set inode to the unlimited way
|
You may do the following. Run the command and check how many inodes are available for the partition your /vz/directory is on. After this set all VEs' inodes to this value.
|
|
|