PDA

View Full Version : disable Space limit overage...



ProHS
01-22-2004, 08:22 AM
I was wondering if their is a way to disable space limit overage? I do not want to provide space limit overage in less they already pre paid for it which i will add that manually. I will provide bandwidth overage but that is different story if you know what i mean.

ProWebUK
01-22-2004, 08:24 AM
I would also like to see this feature..... if you get a bad sale you could have a whole HD filled easy within 24 hours.... not a good thing... (hints at live quota updates again :D )

ProHS
01-22-2004, 08:27 AM
Yes very true and on top of that if a customer needs it and you do not have the space you need time to upgrade, hehe

DirectAdmin Support
01-22-2004, 09:30 AM
Hello,

We do use the system quotas which are built into the kernel.. it does realtime quota checking at the system level, so once the usage is filled up, the user can't save anymore data. This doesn't apply to the stats that show up in DA.. they're only read in from the system quotas nightly (at the moment), but the system is always checking during file writes. One other thing is that some of the external sevices like mysql that don't save files owned by the username won't be covererd by the system quotas, but all files uploaded using ftp/filemanager/frontpage will be.

John

ProHS
01-22-2004, 09:37 AM
But in the mean time they can fill up your server with all kinds of data so is there anyway to disable from going past their limit? Also i just uploaded a file to an account that is over the space usage and it let me so how does it not let you write to it if there over?

DirectAdmin Support
01-23-2004, 11:45 AM
Hello,

The system quotas will prevent them from going past their limit.

Check the current system quotas by running:
[user@system]# quota -v username
Disk quotas for user username (uid 567):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda3 96 102400 102400 25 0 0
The "blocks" is how much the system thinks they're using, while "quota" is the limit.

If the "blocks" used insn't accurate, you can tell the system to update the quota by running:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;John

ProHS
01-25-2004, 09:45 AM
Originally posted by DirectAdmin Support
Hello,

The system quotas will prevent them from going past their limit.

Check the current system quotas by running:
[user@system]# quota -v username
Disk quotas for user username (uid 567):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda3 96 102400 102400 25 0 0
The "blocks" is how much the system thinks they're using, while "quota" is the limit.

If the "blocks" used insn't accurate, you can tell the system to update the quota by running:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;John

I tryed running the last command you said to run and it said unknown command and the first one on a few accounts there was no limits, what is that about?

DirectAdmin Support
01-25-2004, 01:55 PM
Hello,

Are you running a vps? That command is required, so it will need to be added. (/usr/quotacheck)

If the account limit is set to 0, then it means that there is no limit (unlimited) and the user can use as much space as he wants.

John

ProHS
01-25-2004, 02:00 PM
Originally posted by DirectAdmin Support
Hello,

Are you running a vps? That command is required, so it will need to be added. (/usr/quotacheck)

If the account limit is set to 0, then it means that there is no limit (unlimited) and the user can use as much space as he wants.

John

How would i fix this problem then because all my account are like that and i have them limit through DA?

DirectAdmin Support
01-25-2004, 02:04 PM
Hello,

You should be able to just go:

Reseller Panel -> List/Modify Users -> username -> and click "Save" at the bottom of the settings. That should reset the system quotas to a non-zero value.

repquota -a

will list everying all at once.

John

ProHS
01-25-2004, 02:16 PM
Originally posted by DirectAdmin Support
Hello,

You should be able to just go:

Reseller Panel -> List/Modify Users -> username -> and click "Save" at the bottom of the settings. That should reset the system quotas to a non-zero value.

repquota -a

will list everying all at once.

John

Yea John it is still set to all 0's for the limit on all accounts, anything else i can do?

ProWebUK
01-25-2004, 03:24 PM
Can i ask what kernel you are using?... not by any chance 2.4.20-13.7?

(there was a bug with that kernel and qotas a while back..... if you have that your way out of date and need to get updating anyway :p )

Chris

ProHS
01-25-2004, 03:58 PM
Originally posted by ProWebUK
Can i ask what kernel you are using?... not by any chance 2.4.20-13.7?

(there was a bug with that kernel and qotas a while back..... if you have that your way out of date and need to get updating anyway :p )

Chris

I am not using Linux, I am on FreeBSD... SO there shouldn't be a bug in mine because i am on FreeBSD 4.8 stable.

DirectAdmin Support
01-26-2004, 09:38 AM
Hello,

From what I've seen, unless you do it yourself, FreeBSD doesn't come with system quotas.. at all. The system quota checker doesn't exist without them built into the kernel. That would explain a few things :) The quotacheck program will update the usage, but won't limit anything.

John

ProHS
01-26-2004, 09:43 AM
Originally posted by DirectAdmin Support
Hello,

From what I've seen, unless you do it yourself, FreeBSD doesn't come with system quotas.. at all. The system quota checker doesn't exist without them built into the kernel. That would explain a few things :) The quotacheck program will update the usage, but won't limit anything.

John

How could i set this up then because i need this limit?

DirectAdmin Support
01-26-2004, 09:48 AM
Hello,

You'd need to compile a new kernel with quotas enabled. (Not something I can help with)

John

ProWebUK
01-26-2004, 10:02 AM
Are you using a standard redhat kernel rpm (from up2date rpmfind etc) or was your kernel compiled manually?

Chris

ProHS
01-26-2004, 10:25 AM
Originally posted by ProWebUK
Are you using a standard redhat kernel rpm (from up2date rpmfind etc) or was your kernel compiled manually?

Chris

I am using FreeBSD 4.8 Stable so i am not using a Linux Redhat Server. So the kernel that is installed is probably standard.

ProHS
02-06-2004, 12:14 PM
Are quotas enable on FreeBSD by default? Because ServerMatrix / The Planet told me it was and i thought it wasn't? If quotas is enable what would cause the problem where people can go over at?

rhoekman
02-06-2004, 05:37 PM
Quota's need to be compiled on FreeBSD.
ServerMatrix setup their servers 'standard' with quota's on perhaps, dunno.

Little howto: http://www.projektfarm.com/en/support/howto/freebsd_quota.html

edit: I swear I did not know that this howto was on another Control Panel site! :)

Webcart
02-07-2004, 01:08 AM
I just recompiled kernel for FreeBSD 4.9 to include quotas control and included enable_quotas="YES" into /etc/rc.conf file. I also added userquota option to /usr partition (this is where home is located, /home is just symb link to /usr/home).

I still don't see any quotas for users.
Here is an example:


[root@~ webcart]# quota -v redguitars
Disk quotas for user redguitars (uid 1009):
Filesystem usage quota limit grace files quota limit grace
/ 0 0 0 1 0 0
/usr 3918 0 0 803 0 0


So, the quotas are apparently enabled, but DA failed to set the limit.

ProHS
02-07-2004, 06:58 AM
Yea i showed ServerMatrix that it does not do FreeBSD by default and the apologized for giving me mis inofmration. Well there going to recompile the kernel for me which will add support ipfw and quotas

Webcart
02-07-2004, 04:01 PM
Originally posted by ProHS
Yea i showed ServerMatrix that it does not do FreeBSD by default and the apologized for giving me mis inofmration. Well there going to recompile the kernel for me which will add support ipfw and quotas

That's right, standard FreeBSD install comes without quota support and that explains why it doesn't work on your system.

My box, however, is set up with compiled kernel and quotas are enabled as shown couple of posts above. They are just not managed thru DA.

ProHS
02-07-2004, 06:19 PM
Yea that sounds right. I am still learning FreeBSD. I am use to Linux but i been using FreeBSD the last 4 months for my server but tryed it in the past.

Webcart
02-07-2004, 06:35 PM
Ditto. I've been using Red Hat Linux since 4.0, but last year I mainly work with FreeBSD...

Anyway, if you need any help compiling kernel let me know. Just enabling quotas and firewall should be as easy as compiling ports.
If you have console access to your box, it worth trying right away ;) Here is the link (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/book.html#KERNELCONFIG) to an official guide (go with the "New" Way).

I am going to put together FreeBSD quickstart or something once I have everything set up and running. Although FreeBSD is officially supported, many HOW-TOs assume RH, we need to change that :)

ProHS
02-07-2004, 06:48 PM
Yea we do, Redhat is trying to monplize the open source world and people like us will not let that happen. I would like to see more how to guides for FreeBSD like secure pop3 and MailScanner for exim.

ProHS
02-16-2004, 06:34 AM
How do i get vps installed now i have quotas support on my new recompile kernel?