About this list Date view Thread view Subject view Author view Attachment view

From: Matt Ayres (matta_at_unixshell.com)
Date: Wed 30 Oct 2002 - 23:50:13 GMT


I'm not sure if this has been addressed here already, if so sorry for
the dupe (i'm new to the list). This is what i've done to enable quotas
within a VPS.

Enable quotas for the filesystem on the host server. A simple
usrquota,grpquota to the mount option will suffice.

Then in the vservers /etc/fstab add usrquota,grpquota to mount options.
Also add the options to /etc/mtab.

You should check quotas on the filesystem at bootup. Also make sure to
enable 'update' within the vserver or quotas will never be updated when
disk usage changes.

As far as limiting a vservers usage just use a file-backed filesystem.

--
Matt Ayres

On Wed, 30 Oct 2002, Mefford, Aaron wrote:

> I realize that I am new to the list and do not have much history, but I am > considering the possibility of using vserver on a fairly large project and > as such would like to at least take a moment to offer my opinion on a couple > of items. > > First, I almost walked away from using the vserver option until after > joining the list I saw that the quota issue was being actively addressed. > Of the todo's left, quota was the biggest gap for my application. It would > be excellent to see the others addressed but without quota it would not be > an option. > > As to the specific post, I am not sure that the hard line of not overbooking > is a good idea. While for many applications it would be a correct solution > there are some where it will not. Every ISP over allocates their available > resources. People do not care to pay for dedicated resources. > Additionally, with most services now being offered via resellers, it seems > unreasonable to not allow the reseller the same option. For instance, if I > sell virtual private servers, and joe buys a VPS with the intention of > selling individual web sites run within the VPS, I may or may not want to > allow Joe to oversubscribe his disk space, possibly even on a per VPS basis. > > I realize that implementing a solution that would support a hybrid approach > raises the complexity, but I wanted to state that there is value and need > for such an approach. > > Aaron > > -----Original Message----- > . > . > . > > - how to handle context quota violations within the kernel > > for users which do not exceed their personal quota? > > Simply report you exceeded your quota, and on check report > > that still space/quota is left? > > IMHO, It should not be possible for a context to exceed it's quota when > some users have not. This is the point of quota mechanism. Guarantee > space on the disk and not allow for over-booking. Allocated user quota > should be subtracted from the total context quota, so that any users > with no quota should not be able to use that space. So in a way, users > with quota will have their space, while other users will share what is > left. It is the only way to guarantee file allocation. > > So, if context has 1Gig, and we allocate 300megs to users, all the other > users will get at max 700megs. > > Dave. >


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:43 GMT by hypermail 2.1.3