Re: [vserver] What is the right way to copy a runnig vserver ?

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 15 Mar 2011 - 19:00:47 GMT
Message-ID: <20110315190047.GD6719@MAIL.13thfloor.at>

On Tue, Mar 15, 2011 at 07:12:19PM +0100, Sam Przyswa wrote:

> Le 15/03/2011 16:31, Daniel Hokka Zakrisson a écrit :
>> Sam Przyswa wrote:

>>> Hi,

>>> What is the right way to copy a running vserver ?

>>> The google search talk about vserver-copy but I haven't this
>>> utility on my system and an apt-file search give nothing.

>>> I use Debian 5.0 and 2.6.32-bpo.4-vserver-686-bigmem kernel.

>>> Thanks for your help.

>> Depends on what you want to do. If you're moving a guest and
>> want as small of a downtime window as possible, I'd suggest:

>> rsync -HzaxvP --numeric-ids /vservers/<guest>/
>> root@server:/vservers/<guest>/ rsync -HzaxvP --numeric-ids
>> /vservers/<guest>/ root@server:/vservers/<guest>/
>> vserver<guest> stop rsync -HzaxvP --numeric-ids
>> /vservers/<guest>/ root@server:/vservers/<guest>/
>> vserver<guest> start

>> If you just want to clone one that is running, where the
>> services don't keep any significant state (i.e. no database),
>> simply use the rsync or clone build methods.

> I tried to find doc about clone build method but nothing found,
> if you have a link, thanks in advance.

vserver - build --help

    clone ... -- [-d <distribution>] --source <source> [--exclude-from <exclude-list>]
                ... clones a guest by linking unified files and copying the rest

HTH,
Herbert

> I found vcopy and vrescue but not tested yet...

> Thanks for your help.

> Sam.
Received on Tue Mar 15 19:00:59 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 15 Mar 2011 - 19:00:59 GMT by hypermail 2.1.8