Oops. I found out that I could set S_CONTEXT in /etc/vservers/lanweb.conf to
set the context id. Here is my lanweb.conf
IPROOT="192.168.0.78 <http://192.168.0.78>"
IPROOTMASK="255.255.255.0 <http://255.255.255.0>"
IPROOTDEV="eth1"
S_HOSTNAME="lanweb"
S_DOMAINNAME="none"
ONBOOT="no"
S_CAPS="CAP_NET_RAW"
S_CONTEXT=10
Once I got lanweb started and then entered it by root. At the prompt of the
host, I did
vserver lanweb status
and here is the output:
Vserver 'lanweb' is running at context '49153'
Number of processes: 3
Uptime: 00:02
I did set S_CONTEXT="10" just in case I did not set it correctly. However,
in both case, my context is not 10 and always different numbers. Is there
any restrictions on the range of context id?
Is this kind of servername.conf configuration file a legacy stuff too?
What could be wrong here? Could some expert give me some info on this?
I would like to solve this so I can have a context id for my guest server to
set up quota on it.
Thanks.
Steven.
On 10/18/05, Steven Truong <djatlantic@gmail.com> wrote:
>
> Thanks Mr. *Gorecki and Chuck for the answers. I have a question regarding
> http://linux-vserver.org/Disk+Limits . I created my vserver without
> specifying the context number, so do I need to fix it or have to rebuild the
> guest server with a context number, or could I just append to the guest
> server the context number (if possible)?
>
> Regarding to Chuck's method, I think it is a bit different for my case
> because /vservers is already a logical volume, and I can resize /vserver as
> a whole partition.
>
> Best regards,
> Steven.
> *
> On 10/18/05, Steven Truong <djatlantic@gmail.com> wrote:
> >
> > Hi, all. After reading some of the messages regarding quota, I would
> > like to implement quota for the guest servers on a LVM partition /vservers.
> > I only care to limit the amount of space a guest server could use and I do
> > not care about the per user quota in each guest.
> >
> > I found this link from a recent message and wonder if the instructions
> > applied to my situations.
> > http://linux-vserver.org/Standard+non-shared+quota
> >
> > And how LVM could assist in limiting disk space of each guest server?
> > (If by any means)
> >
> > Please assist me in this attempt.
> > Thanks.
> >
>
>
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Oct 19 02:28:37 2005