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

2005-10-19 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 06:28:13PM -0700, Steven Truong 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

a few comments here ...

 - the config you use (one config file) is called legacy
   config and was replaced (about a year ago) by a new,
   tree-based config

> IPROOT="192.168.0.78"
> IPROOTMASK="255.255.255.0"
> IPROOTDEV="eth1"

- specifying the network in this way _might_ have some
  unexpected sideeffects if you decide to add new ips

> S_HOSTNAME="lanweb"
> S_DOMAINNAME="none"

- you probably do not use yellow pages (nis) so the
  S_DOMAINNAME does not really make sense

> ONBOOT="no"
> S_CAPS="CAP_NET_RAW"

- you give RAW network access, which basically allows
  any guest root to sniff all your traffic on eth1

> S_CONTEXT=10

- this is fine, a restart (given that the tools even
  look at your config file) will use the xid=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?

guess that was answered above ...

> 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.

if you use a newstyle config (tree) then you would
simply do

 echo "10" >/etc/vservers/lanweb/context

and restart the guest with

 vserver lanweb restart

HTH,
Herbert

PS: output of testme.sh (see testing basic functionality)
would have been very useful in telling _what_ you actually 
use ...

> 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 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-19 Thread Herbert Poetzl
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

> [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 other

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

2005-10-19 Thread Herbert Poetzl
On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:
> 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.

what do you mean by bypass user-space commands?

> Btw, is it the best possible and portable way?

please elaborate!

best,
Herbert

> 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.xmlshows 
> > 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] Re: I would like to know how to build a FC4 template

2005-10-19 Thread smagnuson



Herbert is the guy to listen to.  I was not aware that vserver-copy was a legacy app (now I 
know).  The next time I build a vserver I'll use:
 
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
sudo rm -rf /vservers/vcrux02
sudo cp -va /vservers/vcrux01 /vservers/vcrux02
 OR 
sudo rsync -av /vservers/vcrux01/ 
/vservers/vcrux02
 OR
any other means you desire
 
 
later
sig
 
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Steven 
  TruongSent: Tuesday, October 18, 2005 5:55 PMTo: 
  vserver@list.linux-vserver.orgSubject: [Vserver] Re: I would like 
  to know how to build a FC4 templateHi, 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/ 
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


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

2005-10-19 Thread Matt Gorecki

I specified the context in /etc/vservers/vservername/context

Then chgxid the /vservers/vservername directory to match and you should 
be good to go.


Matt


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)?




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.

  


  


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


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

2005-10-19 Thread Steven Truong
Hi, Mr. Poetzl.  Thanks for answering my question.  

Regarding the user-space command, ah, maybe I did not think it through
when I wrote that.  But my concern is that once you hard copy a
guest server, then you still need to copy/create /etc/vservers/newtest,
where newtest is the name of the newly copied server /vservers/newtest.
Basically, by copying by hand, users have to take of these steps???

Or should you suggest to use vserver-copy, then delete
/vservers/newtest, then hard-copy.  Because my guess is that
vserver-copy would take care some of the works regarding configuration
files.  

I have troubles carrying out some of the steps because I just don't
know which of which is legacy or new.  I have tried to absord as
much infor as possible but I am sure I might forget some of the
readings.

Could you suggest or point to document(s) that describe(s) correct ways of doing these things?

Thanks for sharing your knowledge.
Steven.On 10/19/05, Herbert Poetzl <[EMAIL PROTECTED]> wrote:
On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:> 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.what do you mean by bypass user-space commands?
> Btw, is it the best possible and portable way?please elaborate!best,Herbert> 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.xmlshows 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] Re: I would like to know how to build a FC4 template

2005-10-19 Thread smagnuson




# This command creates the config 
dirs/files (/etc/vservers/vserver-name/) and base vserver home 
/vservers/vserver-name/)
sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 
--hostname vcrux02.corporate.net --interface 192.168.xxx.xxx --netdev eth0 --netmask 
255.255.255.0 --initstyle plain
 
# other options would be to copy a 
existing vserver config to the new vserver and modify by hand using your fav 
text editor (vi, etc)
sudo cp -rp /etc/vservers/vcrux01 
/etc/vservers/vcrux02
 
# Here is a complete 
example:

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
sudo rm -rf /vservers/vcrux02
sudo cp -va /vservers/vcrux01 /vservers/vcrux02
 
# Here's another 
way
sudo cp 
-rp /etc/vservers/vcrux01 
/etc/vservers/vcrux02
# edit/confirm config files (sudo vi 
/etc/vservers/vcrux02/..)
sudo cp -va /vservers/vcrux01 
/vservers/vcrux02
 
Give the above examples a try.  
Replace the paths/dirs to match your situation.
 
later
sig
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Steven 
  TruongSent: Wednesday, October 19, 2005 11:23 AMTo: 
  Steven Truong; vserver@list.linux-vserver.orgSubject: Re: [Vserver] 
  Re: I would like to know how to build a FC4 templateHi, 
  Mr. Poetzl.  Thanks for answering my question.  Regarding 
  the user-space command, ah, maybe I did not think it through when I wrote 
  that.  But my concern is that once you hard copy a guest server, then you 
  still need to copy/create /etc/vservers/newtest, where newtest is the name of 
  the newly copied server /vservers/newtest.Basically, by copying by hand, 
  users have to take of these steps???Or should you suggest to use 
  vserver-copy, then delete /vservers/newtest, then hard-copy.  Because my 
  guess is that vserver-copy would take care some of the works regarding 
  configuration files.  I have troubles carrying out some of the 
  steps because I just don't know which of which is legacy or new.  I have 
  tried to absord as much infor as possible but I am sure I might forget some of 
  the readings.Could you suggest or point to document(s) that 
  describe(s) correct ways of doing these things?Thanks for sharing your 
  knowledge.Steven.
  On 10/19/05, Herbert 
  Poetzl <[EMAIL PROTECTED]> wrote:
  On 
Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:> 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.what do you 
mean by bypass user-space commands? > Btw, is it the best 
possible and portable way?please 
elaborate!best,Herbert> 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.xmlshows 
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-19 Thread smagnuson

Ok my plan is to be able to mount/umount nfs disk from inside the 
guest/vserver.  I'm still getting a permission denied.

#Now that I have the ccaps in place properly (i hope)
cat /usr/local/etc/vservers/unixdev1/ccapabilities
SECURE_MOUNT
SECURE_REMOUNT
BINARY_MOUNT

#I have my nfs disk exported to both host and guest (/etc/exports)

#On the guest I have portmap and rpc.statd running

#This command takes a couple of minutes to return
mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data
mount: failed with nfs mount version 4, trying 3..
mount: permission denied

#Our nfs server reports this
Oct 19 11:44:31 calnfs01 rpc.mountd: authenticated mount request from 
unixdev1.corporate.net:965 for /nfs_unix_data (/nfs_unix_data)
Oct 19 11:44:31 calnfs01 rpc.mountd: authenticated mount request from 
unixdev1.corporate.net:969 for /nfs_unix_data (/nfs_unix_data)

#I am able to contact the NFS server from the vserver
rpcinfo -p calnfs01
   program vers proto   port
102   tcp111  portmapper
102   udp111  portmapper
1000241   udp  32768  status
1000241   tcp  32768  status
132   udp   2049  nfs
133   udp   2049  nfs
132   tcp   2049  nfs
133   tcp   2049  nfs
1000211   udp  32771  nlockmgr
1000213   udp  32771  nlockmgr
1000214   udp  32771  nlockmgr
1000211   tcp  32769  nlockmgr
1000213   tcp  32769  nlockmgr
1000214   tcp  32769  nlockmgr
151   udp926  mountd
151   tcp929  mountd
152   udp926  mountd
152   tcp929  mountd
153   udp926  mountd
153   tcp929  mountd
3901131   tcp   7937

#Here is a strace of the mount
strace mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data
execve("/bin/mount", ["mount", "-v", "-t", "nfs", 
"calnfs01.corporate.net:/nfs_u"..., "/unix_data"], [/* 30 vars */]) = 0
uname({sys="Linux", node="unixdev1", ...}) = 0
brk(0)  = 0x8057000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libblkid.so.1", O_RDONLY)= -1 ENOENT (No such file or directory)
open("libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/sig/lib/tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/home/sig/lib/tls/i686", 0xbf9db988) = -1 ENOENT (No such file or 
directory)
open("/home/sig/lib/tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/sig/lib/tls", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/home/sig/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/sig/lib/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/home/sig/lib/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/sig/lib", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/usr/lib/tls/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/usr/lib/tls", 0xbf9db988)  = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/usr/lib/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/usr/lib/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/lib/tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/lib/tls/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/lib/tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbf9db988)  = -1 ENOENT (No such file or directory)
open("/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/lib/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/lib/libblkid.so.1", O_RDONLY)= 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\34"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=28172, ...}) = 0
mmap2(NULL, 30740, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7fc2000
mmap2(0xb7fc9000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7fc9000
close(3)= 0
open("tls/i686/libuuid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/libuuid.so.1", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("i686/libuuid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libuuid.so.

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

2005-10-19 Thread Steven Truong
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 0216
---
[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 <[EMAIL PROTECTED]> 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 resultis simple unuseable for normal purposes(i.e. you do not want to change all files to the newcontext every time you start the guest, because it
just doesn't make much sense, and destroys contextinformation anyway)again, I have no idea what tagging format and kernelor patches you are using .. please provide the outputof testme.sh for more details ...
http://vserver.13thfloor.at/Stuff/SCRIPT/testme.shTIA,Herbert> [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> [EM

RE: [Vserver] unmount nfs with vserver

2005-10-19 Thread smagnuson

Ok I have NFS working as following.  Any comments/concerns doing it this way?

#I mount this filesystem manually without a vserver restart from the root/host
sudo vnamespace -e 100 mount -t nfs calnfs01.corporate.net:/nfs_unix_data 
/vservers/unixdev1/unix_data

#I can unmount this filesystem manually without a vserver restart from the 
root/host
sudo vnamespace -e 100 umount /vservers/unixdev1/unix_data

#the outstanding issue is that you can only see the mount on the host/root (df 
-k).  The disk values are incorrect.  It seems to mimic the preceding df entry
df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/ide/host1/bus0/target0/lun0/part9
   58G   22G   34G  39% /vservers
calnfs01.corporate.net:/nfs_unix_data
   58G   22G   34G  39% /vservers/unixdev1/unix_data

#the nfs disk is actually 100G in size with 64M used
#it seems useable so far



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Magnuson,
Sig
Sent: Wednesday, October 19, 2005 12:05 PM
To: vserver@list.linux-vserver.org
Subject: RE: [Vserver] unmount nfs with vserver



Ok my plan is to be able to mount/umount nfs disk from inside the 
guest/vserver.  I'm still getting a permission denied.

#Now that I have the ccaps in place properly (i hope)
cat /usr/local/etc/vservers/unixdev1/ccapabilities
SECURE_MOUNT
SECURE_REMOUNT
BINARY_MOUNT

#I have my nfs disk exported to both host and guest (/etc/exports)

#On the guest I have portmap and rpc.statd running

#This command takes a couple of minutes to return
mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data
mount: failed with nfs mount version 4, trying 3..
mount: permission denied

#Our nfs server reports this
Oct 19 11:44:31 calnfs01 rpc.mountd: authenticated mount request from 
unixdev1.corporate.net:965 for /nfs_unix_data (/nfs_unix_data)
Oct 19 11:44:31 calnfs01 rpc.mountd: authenticated mount request from 
unixdev1.corporate.net:969 for /nfs_unix_data (/nfs_unix_data)

#I am able to contact the NFS server from the vserver
rpcinfo -p calnfs01
   program vers proto   port
102   tcp111  portmapper
102   udp111  portmapper
1000241   udp  32768  status
1000241   tcp  32768  status
132   udp   2049  nfs
133   udp   2049  nfs
132   tcp   2049  nfs
133   tcp   2049  nfs
1000211   udp  32771  nlockmgr
1000213   udp  32771  nlockmgr
1000214   udp  32771  nlockmgr
1000211   tcp  32769  nlockmgr
1000213   tcp  32769  nlockmgr
1000214   tcp  32769  nlockmgr
151   udp926  mountd
151   tcp929  mountd
152   udp926  mountd
152   tcp929  mountd
153   udp926  mountd
153   tcp929  mountd
3901131   tcp   7937

#Here is a strace of the mount
strace mount -v -t nfs calnfs01.corporate.net:/nfs_unix_data /unix_data
execve("/bin/mount", ["mount", "-v", "-t", "nfs", 
"calnfs01.corporate.net:/nfs_u"..., "/unix_data"], [/* 30 vars */]) = 0
uname({sys="Linux", node="unixdev1", ...}) = 0
brk(0)  = 0x8057000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libblkid.so.1", O_RDONLY)= -1 ENOENT (No such file or directory)
open("libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/sig/lib/tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/home/sig/lib/tls/i686", 0xbf9db988) = -1 ENOENT (No such file or 
directory)
open("/home/sig/lib/tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/sig/lib/tls", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/home/sig/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/sig/lib/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/home/sig/lib/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/home/sig/lib", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/usr/lib/tls/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/usr/lib/tls", 0xbf9db988)  = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/usr/lib/i686", 0xbf9db988) = -1 ENOENT (No such file or directory)
open("/usr/lib/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/lib/tls/i686/li

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

2005-10-19 Thread Herbert Poetzl
On Wed, Oct 19, 2005 at 10:23:25AM -0700, Steven Truong wrote:
> Hi, Mr. Poetzl. Thanks for answering my question.
> 
> Regarding the user-space command, ah, maybe I did not think
> it through when I wrote that. But my concern is that once you
> hard copy a guest server, then you still need to copy/create
> /etc/vservers/newtest, where newtest is the name of the newly copied
> server /vservers/newtest. Basically, by copying by hand, users have to
> take of these steps???
>
> Or should you suggest to use vserver-copy, then delete
> /vservers/newtest, then hard-copy. Because my guess is that
> vserver-copy would take care some of the works regarding configuration
> files.

no forget about vserver-copy, you create the config with
the skeleton build method, the only missing thing then is
the actual guest data, which you copy over with the cp -a

> I have troubles carrying out some of the steps because I just don't
> know which of which is legacy or new. I have tried to absord as much
> infor as possible but I am sure I might forget some of the readings.

it's quite simple actually ...

 LEGACY: util-vserver 0.3x, vserver 0.3x, 2.4 kernel + vs1.0/vs1.2
 this uses the 'single file' config with IPROOT and friends

 New/Current: util-vserver 0.30.20x, 2.6 kernel +vs2.0
 note: (alpha) util-vserver and newstyle work quite fine
 on 2.4 kernels too ...

> Could you suggest or point to document(s) that describe(s) correct
> ways of doing these things?

most tool info is on http://linux-vserver.org/alpha+util-vserver

> Thanks for sharing your knowledge.

you're welcome!

best,
Herbert

> Steven.
> 
> On 10/19/05, Herbert Poetzl <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:
> > > 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.
> >
> > what do you mean by bypass user-space commands?
> >
> > > Btw, is it the best possible and portable way?
> >
> > please elaborate!
> >
> > best,
> > Herbert
> >
> > > 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.xmlshows 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

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


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

2005-10-19 Thread Steven Truong
Thanks Mr. Poetz.  I am by no mean suspecting your methods in anyway regarding building/cloning guest servers.  

Btw, thanks to smagnuson.  I just finished cloning guest servers.  

Now, I am into figuring out how to unify all these things.  Silly
right? Because we use hard copy so in a scence it does not waste too
much space.  However, after cloning, my 2 guest servers use about
twice the  previous space.

Anyway, space is not so much an issue for me, I can live with the current settings, however, it would be great to know.

Best regards,
Steven.

PS.  It've seemed like when I tried to access the mailing list,
I've not seen the most up to date messages.  It's been like around
this time of day, the mailing list got updated.  I did not
subcribe to receive directly from the mailing list, so I did not see
all the answers.  Cheers.On 10/19/05, Herbert Poetzl <[EMAIL PROTECTED]> wrote:
On Wed, Oct 19, 2005 at 10:23:25AM -0700, Steven Truong wrote:> Hi, Mr. Poetzl. Thanks for answering my question.>> Regarding the user-space command, ah, maybe I did not think> it through when I wrote that. But my concern is that once you
> hard copy a guest server, then you still need to copy/create> /etc/vservers/newtest, where newtest is the name of the newly copied> server /vservers/newtest. Basically, by copying by hand, users have to
> take of these steps???>> Or should you suggest to use vserver-copy, then delete> /vservers/newtest, then hard-copy. Because my guess is that> vserver-copy would take care some of the works regarding configuration
> files.no forget about vserver-copy, you create the config withthe skeleton build method, the only missing thing then isthe actual guest data, which you copy over with the cp -a> I have troubles carrying out some of the steps because I just don't
> know which of which is legacy or new. I have tried to absord as much> infor as possible but I am sure I might forget some of the readings.it's quite simple actually ... LEGACY: util-vserver 
0.3x, vserver 0.3x, 2.4 kernel + vs1.0/vs1.2 this uses the 'single file' config with IPROOT and friends New/Current: util-vserver 0.30.20x, 2.6 kernel +vs2.0 note: (alpha) util-vserver and newstyle work quite fine
 on 2.4 kernels too ...> Could you suggest or point to document(s) that describe(s) correct> ways of doing these things?most tool info is on 
http://linux-vserver.org/alpha+util-vserver> Thanks for sharing your knowledge.you're welcome!best,Herbert> Steven.>> On 10/19/05, Herbert Poetzl <
[EMAIL PROTECTED]> wrote:> >> > On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:> > > 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.> >> > what do you mean by bypass user-space commands?> >> > > Btw, is it the best possible and portable way?> >
> > please elaborate!> >> > best,> > Herbert> >> > > 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.xmlshows 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 mail

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

2005-10-19 Thread Herbert Poetzl
On Wed, Oct 19, 2005 at 04:57:00PM -0700, Steven Truong wrote:
> Thanks Mr. Poetz. I am by no mean suspecting your methods in anyway
> regarding building/cloning guest servers.
> 
> Btw, thanks to smagnuson. I just finished cloning guest servers.
> 
> Now, I am into figuring out how to unify all these things. Silly right?
> Because we use hard copy so in a scence it does not waste too much space.
> However, after cloning, my 2 guest servers use about twice the previous
> space.

hmm, with the given commands, you did a plain copy
(I guess) so no shared data, unification of the guest
with vunify or even better vhashify is a second step
you want to do before starting the guest ...

alternatively with the CoW features of 2.1.x, you
can simply change the cp -va to cp -la, and make sure
that the guest has _all_ files marked as unified, the
CoW link breaking will take care of the rest, but keep
in mind, it's a development/experimental feature :)

> Anyway, space is not so much an issue for me, I can live with the
> current settings, however, it would be great to know.
> 
> Best regards,
> Steven.
> 
> PS. It've seemed like when I tried to access the mailing list, I've not seen
> the most up to date messages. It's been like around this time of day, the
> mailing list got updated. I did not subcribe to receive directly from the
> mailing list, so I did not see all the answers. Cheers.

Paul's archives should be almost realtime ...

best,
Herbert

> On 10/19/05, Herbert Poetzl <[EMAIL PROTECTED]> wrote:
> >
> > On Wed, Oct 19, 2005 at 10:23:25AM -0700, Steven Truong wrote:
> > > Hi, Mr. Poetzl. Thanks for answering my question.
> > >
> > > Regarding the user-space command, ah, maybe I did not think
> > > it through when I wrote that. But my concern is that once you
> > > hard copy a guest server, then you still need to copy/create
> > > /etc/vservers/newtest, where newtest is the name of the newly copied
> > > server /vservers/newtest. Basically, by copying by hand, users have to
> > > take of these steps???
> > >
> > > Or should you suggest to use vserver-copy, then delete
> > > /vservers/newtest, then hard-copy. Because my guess is that
> > > vserver-copy would take care some of the works regarding configuration
> > > files.
> >
> > no forget about vserver-copy, you create the config with
> > the skeleton build method, the only missing thing then is
> > the actual guest data, which you copy over with the cp -a
> >
> > > I have troubles carrying out some of the steps because I just don't
> > > know which of which is legacy or new. I have tried to absord as much
> > > infor as possible but I am sure I might forget some of the readings.
> >
> > it's quite simple actually ...
> >
> > LEGACY: util-vserver 0.3x, vserver 0.3x, 2.4 kernel + vs1.0/vs1.2
> > this uses the 'single file' config with IPROOT and friends
> >
> > New/Current: util-vserver 0.30.20x, 2.6 kernel +vs2.0
> > note: (alpha) util-vserver and newstyle work quite fine
> > on 2.4 kernels too ...
> >
> > > Could you suggest or point to document(s) that describe(s) correct
> > > ways of doing these things?
> >
> > most tool info is on http://linux-vserver.org/alpha+util-vserver
> >
> > > Thanks for sharing your knowledge.
> >
> > you're welcome!
> >
> > best,
> > Herbert
> >
> > > Steven.
> > >
> > > On 10/19/05, Herbert Poetzl <[EMAIL PROTECTED]> wrote:
> > > >
> > > > On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:
> > > > > 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.
> > > >
> > > > what do you mean by bypass user-space commands?
> > > >
> > > > > Btw, is it the best possible and portable way?
> > > >
> > > > please elaborate!
> > > >
> > > > best,
> > > > Herbert
> > > >
> > > > > 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.xmlshows 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

[Vserver] VServer forum

2005-10-19 Thread Evert Meulie

Hi all!

For anyone who is interested I have created a VServer forum on my site: 
 http://vserver.meulie.net/



Regards,
Evert

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


Re: [Vserver] VServer forum

2005-10-19 Thread Herbert Poetzl
On Wed, Oct 19, 2005 at 09:09:11PM +0200, Evert Meulie wrote:
> Hi all!
> 
> For anyone who is interested I have created a VServer forum on my site: 
>  http://vserver.meulie.net/

thanks!

I changed the entry to 'Unofficial' and asked to
contact me at IRC, don't know when I will be there
actually but ML is even better ...

the main question is, do we need 'another forum'?

basically I've tried to make the ML the one and
only 'other' forum (besides the IRC channel), and
I'm not convinced that we really need one besides
that ... but I leave that to the community ...

sidenote: when I tried your forum, it was dog-slow
(which is something we could very likely improve
if there is a demand for such a kind of forum)

please let me know the reasoning behind the forum
(e.g. rationale, advantages over ML, etc ...)

don't get me wrong, I'm not vetoing this right now
I'm just trying to figure the details ...

TIA,
Herbert

> Regards,
>   Evert
> 
> ___
> 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