Help with quota setting...

Ahmed RAHAL arahal at taranis-services.fr
Wed May 2 07:58:43 GMT 2001


Hi,

> For my testing, I am using the following numbers:
> 
>            soft:5000 and hard:6500 for blocks 
>            soft:40 and hard:45 for inodes
>            and 2.75 MP3 file and a 20kb Word file as my test files.
> 
> If i copy the MP3 file several times, it will prompt me that my disk is 
> full after copying the third file, but it will continue to let me copy 
> the files unitl i get to the 43 file (including . and ..) 
> 
> if i copy the 20kb Word file, it will allow me to go all the way to the 
> 45 hard limit for inodes, but it will only total 860kb.
> 
> What can I do?  Isn't there a way to set the file limit (in MB) without 
> having to set the blocks and inodes?
> 
> HELP!?!?!?!?!?!?!?!?!


Never done quota management before, but :
when you format a filesystem, you get a
number of inodes, depending on the block's size.
On linux you often have 4096 byte blocks.
Unlike FAT filesystems, on ext2 filesystems (example)
you have to monitor 2 values : size & inodes. If you
run out of place or inodes, you cannot add
files.
You are asked to set a size limit AND an inode limit.
I can guess you don't bother much on inodes, so
set this value high, and just compute the number of
blocks you need, giving your limit size.

Hope this helps ...

Ahmed RAHAL






More information about the samba mailing list