Skip to contentSkip to conversation

Xen support online backup?

DISCUSSION pengfei zhang 4 participants 6 messages Jul 28, 2011

lore
Share & tools
lore
#0 lore raw

I recently used the Xen virtual machine backup tools, such as 'xm save' command. And I found that before this tool save the memory and CPU state, it first pauses the VM. Do Xen have same tools for online backup the VMs? If it do not have one, can I saty that Xen don't support VM online backup?

--
View this message in context: http://xen.1045712.n5.nabble.com/Xen-support-online-backup-tp4641514p4641514.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#1 lore raw
Quoted 5 lines · pengfei zhang

I recently used the Xen virtual machine backup tools, such as 'xm save' command. And I found that before this tool save the memory and CPU state, it first pauses the VM. Do Xen have same tools for online backup the VMs? If it do not have one, can I saty that Xen don't support VM online backup?

you are probably looking for xl (or xm) save -c:

Usage: xl [-v] save [options] <Domain> <CheckpointFile> [<ConfigFile>]

Save a domain state to restore later.

Options:

-h Print this help.
-c Leave domain running after creating the snapshot.

author
#2 lore raw
Quoted 24 lines

Date: Thu, 28 Jul 2011 12:22:21 +0100
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Xen-devel] Xen support online backup?

Quoted 5 lines · pengfei zhang

I recently used the Xen virtual machine backup tools, such as 'xm save' command. And I found that before this tool save the memory and CPU state, it first pauses the VM. Do Xen have same tools for online backup the VMs? If it do not have one, can I saty that Xen don't support VM online backup?

you are probably looking for xl (or xm) save -c:

Usage: xl [-v] save [options] <Domain> <CheckpointFile> [<ConfigFile>]

Save a domain state to restore later.

Options:

Review

Quoted 2 lines
(quoted diff) +0 -2
-h  Print this help.
-c  Leave domain running after creating the snapshot.

Thank you for your reply!I have tested the command use '-c' option. The virtual machine has about 20 seconds paused.If the virtual machine works as a server, no user can tolarate 20 seconds access delay, I think. What I curious is that VMware Workstation have a feature call snapshot manager,it can make a snapshot of the VM state online, which don't need to pause the service. How about Xen?Thanks a lot! pengfei zhang

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 8 lines · 张鹏飞

What I curious is that VMware Workstation have a feature call snapshot manager,
it can make a snapshot of the VM state online, which don't need to pause the
service. How about Xen?Thanks a lot!

pengfei zhang

In xen you can do this:
1) freezefs FIFREEZE ioctl
2) xm save -c
3) unfreezefs FITHAW ioctl

afte that you have consistent backup.

#4 lore raw
In reply to pengfei zhang
Quoted 2 lines

I recently used the Xen virtual machine backup tools, such as 'xm

save'

Quoted 1 line

command. And I found that before this tool save the memory and CPU

state, it

Quoted 1 line

first pauses the VM. Do Xen have same tools for online backup the VMs?

If it

Quoted 2 lines

do not have one, can I saty that Xen don't support VM online backup?

I'm curious... what use is the memory and CPU state in an online backup?

James

author
#5 lore raw
Quoted 11 lines

Subject: RE: [Xen-devel] Xen support online backup?
Date: Thu, 28 Jul 2011 21:51:09 +1000
From: [email protected]
To: [email protected]; [email protected]

Quoted 2 lines

I recently used the Xen virtual machine backup tools, such as 'xm

save'

Quoted 1 line

command. And I found that before this tool save the memory and CPU

state, it

Quoted 8 lines
Quoted 1 line

first pauses the VM. Do Xen have same tools for online backup the VMs?

If it

Quoted 2 lines

do not have one, can I saty that Xen don't support VM online backup?

I'm curious... what use is the memory and CPU state in an online backup?

James

Yeah, for example, VMware Workstation have a feature call snapshot manager,it can make a snapshot of the VM state online, which don't need to pause the service, etc apache Web server maybe.I think it dumps the memory and CPU state, oh, and of cause the virtual disk.So, what I curious about, is how about Xen do the similar things. Thank you for your reply!
pengfei zhang

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel