Re: [Vserver] What is the best method to clone a vserver from one host to another ?

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 26 Apr 2006 - 10:17:36 BST
Message-ID: <20060426091736.GA32307@MAIL.13thfloor.at>

On Wed, Apr 26, 2006 at 11:07:52AM +0200, Eugen Leitl wrote:
> On Mon, Apr 24, 2006 at 04:06:11PM +0200, Herbert Poetzl wrote:
> > On Sun, Apr 23, 2006 at 06:42:53PM +0200, Sébastien CRAMATTE wrote:
> > > Hello
> > >
> > > What is the best method to clone a vserver from one host to another ?
> > > I've tried to use vcopy script (http://www.micropp.se/vserver/). This
> > > method works localy.
> >
> > rsync or dump/restore (when you use ext2/3)
>
> Which directories need to be copied?
> /etc/vservers
> /vservers/vXY

this is where you find stuff on any sane distro

> /usr/local/etc/vservers

this is where you'll find the stuff if you
build from scratch, without specifying anything
to ./configure

> something else?

/var/lib/vservers

this is where debian will put the guests

> I'm using util-vserver-0.30.210 on debian 3.1 amd64 (kernel
> 2.6.15-amd64-smp-vs). The paths don't seem to be matching online
> documentation very well, for whatever reason. Having all the files
> in one location would be a really nice-to-have.

well, you definitely do not want to have the
config files (/etc/vservers) mixed with your
guests (/vservers) for several reasons:

 - guest can reside on separate partitions
 - config should not be accessible inside a guest
 - guests might be located everywhere, configs not

HTH,
Herbert

> > best,
> > Herbert
> >
> > PS: double check the rsync options and don't forget
> > to use --numeric-ids and --archive
>
> --
> Eugen* Leitl leitl http://leitl.org
> ______________________________________________________________
> ICBM: 48.07100, 11.36820 http://www.ativel.com
> 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
Received on Wed Apr 26 10:25:28 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 26 Apr 2006 - 10:25:34 BST by hypermail 2.1.8