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

From: Stephan Sachse (listen_at_nugmbh.de)
Date: Wed 10 Sep 2003 - 11:19:27 BST


On Wed, 10 Sep 2003 01:58:42 +0200
Herbert Poetzl <herbert_at_13thfloor.at> wrote:

> On Tue, Sep 09, 2003 at 02:26:25PM +0200, Stephan Sachse wrote:
> > Hi,
> >
> > i try out the per Context Quota and do the following steps.
> >
> > * vanilla kernel 2.4.22 with alle patches from Herbert
> > * vserver-0.23
> >
> > after reboot i setup the vroot with "vrsetup /dev/vroot/0 /dev/hda3"
> > (must i do that after every reboot??)
> >
> > hda3 is mounted on /mnt/vserversa and alle vServer are linked to
> > /vservers. A second hd is mounted on /dec/vserversb.
> >
> > now i use this command "chcontext --ctx 100 cqhadd -v /dev/hda3" to
> > activate the quota for vServer "v01" and start the vServer "v01"
> >
> > "quotacheck -avgu" and "quotaon -avgu" all works fine.
> >
> > now i setup a second vserver "v02" with the same userids and do the
> > same things for v02. Quota works fine ;)
> >
> > I make some test an got many crashes (i make a Photo from that ;))
> > when
>
> hmm, sounds interesting, what crashes did you observe?

here is the photo http://www.teg-clan.de/bilder/vserver-qouta-1.jpg

The system keeps running but all vserver* scripts hangs after the crash.
A reboot will fail because the vserver* scripts hangs only a hard reset
helps.

> > i do the "chcontext --ctx 100 cqhadd -v /dev/hda3" after i start the
> > vServer. Now i must wroth a script that adds the quota before the
> > vServer starts. But the Problem is the /dev/real/block/device. How
> > can i find out die real block device like /dev/hda3 for a vServer on
> > demand when the vServer starts.
>
> well, if you know, you use /dev/hda3 for _all_ vservers,
> it would always be /dev/hda3 and further, you would only
> require _one_ vroot device, so setting up the vroot on
> boot time, and just using /dev/vroot/0 for each server
> would be sufficient, wouldn't it?

i have defined a VARIABLE REALBLOCKDEVICE in v01.conf and handle the
vrsetup in /etc/init.d/vservers. The cqhadd/cqhrem is doing in v01.sh.
It's not so good because the REALBLOCKDEVICE is "hardcoded" in conf
file, but it works

cya later
/stephan

-- 
"Perl - the only language that looks the same
before and after RSA encryption." -Keith Bostic


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 10 Sep 2003 - 11:49:48 BST by hypermail 2.1.3