Re: [Vserver] unique uptime report per guest

2005-10-18 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 05:52:45AM -0400, Chuck wrote:
 
 in the video a unique uptime per guest ability is mentioned.. i just
 searched the site and can't find how to do this..

basically it's all in the flags and capabilities ... :)

#define VXF_VIRT_UPTIME 0x0002

check the new wiki page 

http://linux-vserver.org/Caps+and+Flags

for more details on the flags (and soon caps too)

HTH,
Herbert

 -- 
 
 Chuck
 
 
 
 ___
 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


Re: [Vserver] patched Debian kernels?

2005-10-18 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 02:09:21PM +0200, Eugen Leitl wrote:
 On Thu, Oct 13, 2005 at 12:48:34PM +1300, Sam Vilain wrote:
 
  There's one built for sarge at:
  
deb http://apt.utsl.gen.nz/debian sarge all
  
  Add that to your sources.list, then run something like this to see which
  kernels are available:
  
 apt-get update  apt-cache search kernel-image vs
  
  The one there is based on 2.6.13, but is not built for athlon.
 
 Thanks a lot! These kernels worked very well. I think I will
 stick with them.
 
 Another question: I don't really understand the difference between
 vserver-debiantools - Tools to manage debian virtual servers and
 util-vserver - tools for Virtual private servers and context
 switching.

the vserver-debiantools should not be needed on debian
as util-vserver should be able to provide all the 
funtionality ... 

for some time (maybe still? and at least in sarge) the
tools are broken, so better get them as source tarball
or from unstable/testing ...

HTH,
Herbert

 Is it safe to install both on Debian Sarge?
 
 -- 
 Eugen* Leitl a href=http://leitl.org;leitl/a
 __
 ICBM: 48.07100, 11.36820http://www.leitl.org
 8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE



 ___
 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


Re: [Vserver] unique uptime report per guest

2005-10-18 Thread Gregory (Grisha) Trubetskoy



On Tue, 18 Oct 2005, Chuck wrote:

ok found that but now where do i put the virt_uptime flag? into what 
file?


Most likely in

/etc/vservers/vserver name/flags

(one flag per line)

Grisha

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] unique uptime report per guest

2005-10-18 Thread Gregor Schreier

Hi Chuck,

try echo VIRT_UPTIME   /etc/vservers/yourvserver/flags

Chuck wrote:


On Tuesday 18 October 2005 08:17 am, Herbert Poetzl wrote:
 


On Tue, Oct 18, 2005 at 05:52:45AM -0400, Chuck wrote:
   


in the video a unique uptime per guest ability is mentioned.. i just
searched the site and can't find how to do this..
 


basically it's all in the flags and capabilities ... :)

#define VXF_VIRT_UPTIME 0x0002

check the new wiki page 


http://linux-vserver.org/Caps+and+Flags

for more details on the flags (and soon caps too)
   



ok found that but now where do i put the virt_uptime flag? into what file?


 


best regards
gregor

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] unique uptime report per guest

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 09:52 am, Gregory (Grisha) Trubetskoy wrote:


it worked. thanks!

 
 On Tue, 18 Oct 2005, Chuck wrote:
 
  ok found that but now where do i put the virt_uptime flag? into what 
  file?
 
 Most likely in
 
 /etc/vservers/vserver name/flags
 
 (one flag per line)
 
 Grisha
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] unique uptime report per guest

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 09:53 am, Gregor Schreier wrote:


thanks! it worked!  .. that's one of the hardest things i have found working 
with guests is which configuration goes in which file.. the flower page is 
helpful but outdated and doesn't include everything.. and all the other 
documentation has it mentioned in various areas.. :)

this http://linux-vserver.org/Caps+and+Flags file looks like a great start for 
listing everything, now all someone has to do is expand on it to show what 
goes where :)

or give the flower page an update.

 Hi Chuck,
 
 try echo VIRT_UPTIME   /etc/vservers/yourvserver/flags
 
 Chuck wrote:
 
 On Tuesday 18 October 2005 08:17 am, Herbert Poetzl wrote:
   
 
 On Tue, Oct 18, 2005 at 05:52:45AM -0400, Chuck wrote:
 
 
 in the video a unique uptime per guest ability is mentioned.. i just
 searched the site and can't find how to do this..
   
 
 basically it's all in the flags and capabilities ... :)
 
 #define VXF_VIRT_UPTIME 0x0002
 
 check the new wiki page 
 
 http://linux-vserver.org/Caps+and+Flags
 
 for more details on the flags (and soon caps too)
 
 
 
 ok found that but now where do i put the virt_uptime flag? into what file?
 
 
   
 
 best regards
 gregor
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] unique uptime report per guest

2005-10-18 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 10:08:18AM -0400, Chuck wrote:
 On Tuesday 18 October 2005 09:53 am, Gregor Schreier wrote:
 
 
 thanks! it worked! .. that's one of the hardest things i have found
 working with guests is which configuration goes in which file.. the
 flower page is helpful but outdated and doesn't include everything..
 and all the other documentation has it mentioned in various areas.. :)

well, I have to state here, that the flower page
contains the flags entry _and_ includes a link to
the cflags supported (so it can be considered up
to date in this regard)

best,
Herbert

 this http://linux-vserver.org/Caps+and+Flags file looks like a great
 start for listing everything, now all someone has to do is expand on
 it to show what goes where :)
 
 or give the flower page an update.
 
  Hi Chuck,
  
  try echo VIRT_UPTIME   /etc/vservers/yourvserver/flags
  
  Chuck wrote:
  
  On Tuesday 18 October 2005 08:17 am, Herbert Poetzl wrote:

  
  On Tue, Oct 18, 2005 at 05:52:45AM -0400, Chuck wrote:
  
  
  in the video a unique uptime per guest ability is mentioned.. i just
  searched the site and can't find how to do this..

  
  basically it's all in the flags and capabilities ... :)
  
  #define VXF_VIRT_UPTIME 0x0002
  
  check the new wiki page 
  
  http://linux-vserver.org/Caps+and+Flags
  
  for more details on the flags (and soon caps too)
  
  
  
  ok found that but now where do i put the virt_uptime flag? into what file?
  
  

  
  best regards
  gregor
  
  ___
  Vserver mailing list
  Vserver@list.linux-vserver.org
  http://list.linux-vserver.org/mailman/listinfo/vserver
  
 
 -- 
 
 Chuck
 
 ...and the hordes of M$*ft users descended upon me in their anger,
 and asked 'Why do you not get the viruses or the BlueScreensOfDeath
 or insecure system troubles and slowness or pay through the nose 
 for an OS as *we* do?!!', and I answered...'I use Linux'. 
 The Book of John, chapter 1, page 1, and end of book
 
 
 ___
 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


RE: [Vserver] unmount nfs with vserver

2005-10-18 Thread smagnuson
I have done the following but am getting a error
sudo vi /usr/local/etc/vservers/caloratst01/bcapabilities
VXC_SECURE_MOUNT
VXC_SECURE_REMOUNT
VXC_BINARY_MOUNT

I also tried:
SECURE_MOUNT
SECURE_REMOUNT
BINARY_MOUNT

I am getting the following error on vserver startup
sudo vserver caloratst01 start
Unknown bcap 'VXC_SECURE_MOUNT'

An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
  method knows how to deal with this, but on existing installations,
  appending 'true' to this file will help.

Failed to start vserver 'caloratst01'

Have I got the syntax of the file wrong?


-Original Message-
From: Herbert Poetzl [mailto:[EMAIL PROTECTED]
Sent: Friday, October 14, 2005 11:18 AM
To: Magnuson, Sig
Cc: vserver@list.linux-vserver.org
Subject: Re: [Vserver] unmount nfs with vserver


On Fri, Oct 14, 2005 at 10:42:49AM -0600, [EMAIL PROTECTED] wrote:
 A while back I posted to the list about mounting nfs filesystem into a
 vserver. The only suggestion that I could get to work was adding the
 mount to fstab on host system.

 IE:
 cat /usr/local/etc/vservers/unixdev1/fstab
 none/proc   procdefaults0 0
 none/tmptmpfs   size=64m,mode=1777  0 0
 none/dev/ptsdevpts  gid=5,mode=620  0 0
 # added Sept 14, 2005 - common unix NFS filesystem -sig
 calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0
 
 The one issue I came across was that I could not find a way to umount
 the NFS filesystem
 ssh unixdev1
 sudo umount /unix_data
 umount: /unix_data: must be superuser to umount
 umount: /unix_data: must be superuser to umount

hmm, looks like you are missing one of the
context capabilities for secure mount ...

#define VXC_SECURE_MOUNT0x0001
#define VXC_SECURE_REMOUNT  0x0002
#define VXC_BINARY_MOUNT0x0004

 I thought I would be fine with it that way but it turns out it is a
 bigger issue than I thought. Any suggestions on how to umount the NFS
 filesystem?

unmounting on the host should work quite fine ...

best,
Herbert

 I have access to host and vserver.
 thanks
 sig
 
 
 
 sudo ./vserver-testme.sh
 Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl
 chcontext is working.
 chbind is working.
 Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0)
 VCI:  0002:0001 273 0316
 ---
 [000]# succeeded.
 [001]# succeeded.
 [011]# succeeded.
 [031]# succeeded.
 [101]# succeeded.
 [102]# succeeded.
 [201]# succeeded.
 [202]# succeeded.
 
 sudo vserver-info
 Versions:
Kernel: 2.6.12.4-vs2.0
VS-API: 0x00020001
  util-vserver: 0.30.208; Aug 24 2005, 21:26:20
 
 Features:
CC: gcc, gcc (GCC) 3.4.3 (CRUX)
   CXX: g++, g++ (GCC) 3.4.3 (CRUX)
  CPPFLAGS: ''
CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W 
 -funit-at-a-time'
  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W 
 -fmessage-length=0 -
 funit-at-a-time'
build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
  Use dietlibc: yes
Build C++ programs: yes
Build C99 programs: yes
Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
 ext2fs Source: e2fsprogs
 syscall(2) invocation: alternative
   vserver(2) syscall#: 273/glibc
 
 Paths:
prefix: /usr/local
 sysconf-Directory: ${prefix}/etc
 cfg-Directory: ${prefix}/etc/vservers
  initrd-Directory: $(sysconfdir)/init.d
pkgstate-Directory: ${prefix}/var/run/vservers
 Kernelheaders: /lib/modules/2.6.12.4-vs2.0/build/include
   vserver-Rootdir: /vservers
 
 
 Assumed 'SYSINFO' as no other option given; try '--help' for more information.
 
 
 ___
 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


[Vserver] memory : free gives wrong numbers

2005-10-18 Thread Xavier Montagutelli
Hello list,

The free command gives me false number on vservers. Can someone reproduce 
the same as below :

*) Host

linux 2.6.12.4, vs 2.0
server memory : 5 Go

*) On vserver #1 :

[EMAIL PROTECTED] # free
 total   used   free   
Mem:   5128164   13738683754296
-/+ buffers/cache:   -30770728205236 --- negative number

[EMAIL PROTECTED] # ps auxw | awk '{rss+=$6} END {print rss}'
1991724

*) On vserver #2 :
[EMAIL PROTECTED] # free -g
  total   used free 
Mem:4  0   4
-/+ buffers/cache:   4091  9  --- 4To used !!

*) On the host :

[EMAIL PROTECTED] # free
total   used   free 
Mem:   5128164   4964772 163392
-/+ buffers/cache: 5124044615760

[EMAIL PROTECTED] # vps auxw | awk '$4 == vs1 {rss+=$8} END {print rss}'
1989684

So with ps on the vserver or vps on the host, vserver #1 seems to consume 
nearly 2Go of RSS. vserver-stat gives the same information.
But free gives a negative number for used memory on the vserver #1. And on 
vserver #2, memory used is ... erk ... interesting.

Do you think this is related to vserver, perhaps because of a total memory 
exceeding 4 Go (32 bits) ? Or is it a (known) limit of the free command ?

Thx
-- 
Xavier Montagutelli
Service Commun Informatique
Universite de Limoges
Tel : +33 555457720
Cle GPG : http://pgp.mit.edu 1024D/175CE198
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Steven Truong
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


Re: [Vserver] Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 02:58 pm, Steven Truong 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
 

to be honest i am not sure of the above method.. all i did was create a 
logical volume using lvm for each guest the size i wanted that guest to have.  
easy to extend if more space is needed for a given guest.

i followed this how-to below but interpolated my own needs into it and it 
worked great the first time out. now each guest is limited to  a 10g 'hdd'. 
on my next round of installs some will be a 40g etc...and it doesn't place 
any extra responsibility on the kernel for quotas or anything.

http://www.gentoo.org/doc/en/lvm2.xml

although the doc is written for gentoo, the information in it is not gentoo 
specific besides how to install packages. the only other change i made was i 
did not use modules but included all lvm items needed within the kernel since 
i use monolithic kernels (not capable of loading modules). i used one volume 
which was half the raid disk system i have set aside for this, leaving the 
other half to be used sometime in the future as needed. i then used the file 
system i wanted for each guest on each virtual volume.

i made a small /vservers home mount point and then mounted the individual 
guest disks within that so it is all well separated from the host.  the final 
tree looks like this now with each volume/mount point the name of the guest:


/dev/sda6 9.4G  516M  8.9G   6% /vservers
/dev/mapper/vg-colossus  10G  429M  9.6G   5% /vservers/colossus
/dev/mapper/vg-nagios  10G  371M  9.7G   4% /vservers/nagios
/dev/mapper/vg-ns  10G  352M  9.7G   4% /vservers/ns
/dev/mapper/vg-ns110G  342M  9.7G   4% /vservers/ns1
/dev/mapper/vg-ns210G  337M  9.7G   4% /vservers/ns2
/dev/mapper/vg-prometheus10G  703M  9.4G   7% /vservers/prometheus
/dev/mapper/vg-usage10G  528M  9.5G   6% /vservers/usage

that's about as close to physically partitioning the disk for each as you can 
get but any of them are easily extendable and won't pass its own boundaries 
if a rogue guest gets artistic and desides to write pretty 1 and 0 designs 
all over the 'disk'. :) .

this was my first attempt with lvm and i honestly now cannot say how i lived 
without it before. :)

 And how LVM could assist in limiting disk space of each guest server? (If by
 any means)
 
 Please assist me in this attempt.
 Thanks.
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Matt Gorecki

Steven,

I think this is the page you are looking for:  
http://linux-vserver.org/Disk+Limits


I have the exact same situation as you, and this works wonderfully.

-Matt Gorecki


Steven Truong 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


[Vserver] I would like to know how to build a FC4 template

2005-10-18 Thread Steven Truong
Hi, all. It is a good idea to build a guest server with basic all
around apps and then clone this basic server to other guest of the same
distribution, in my case FC4. Then for each clone, I would be able to
add specific apps to it.

For this matter, I could not find enough information to try. It
seems like for Gentoo distribution
http://www.gentoo.org/doc/en/vserver-howto.xml shows that you can tar
the whole guest server and then reuse this tarball.

I also found vserver-copy and read the man page and tried this on my
configured guest server. I got the following error trying to copy my
lanweb FC4 guest server to a newtest guest server:

vserver-copy -v lanweb/ newtest
I: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 PDT 2005
newtest
E: vserver-copy: Vserver file /etc/vservers/lanweb/.conf does not exist

Coudl somebody tell me what .conf file and where/how to configure/find
it? Is it the same file with /etc/vservers/lanweb/lanweb.conf
file. Currently, I disabled/do not have this lanweb.conf file.
In the man page, it also mention about /etc/vservers/vserver.conf and with my current settings, I don't have this file either.

Could someone give me some information regarding all of these .conf files? 

Thank you in advance for all your helps.
Steven.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] I would like to know how to build a FC4 template

2005-10-18 Thread smagnuson



I get the same error. I just touch an empty file 
by that name and it works. you get an error at the end indicating a issue 
with the conf file but seeing as I don't use it I have not been 
concerned.

I was under the impression that the .conf file in 
question is legacy. More experienced vserver folks should probably 
correct/confirm this.

sudo vserver vcrux02 build -m 
skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net 
--interfacexxx.xxx.xxx.xxx 
--netdev eth0 --netmask 255.255.255.0 
--initstyle plainsudo touch /etc/vservers/vcrux01.confsudo vserver-copy 
vcrux01 vcrux02

later
sig


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Steven 
  TruongSent: Tuesday, October 18, 2005 1:38 PMTo: 
  vserver@list.linux-vserver.orgSubject: [Vserver] I would like to 
  know how to build a FC4 templateHi, all. It is a 
  good idea to build a guest server with basic all around apps and then clone 
  this basic server to other guest of the same distribution, in my case FC4. 
  Then for each clone, I would be able to add specific apps to it.For 
  this matter, I could not find enough information to try. It seems like 
  for Gentoo distribution http://www.gentoo.org/doc/en/vserver-howto.xml 
  shows that you can tar the whole guest server and then reuse this 
  tarball.I also found vserver-copy and read the man page and tried this 
  on my configured guest server. I got the following error trying to copy my 
  lanweb FC4 guest server to a newtest guest server:vserver-copy -v 
  lanweb/ newtestI: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 
  PDT 2005newtestE: vserver-copy: Vserver file 
  "/etc/vservers/lanweb/.conf" does not existCoudl somebody tell me what 
  .conf file and where/how to configure/find it? Is it the same file with 
  /etc/vservers/lanweb/lanweb.conf file. Currently, I disabled/do not have 
  this lanweb.conf file.In the man page, it also mention about 
  /etc/vservers/vserver.conf and with my current settings, I don't have this 
  file either.Could someone give me some information regarding all of 
  these .conf files? Thank you in advance for all your 
  helps.Steven.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Talking about limits...

2005-10-18 Thread Michel Belleau (malaiwah.com)

Hi.

I tried limiting a vserver memory this week-end but had no luck doing it..

I tried setting the AS and RSS files in the configuration directory, but 
it doesn't seem to work the way I wanted. It kills processes (like 
apache in my tests) which need more memory than what I allowed in the 
limits.


What I would like to do is limit the usage of RAM the vserver has. It 
seems that AS and RSS limits are the total ressources of a vserver.


I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
don't want the OOM killer to restrict applications to ask for more than 
128 megs of RAM.


I know I can do it, since how does VPS using vservers work then?

--
Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.com

begin:vcard
fn:Michel Belleau
n:Belleau;Michel
org:MALAIWAH.COM;Services Informatiques
adr;quoted-printable:;;6374, avenue Royale;L'Ange-Gardien;Qu=C3=A9bec;G0A 2K0;Canada
email;internet:[EMAIL PROTECTED]
tel;work:(418) 261-6412
tel;cell:(418) 261-6412
x-mozilla-html:TRUE
url:http://www.malaiwah.com/
version:2.1
end:vcard

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] memory : free gives wrong numbers

2005-10-18 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 08:48:09PM +0200, Xavier Montagutelli wrote:
 Hello list,
 
 The free command gives me false number on vservers. Can someone reproduce 
 the same as below :
 
 *) Host
 
 linux 2.6.12.4, vs 2.0
 server memory : 5 Go
 
 *) On vserver #1 :
 
 [EMAIL PROTECTED] # free
  total   used   free   
 Mem:   5128164   13738683754296
 -/+ buffers/cache:   -30770728205236 --- negative number
 
 [EMAIL PROTECTED] # ps auxw | awk '{rss+=$6} END {print rss}'
 1991724
 
 *) On vserver #2 :
 [EMAIL PROTECTED] # free -g
   total   used free 
 Mem:4  0   4
 -/+ buffers/cache:   4091  9  --- 4To used !!
 
 *) On the host :
 
 [EMAIL PROTECTED] # free
 total   used   free 
 Mem:   5128164   4964772 163392
 -/+ buffers/cache: 5124044615760
 
 [EMAIL PROTECTED] # vps auxw | awk '$4 == vs1 {rss+=$8} END {print rss}'
 1989684
 
 So with ps on the vserver or vps on the host, vserver #1 seems to
 consume nearly 2Go of RSS. vserver-stat gives the same information.
 But free gives a negative number for used memory on the vserver #1.
 And on vserver #2, memory used is ... erk ... interesting.

yes, interesting indeed ... will look into that asap,
but I guess I need your help on that (or a machine with
more than 4GB of memory :)

 Do you think this is related to vserver, perhaps because of a total
 memory exceeding 4 Go (32 bits) ? Or is it a (known) limit of the
 free command ?

no idea yet, but we had some reports of free showing
funny values for the buffers/caches ...
(which are hard to get right, with shared resources)

best,
Herbert

 Thx
 -- 
 Xavier Montagutelli
 Service Commun Informatique
 Universite de Limoges
 Tel : +33 555457720
 Cle GPG : http://pgp.mit.edu 1024D/175CE198
 ___
 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


Re: [Vserver] I would like to know how to build a FC4 template

2005-10-18 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 01:48:49PM -0600, [EMAIL PROTECTED] wrote:
 I get the same error. I just touch an empty file by that name and it
 works. you get an error at the end indicating a issue with the conf
 file but seeing as I don't use it I have not been concerned.

 I was under the impression that the .conf file in question is legacy.
 More experienced vserver folks should probably correct/confirm this.

yes, the entire vserver-copy is legacy stuff ...

 sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname 
 vcrux02.corporate.net --interface xxx.xxx.xxx.xxx --netdev eth0 --netmask 
 255.255.255.0 --initstyle plain

if you already built the config with the above, you can 
simply do:

sudo rm -rf /vservers/vcrux02
sudo cp -va /vservers/vcrux01 /vservers/vcrux02

best,
Herbert

 sudo touch /etc/vservers/vcrux01.conf
 sudo vserver-copy vcrux01 vcrux02
  
 later
 sig
  
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steven Truong
 Sent: Tuesday, October 18, 2005 1:38 PM
 To: vserver@list.linux-vserver.org
 Subject: [Vserver] I would like to know how to build a FC4 template
 
 
 Hi, all.  It is a good idea to build a guest server with basic all around 
 apps and then clone this basic server to other guest of the same 
 distribution, in my case FC4. Then for each clone, I would be able to add 
 specific apps to it.
 
 For this matter, I could not find enough information to try.  It seems like 
 for Gentoo distribution http://www.gentoo.org/doc/en/vserver-howto.xml shows 
 that you can tar the whole guest server and then reuse this tarball.
 
 I also found vserver-copy and read the man page and tried this on my 
 configured guest server. I got the following error trying to copy my lanweb 
 FC4 guest server to a newtest guest server:
 
 vserver-copy -v lanweb/ newtest
 I: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 PDT 2005
 newtest
 E: vserver-copy: Vserver file /etc/vservers/lanweb/.conf does not exist
 
 Coudl somebody tell me what .conf file and where/how to configure/find it? Is 
 it the same file with /etc/vservers/lanweb/lanweb.conf file.  Currently, I 
 disabled/do not have this lanweb.conf file.
 In the man page, it also mention about /etc/vservers/vserver.conf and with my 
 current settings, I don't have this file either.
 
 Could someone give me some information regarding all of these .conf files? 
 
 Thank you in advance for all your helps.
 Steven.
 
 

 ___
 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


RE: [Vserver] unmount nfs with vserver

2005-10-18 Thread smagnuson

I can mount it from the host using /usr/local/etc/vservers/unixdev1/fstab but 
have not figured out how to umount (if possible)

I was able to use the bcapabilities numeric values with out getting errors on 
vserver startup.
cat /usr/local/etc/vservers/unixdev1/bcapabilities
0x0001
0x0002
0x0004

even with this I am unable to unmount the nfs filesystem when mounted from the 
host into the vserver.

when trying from inside the vserver I can not even mount the nfs filesystem
sudo mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data
mount: failed with nfs mount version 4, trying 3..
mount: permission denied
the nfs server shows
Oct 18 15:31:57 calnfs01 rpc.mountd: authenticated mount request from 
unixdev1.corporate.net:783 for /nfs_unix_data (/nfs_unix_data)
Oct 18 15:31:57 calnfs01 rpc.mountd: authenticated mount request from 
unixdev1.corporate.net:787 for /nfs_unix_data (/nfs_unix_data)


I have been working on this from several angles to no avail.  Is anyone else 
mounting nfs into a vserver?  How are you doing it?  Are you able to umount it 
afterwards?


thanks
sig





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Magnuson,
Sig
Sent: Tuesday, October 18, 2005 11:50 AM
To: vserver@list.linux-vserver.org
Subject: RE: [Vserver] unmount nfs with vserver


I have done the following but am getting a error
sudo vi /usr/local/etc/vservers/caloratst01/bcapabilities
VXC_SECURE_MOUNT
VXC_SECURE_REMOUNT
VXC_BINARY_MOUNT

I also tried:
SECURE_MOUNT
SECURE_REMOUNT
BINARY_MOUNT

I am getting the following error on vserver startup
sudo vserver caloratst01 start
Unknown bcap 'VXC_SECURE_MOUNT'

An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
  method knows how to deal with this, but on existing installations,
  appending 'true' to this file will help.

Failed to start vserver 'caloratst01'

Have I got the syntax of the file wrong?


-Original Message-
From: Herbert Poetzl [mailto:[EMAIL PROTECTED]
Sent: Friday, October 14, 2005 11:18 AM
To: Magnuson, Sig
Cc: vserver@list.linux-vserver.org
Subject: Re: [Vserver] unmount nfs with vserver


On Fri, Oct 14, 2005 at 10:42:49AM -0600, [EMAIL PROTECTED] wrote:
 A while back I posted to the list about mounting nfs filesystem into a
 vserver. The only suggestion that I could get to work was adding the
 mount to fstab on host system.

 IE:
 cat /usr/local/etc/vservers/unixdev1/fstab
 none/proc   procdefaults0 0
 none/tmptmpfs   size=64m,mode=1777  0 0
 none/dev/ptsdevpts  gid=5,mode=620  0 0
 # added Sept 14, 2005 - common unix NFS filesystem -sig
 calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0
 
 The one issue I came across was that I could not find a way to umount
 the NFS filesystem
 ssh unixdev1
 sudo umount /unix_data
 umount: /unix_data: must be superuser to umount
 umount: /unix_data: must be superuser to umount

hmm, looks like you are missing one of the
context capabilities for secure mount ...

#define VXC_SECURE_MOUNT0x0001
#define VXC_SECURE_REMOUNT  0x0002
#define VXC_BINARY_MOUNT0x0004

 I thought I would be fine with it that way but it turns out it is a
 bigger issue than I thought. Any suggestions on how to umount the NFS
 filesystem?

unmounting on the host should work quite fine ...

best,
Herbert

 I have access to host and vserver.
 thanks
 sig
 
 
 
 sudo ./vserver-testme.sh
 Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl
 chcontext is working.
 chbind is working.
 Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0)
 VCI:  0002:0001 273 0316
 ---
 [000]# succeeded.
 [001]# succeeded.
 [011]# succeeded.
 [031]# succeeded.
 [101]# succeeded.
 [102]# succeeded.
 [201]# succeeded.
 [202]# succeeded.
 
 sudo vserver-info
 Versions:
Kernel: 2.6.12.4-vs2.0
VS-API: 0x00020001
  util-vserver: 0.30.208; Aug 24 2005, 21:26:20
 
 Features:
CC: gcc, gcc (GCC) 3.4.3 (CRUX)
   CXX: g++, g++ (GCC) 3.4.3 (CRUX)
  CPPFLAGS: ''
CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W 
 -funit-at-a-time'
  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W 
 -fmessage-length=0 -
 funit-at-a-time'
build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
  Use dietlibc: yes
Build C++ programs: yes
Build C99 programs: yes
Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
 ext2fs Source: e2fsprogs
 syscall(2) invocation: alternative
   vserver(2) syscall#: 273/glibc
 
 Paths:
prefix: /usr/local
 sysconf-Directory: ${prefix}/etc

Re: [Vserver] I would like to know how to build a FC4 template

2005-10-18 Thread Guenther Fuchs
Hi there,

on Tuesday, October 18, 2005 at 21:38 on the list was posted:

  For this matter, I could not find enough information to try.  It
 seems like for Gentoo distribution
 http://www.gentoo.org/doc/en/vserver-howto.xml shows that you can
 tar the whole guest server and then reuse this tarball.

Same you can dow with a FC4 guest (must be stopped before tar'ing ...)

  Coudl somebody tell me what .conf file and where/how to
 configure/find it?

The configurations for each guest ist found at /etc/vservser/vsname
- described detailed in the flower page - and should be changed for
each new vserver accordingly. Make sure to minimum change the
interfaces, uts/name files and also the symlink pointers of run and
vdir properly.

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] unmount nfs with vserver

2005-10-18 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 11:50:22AM -0600, [EMAIL PROTECTED] wrote:
 I have done the following but am getting a error
 sudo vi /usr/local/etc/vservers/caloratst01/bcapabilities
 VXC_SECURE_MOUNT
 VXC_SECURE_REMOUNT
 VXC_BINARY_MOUNT
 
 I also tried:
 SECURE_MOUNT
 SECURE_REMOUNT
 BINARY_MOUNT
 
 I am getting the following error on vserver startup
 sudo vserver caloratst01 start
 Unknown bcap 'VXC_SECURE_MOUNT'

first, the context capabilities are the ccapabilities,
second, you can find a list of names linked from the
flower page or, with a nice description, here:

http://linux-vserver.org/Caps+and+Flags

HTH,
Herbert

 An error occured while executing the vserver startup sequence; when
 there are no other messages, it is very likely that the init-script
 (/sbin/init) failed.
 
 Common causes are:
 * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
   method knows how to deal with this, but on existing installations,
   appending 'true' to this file will help.
 
 Failed to start vserver 'caloratst01'
 
 Have I got the syntax of the file wrong?
 
 
 -Original Message-
 From: Herbert Poetzl [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 14, 2005 11:18 AM
 To: Magnuson, Sig
 Cc: vserver@list.linux-vserver.org
 Subject: Re: [Vserver] unmount nfs with vserver
 
 
 On Fri, Oct 14, 2005 at 10:42:49AM -0600, [EMAIL PROTECTED] wrote:
  A while back I posted to the list about mounting nfs filesystem into a
  vserver. The only suggestion that I could get to work was adding the
  mount to fstab on host system.
 
  IE:
  cat /usr/local/etc/vservers/unixdev1/fstab
  none/proc   procdefaults0 0
  none/tmptmpfs   size=64m,mode=1777  0 0
  none/dev/ptsdevpts  gid=5,mode=620  0 0
  # added Sept 14, 2005 - common unix NFS filesystem -sig
  calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0   0
  
  The one issue I came across was that I could not find a way to umount
  the NFS filesystem
  ssh unixdev1
  sudo umount /unix_data
  umount: /unix_data: must be superuser to umount
  umount: /unix_data: must be superuser to umount
 
 hmm, looks like you are missing one of the
 context capabilities for secure mount ...
 
 #define VXC_SECURE_MOUNT0x0001
 #define VXC_SECURE_REMOUNT  0x0002
 #define VXC_BINARY_MOUNT0x0004
 
  I thought I would be fine with it that way but it turns out it is a
  bigger issue than I thought. Any suggestions on how to umount the NFS
  filesystem?
 
 unmounting on the host should work quite fine ...
 
 best,
 Herbert
 
  I have access to host and vserver.
  thanks
  sig
  
  
  
  sudo ./vserver-testme.sh
  Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl
  chcontext is working.
  chbind is working.
  Linux 2.6.12.4-vs2.0 i686/0.30.208/0.30.208 [Ea] (0)
  VCI:  0002:0001 273 0316
  ---
  [000]# succeeded.
  [001]# succeeded.
  [011]# succeeded.
  [031]# succeeded.
  [101]# succeeded.
  [102]# succeeded.
  [201]# succeeded.
  [202]# succeeded.
  
  sudo vserver-info
  Versions:
 Kernel: 2.6.12.4-vs2.0
 VS-API: 0x00020001
   util-vserver: 0.30.208; Aug 24 2005, 21:26:20
  
  Features:
 CC: gcc, gcc (GCC) 3.4.3 (CRUX)
CXX: g++, g++ (GCC) 3.4.3 (CRUX)
   CPPFLAGS: ''
 CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W 
  -funit-at-a-time'
   CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W 
  -fmessage-length=0 -
  funit-at-a-time'
 build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
   Use dietlibc: yes
 Build C++ programs: yes
 Build C99 programs: yes
 Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
  ext2fs Source: e2fsprogs
  syscall(2) invocation: alternative
vserver(2) syscall#: 273/glibc
  
  Paths:
 prefix: /usr/local
  sysconf-Directory: ${prefix}/etc
  cfg-Directory: ${prefix}/etc/vservers
   initrd-Directory: $(sysconfdir)/init.d
 pkgstate-Directory: ${prefix}/var/run/vservers
  Kernelheaders: /lib/modules/2.6.12.4-vs2.0/build/include
vserver-Rootdir: /vservers
  
  
  Assumed 'SYSINFO' as no other option given; try '--help' for more 
  information.
  
  
  ___
  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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Re: I would like to know how to build a FC4 template

2005-10-18 Thread Steven Truong
Hi, all. Thanks for your answers. Thank smagnuson and
Mr. Poetzl . As Mr. Poetzl suggested by those two commands, then
we just build one guest server and then (hard) copy by: 'cp -va'
the whole guest server to the new one. Is it possible that we
bypass the user-space commands/utilities to clone a guest this way? If
so, then wonderful. 
Btw, is it the best possible and portable way?
 
Thanks.On 10/18/05, Steven Truong [EMAIL PROTECTED] wrote:
Hi, all. It is a good idea to build a guest server with basic all
around apps and then clone this basic server to other guest of the same
distribution, in my case FC4. Then for each clone, I would be able to
add specific apps to it.

For this matter, I could not find enough information to try. It
seems like for Gentoo distribution
http://www.gentoo.org/doc/en/vserver-howto.xml shows that you can tar
the whole guest server and then reuse this tarball.

I also found vserver-copy and read the man page and tried this on my
configured guest server. I got the following error trying to copy my
lanweb FC4 guest server to a newtest guest server:

vserver-copy -v lanweb/ newtest
I: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 PDT 2005
newtest
E: vserver-copy: Vserver file /etc/vservers/lanweb/.conf does not exist

Coudl somebody tell me what .conf file and where/how to configure/find
it? Is it the same file with /etc/vservers/lanweb/lanweb.conf
file. Currently, I disabled/do not have this lanweb.conf file.
In the man page, it also mention about /etc/vservers/vserver.conf and with my current settings, I don't have this file either.

Could someone give me some information regarding all of these .conf files? 

Thank you in advance for all your helps.
Steven.


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Steven Truong
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 [EMAIL PROTECTED] 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


Re: [Vserver] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 08:06 pm, Steven Truong 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.
 

i think you may be able to create logical volumes within the one large logical 
volume :)

on mine, yeah the partition i created to put the guests is simply a volume 
group, but as far as i know, as long as the /vservers is mounted first, you 
can mount additional logical partitions within it.


 Best regards,
 Steven.
 *
 On 10/18/05, Steven Truong [EMAIL PROTECTED] 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.
 
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 08:06 pm, Steven Truong 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)?
 

hmm.. i believe you might get away with placing the context number in the 
correct files and locations within the /etc/vserers definitions. 


 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 [EMAIL PROTECTED] 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.
 
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 08:11 pm, Chuck wrote:
 On Tuesday 18 October 2005 08:06 pm, Steven Truong 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.
  
 
 i think you may be able to create logical volumes within the one large 
logical 
 volume :)
 

the reason why i say this is lvm appears to just be an application interface 
method of the manual way of using dd to create a large file then associating 
that file via the mapper and the loopx devices then initializinig a file 
system on it and then mounting it...  using this manual approach i have 
created a master encrypted 'disk' with several  volumes inside it and 
successfully mounted each with no problem... copying the one large master 
file backs up the entire subsystem i created inside as well...so if lvm is in 
fact an application that manipulates this type of setup, then you should be 
able to create volumes within a volume.


 on mine, yeah the partition i created to put the guests is simply a volume 
 group, but as far as i know, as long as the /vservers is mounted first, you 
 can mount additional logical partitions within it.
 
 
  Best regards,
  Steven.
  *
  On 10/18/05, Steven Truong [EMAIL PROTECTED] 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.
  
  
 
 -- 
 
 Chuck
 
 ...and the hordes of M$*ft users descended upon me in their anger,
 and asked 'Why do you not get the viruses or the BlueScreensOfDeath
 or insecure system troubles and slowness or pay through the nose 
 for an OS as *we* do?!!', and I answered...'I use Linux'. 
 The Book of John, chapter 1, page 1, and end of book
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Steven Truong
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
IPROOTMASK=255.255.255.0
IPROOTDEV=eth1
S_HOSTNAME=lanweb
S_DOMAINNAME=none

>
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 [EMAIL PROTECTED] 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 
[EMAIL PROTECTED] 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] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Steven Truong
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.

[EMAIL PROTECTED] 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
?- ? ?
?
? ?
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
-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
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
IPROOTMASK=255.255.255.0
IPROOTDEV=eth1
S_HOSTNAME=lanweb
S_DOMAINNAME=none

>
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 

Re: [Vserver] Re: Quota for guest servers on /vservers, /vservers is on LVM ext3

2005-10-18 Thread Chuck
On Tuesday 18 October 2005 09:28 pm, Steven Truong wrote:

what version of vserver are you running? 2.0.x?

for mine, im running 2.1.0-rc4 and i have a context file inside guestname 
here is the directory layout for the first level that i have for a guest 
named colossus.. below that is the context file typed out with the context id 
i assigned it
dell colossus # ls -l
drwxr-xr-x  3 root root  72 Oct  9 17:43 apps
-rw-r--r--  1 root root   5 Oct  9 17:43 context
-rw-r--r--  1 root root  13 Oct 18 10:03 flags
-rw-r--r--  1 root root 261 Oct 10 05:32 fstab
drwxr-xr-x  3 root root  72 Oct  9 17:43 interfaces
-rw-r--r--  1 root root   9 Oct  9 17:43 name
lrwxrwxrwx  1 root root  26 Oct  9 17:43 run - /var/run/vservers/colossus
drwxr-xr-x  2 root root 112 Oct  9 21:21 scripts
drwxr-xr-x  2 root root  72 Oct  9 17:43 uts
lrwxrwxrwx  1 root root  41 Oct  9 17:43 vdir 
- /etc/vservers/.defaults/vdirbase/colossus
dell colossus # cat context
3905
dell colossus #


is your structure similar? 


 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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.
  
 
 
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver