OpenVZ Forum


Home » Mailing lists » Users » vzmigrate as backup
vzmigrate as backup [message #47867] Mon, 17 September 2012 15:13 Go to next message
Mark Olliver is currently offline  Mark Olliver
Messages: 11
Registered: September 2011
Junior Member
Hi.

Is there an backup option to vzmigrate. I ideally would like to use vzmigrate on a running container to back it up to another host node.

Vzmigrate looks to be a good tool to do this as I could do

vzmigrate -r no --keep-dst --online -t

But what i really need is a fine switch to say dont actually do the migration swap stage at the end.

Is there a way to do that - could it be enhanced to have that as a flag?

Thanks

Mark
Re: vzmigrate as backup [message #47869 is a reply to message #47867] Mon, 17 September 2012 15:43 Go to previous messageGo to next message
Joseph Hauptmann is currently offline  Joseph Hauptmann
Messages: 4
Registered: June 2012
Junior Member
Hi Mark,

I miss that feature as well! That combined with NOT having to use a
passwordless root ssh-certificate (whats wrong with providing ssh/rsync
the password via a prompt?) would be great! Currently I use vzdump and
vzrestore for that purpose of cloning to a different machine - beware
that the target machine should not have the VPSID of the source.

Greetings,
Joe


Am 17.09.2012 17:13, schrieb Mark Olliver:
> Hi.
>
> Is there an backup option to vzmigrate. I ideally would like to use vzmigrate on a running container to back it up to another host node.
>
> Vzmigrate looks to be a good tool to do this as I could do
>
> vzmigrate -r no --keep-dst --online -t
>
> But what i really need is a fine switch to say dont actually do the migration swap stage at the end.
>
> Is there a way to do that - could it be enhanced to have that as a flag?
>
> Thanks
>
> Mark
--
Joseph Hauptmann

/digiconcept/ - GmbH.
1080 Wien
Blindengasse 52/1

Tel. +43 1 218 0 212 - 17
Fax +43 1 218 0 212 - 10
Re: vzmigrate as backup [message #47875 is a reply to message #47869] Tue, 18 September 2012 09:18 Go to previous message
Aleksandar Ivanisevic is currently offline  Aleksandar Ivanisevic
Messages: 34
Registered: April 2011
Member
Joseph Hauptmann
<joseph.hauptmann@digiconcept.net> writes:

> Hi Mark,
>
> I miss that feature as well! That combined with NOT having to use a
> passwordless root ssh-certificate (whats wrong with providing ssh/rsync
> the password via a prompt?) would be great! Currently I use vzdump and
> vzrestore for that purpose of cloning to a different machine - beware
> that the target machine should not have the VPSID of the source.

Just do a rsync of the private area, followed by vzctl chkpnt VEID
--suspend, followed by another rsync and then vzctl chkpnt VEID
--resume, thats what the vzmigrate is doing anyway. Don't forget to copy
over veid.conf, too.

wiki has a good page how it all woerks at
http://wiki.openvz.org/Checkpointing_and_live_migration
Previous Topic: ploop and trim/ discard support
Next Topic: swap unlimited on the CT?
Goto Forum:
  


Current Time: Tue Mar 19 08:13:29 GMT 2024

Total time taken to generate the page: 0.02399 seconds