Current time: 05-05-2024, 07:09 AM Hello There, Guest! (LoginRegister)


Post Reply 
User limit & Quota
Author Message
tango Offline
Member
***

Posts: 461
Joined: Jun 2007
Reputation: 0
Post: #1
User limit & Quota
One question, If I create a user (vu2001) and his example 500MB memory allocation, it shall be quota vu2001 not displayed the limit.

Is it installed or not I made a mistake?

Sorry my English is Bad, it was from German to English with google translator translates
(This post was last modified: 02-25-2009 12:30 PM by tango.)
02-25-2009 06:59 AM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: User limit & Quota
We are using a soft quota stored in our database, that's the reason why there is no hard quota shown for the user.

To explain why it is handled like this: I assume - because this is an VHCS relict - that the changes in the boot manager necessary for the use of quota and the unavailability of quota in former linux kernels have been the main reasons for using soft quota.
02-25-2009 04:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tango Offline
Member
***

Posts: 461
Joined: Jun 2007
Reputation: 0
Post: #3
RE: User limit & Quota
we would do in the future hard quotas change ?
02-25-2009 07:23 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #4
RE: User limit & Quota
maybe Big Grin
02-25-2009 09:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cyber2 Offline
Newbie
*

Posts: 6
Joined: Jul 2009
Reputation: 0
Post: #5
RE: User limit & Quota
Do you made a hard quotas change?
if not - there is my dirty & simple script for set hard quotas

PHP Code:
#!/usr/bin/perl

#  Hard quota installer  for CentOs VPS v0.1                 
#  dirty & simple script created by 2lexx@mail.ru 02.08.2009 
#  to check quota  just type in console: repquota -a         


use DBI;

my $host "localhost";
my $port "3306";
my $user "root";
my $pass "PASSWORD_FOR_MYSQL_ROOT";
my $db "ispcp";


$dbh DBI->connect("DBI:mysql:$db:$host:$port",$user,$pass);
$sth $dbh->prepare("select domain_name,domain_uid,domain_disk_limit*1e3 from domain");
$sth->execute;

while (
$ref $sth->fetchrow_arrayref) {
`
/usr/sbin/setquota -u vu$$ref[1] 0 $$ref[2] 0 0 /`;
print 
"Hard quota for user vu$$ref[1],domain $$ref[0] is set to $$ref[2] 1k blocks\n";
}

$rc $sth->finish;
$rc $dbh->disconnect

I have been crontabbed it and it works ok Wink
Any suggesions?

Sorry my English is Bad, my native language is perl Wink
08-02-2009 07:53 PM
Find all posts by this user Quote this message in a reply
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #6
RE: User limit & Quota
hard quotas are good but not for all users.
vserver often don't have the option to set hard quotas because they use the kernel of the host and theres nothing enabled with quotas.
soft-quotas are not as bad as it looks. i prefer them.
08-03-2009 03:37 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: User limit & Quota
MasterTH Wrote:soft-quotas are not as bad as it looks. i prefer them.

Me too. My customers would get really angry if their website stops working because it can't create any temporary files anymore due to a hard quota. We know it's his fault, but he won't ever agree...
08-04-2009 06:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
WuChEn Offline
Junior Member
*

Posts: 192
Joined: Feb 2009
Reputation: 2
Post: #8
RE: User limit & Quota
What does it do? Oo
Set quota vor any dir? Oo

Gratz WuChEn
11-25-2009 06:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)