Koozali.org: home of the SME Server

Quota Management

jane

Quota Management
« on: January 21, 2003, 09:38:24 AM »
I found this

/sbin/e-smith/db configuration set maxAccNameLength 15

to set the maximum account name length to 15 characters and

/sbin/e-smith/db accounts set $username user FirstName $firstname LastName $lastname PasswordSet no Uid $number Gid $number

to create user accounts. What I'm currently looking for is how to set the quota. Anybody knows? Any idea?

Amp

Re: Quota Management
« Reply #1 on: January 22, 2003, 02:07:10 AM »
I have same problem, i need this request..

Chris Sarginson

Re: Quota Management
« Reply #2 on: April 10, 2003, 06:25:19 PM »
Simply run

/sbin/e-smith/db accounts set $username user FirstName $firstname LastName $lastname PasswordSet no Uid $number Gid $number MaxBlocksSoftLim ${size in kb (has to be a multiple of 1024)} MaxBlocks ${size in kb (has to be a multiple of 1024)}

/sbin/e-smith/signal-event user-modify $username

The MaxBlocksSoftLim is when users will begin recieving warnings, and MaxBlocks is the absolute limit - the user stops recieving emails, being able to add files to ibays etc.....

Hope this is useful

Chris Sarginson
Expotel Technical Support

Daley

Re: Quota Management
« Reply #3 on: May 02, 2003, 08:23:24 PM »
Hi Chris,

Failed!!! :(, but it still doesn't update the quota by looking at the repquota -avu....

If  the account is already created, can it be modify by using the command line???

Thank you.
Daley

Chris Sarginson

Re: Quota Management
« Reply #4 on: May 02, 2003, 08:28:28 PM »
Block limits               File limits
User            used    soft    hard  grace    used  soft  hard  grace

csargiso  --    2060   10240   10240             61     0     0      
aley      --     160       0       0             42     0     0      
rcolduck  --     180       0       0             49     0     0      
ldasey    --      80    2048    3072             22     0     0

Chris Sarginson

Re: Quota Management
« Reply #5 on: May 02, 2003, 08:30:52 PM »
Here is a snip from my repquota -avu....

                                Block limits               File limits
User            used    soft    hard  grace    used  soft  hard  grace

csargiso  --    2060   10240   10240             61     0     0      
aley      --     160       0       0             42     0     0      
rcolduck  --     180       0       0             49     0     0      
ldasey    --      80    2048    3072             22     0     0  

I created the users through the web interface, and then through the CLI ran  /sbin/e-smith/db accounts set $username user FirstName $firstname LastName $lastname PasswordSet no Uid $number Gid $number MaxBlocksSoftLim ${size in kb (has to be a multiple of 1024)} MaxBlocks ${size in kb (has to be a multiple of 1024)}

followed by /sbin/e-smith/signal-event user-modify $username,
and have had no problems since.

Chris

Daley

Re: Quota Management
« Reply #6 on: May 05, 2003, 02:06:33 PM »
i think i have the kernel VFS error, based on the below snapshot..., however, the quota setting is unable to apply the quota file, which can be confirm by the repquota -avu.

May  2 00:37:00 sme kernel: VFS: Can't read quota structure for id 5084.
May  2 00:37:01 sme kernel: VFS: Quota for id 5087 referenced but not present.
May  2 00:37:01 sme kernel: VFS: Can't read quota structure for id 5087.
May  2 00:37:01 sme kernel: VFS: Quota for id 5090 referenced but not present.
May  2 00:37:01 sme kernel: VFS: Can't read quota structure for id 5090.
May  2 00:37:01 sme kernel: VFS: Quota for id 5116 referenced but not present.
May  2 00:37:01 sme kernel: VFS: Can't read quota structure for id 5116.
May  2 14:47:25 sme kernel: VFS: find_free_dqentry(): Data block full but it shouldn't.
May  2 14:47:25 sme kernel: VFS: Error -5 occured while creating quota.

Please help.

Thank you.
Daley