Dear, Mr. Poetzl. Here is the output of running testme.sh.
Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl
chcontext is working.
chbind is working.
Linux 2.6.12 i686/0.30.208/0.30.208 [Ea] (0)
VCI: 0002:0001 273 02000016
--- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. Well, I just finished getting quota to work. Thanks very much for your helps. Steven. On 10/19/05, Herbert Poetzl <herbert@13thfloor.at> wrote: > > On Tue, Oct 18, 2005 at 07:13:20PM -0700, Steven Truong wrote: > > Ooops. Interesting development on trying quota based on * > > http://linux-vserver.org/Disk+Limits > > > > Currently I have > > /dev/sys/vservers /vservers ext3 defaults,tagxid 0 2 > > > > Howerver, because I just reboot the host server, so I started the guest, > > enterred it by root. Then I went to /usr/local/src/httpd-2.0.55 and here > > what I did. > > xid tagging works with dynamic ids too, but the result > is simple unuseable for normal purposes > (i.e. you do not want to change all files to the new > context every time you start the guest, because it > just doesn't make much sense, and destroys context > information anyway) > > again, I have no idea what tagging format and kernel > or patches you are using .. please provide the output > of testme.sh for more details ... > > http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh > > TIA, > Herbert > > > [root@lanweb httpd-2.0.55]# ls -lha > > ls: .deps: No such file or directory > > ls: .libs: No such file or directory > > ls: doc-pak: No such file or directory > > total 1.7M > > drwxr-xr-x 13 struong struong 4.0K Oct 18 16:52 . > > drwxr-xr-x 4 root root 4.0K Oct 17 16:23 .. > > -rw-r--r-- 1 struong struong 15K Nov 24 2004 ABOUT_APACHE > > -rw-r--r-- 1 struong struong 72 Nov 24 2004 acconfig.h > > -rw-r--r-- 1 struong struong 16K Nov 24 2004 acinclude.m4 > > -rw-r--r-- 1 struong struong 4.2K Nov 24 2004 Apache.dsp > > -rw-r--r-- 1 struong struong 38K Nov 24 2004 Apache.dsw > > -rw-r--r-- 1 struong struong 185K Nov 24 2004 apachenw.mcp.zip > > drwxr-xr-x 5 struong struong 4.0K Oct 18 16:47 build > > -rw-r--r-- 1 struong struong 2.7K Nov 24 2004 BuildBin.dsp > > -rwxr-xr-x 1 struong struong 5.0K Jun 14 10:06 buildconf > > -rw-r--r-- 1 struong struong 616K Oct 7 19:55 CHANGES > > -rw-r--r-- 1 struong struong 11K Nov 24 2004 config.layout > > ?--------- ? ? ? ? ? config.log > > ?--------- ? ? ? ? ? config.nice > > ?--------- ? ? ? ? ? config.status > > -rwxr-xr-x 1 struong struong 513K Oct 9 21:34 configure > > -rw-r--r-- 1 struong struong 19K Sep 12 16:41 configure.in<http://configure.in> > <http://configure.in> > > ?--------- ? ? ? ? ? configure.output > > -rw-r--r-- 1 root root 0 Oct 18 16:47 .deps > > ?--------- ? ? ? ? ? description-pak > > drwxr-xr-x 3 root root 4.0K Oct 18 16:50 doc-pak > > drwxr-xr-x 9 struong struong 4.0K Oct 9 21:34 docs > > -rw-r--r-- 1 struong struong 367 Nov 24 2004 emacs-style > > -rw-r--r-- 1 struong struong 7.0K Nov 24 2004 .gdbinit > > ?--------- ? ? ? ? ? httpd > > -rw-r--r-- 1 struong struong 17K Oct 9 21:34 httpd.spec > > drwxr-xr-x 2 struong struong 4.0K Oct 18 16:47 include > > -rw-r--r-- 1 struong struong 3.7K Nov 24 2004 INSTALL > > -rw-r--r-- 1 struong struong 2.9K Nov 24 2004 InstallBin.dsp > > -rw-r--r-- 1 root root 25K Oct 17 16:39 installlog.txt > > -rw-r--r-- 1 struong struong 5.1K Nov 24 2004 LAYOUT > > -rw-r--r-- 1 struong struong 16K Nov 24 2004 libhttpd.dsp > > drwxr-xr-x 2 root root 4.0K Oct 18 16:50 .libs > > -rw-r--r-- 1 struong struong 31K Nov 24 2004 LICENSE > > ?--------- ? ? ? ? ? Makefile > > -rw-r--r-- 1 struong struong 8.2K Nov 24 2004 Makefile.in<http://Makefile.in> > <http://Makefile.in> > > -rw-r--r-- 1 struong struong 28K Nov 24 2004 Makefile.win > > drwxr-xr-x 17 struong struong 4.0K Oct 18 16:47 modules > > ?--------- ? ? ? ? ? modules.c > > ?--------- ? ? ? ? ? modules.lo > > ?--------- ? ? ? ? ? modules.o > > -rw-r--r-- 1 struong struong 761 Nov 24 2004 NOTICE > > -rw-r--r-- 1 struong struong 9.7K Nov 24 2004 NWGNUmakefile > > ?--------- ? ? ? ? ? options.sh > > drwxr-xr-x 9 struong struong 4.0K Oct 18 16:47 os > > -rw-r--r-- 1 struong struong 3.3K Nov 24 2004 README > > -rw-r--r-- 1 struong struong 3.8K Nov 24 2004 README.platforms > > drwxr-xr-x 4 struong struong 4.0K Oct 18 16:49 server > > drwxr-xr-x 5 struong struong 4.0K Oct 18 16:47 srclib > > drwxr-xr-x 5 struong struong 4.0K Oct 18 16:50 support > > drwxr-xr-x 2 struong struong 4.0K Oct 18 16:47 test > > -rw-r--r-- 1 struong struong 8.0K Nov 24 2004 VERSIONING > > [root@lanweb httpd-2.0.55]# more config.log > > config.log: No such file or directory > > > > *As you can see, "suddenly" some files lost permissions as well as owner > and > > group owner settings and I tried to read one of the files and there was > such > > error. > > > > I then stop the guest, umount /vservers and removed tagxid from the > entry on > > /etc/fstab. I then mounted /vservers, started server, entered it, then > > everything went back to normal. > > > > I also tried to go back to the previous errors and instead of bailing > out, I > > did this on the host server: > > > > vserver lanweb status > > Vserver 'lanweb' is running at context '49158' > > Number of processes: 3 > > Uptime: 00:10 > > [root@abc-25 vservers]# chxid -c 49158 -R lanweb/ > > > > Then inside the guest server, everything is back to normal again. > > > > Well, I am waiting for some experts to give me a hint on how I could set > the > > context-id before I continue with this quota stuff. > > > > Anyway, there are something interesting regarding this, and it would be > nice > > if some experts here explain this "strange or well defined" behavior so > I > > and probably others could learn a thing or two about vserver. > > > > Thanks in advance. > > Steven. > > > > P.S. Sorry for sending too many emails on the same topic. > > > > > > On 10/18/05, Steven Truong <djatlantic@gmail.com> wrote: > > > > > > 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> <http://192.168.0.78>" > > > IPROOTMASK="255.255.255.0 <http://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 > >
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Oct 19 19:24:11 2005