LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-14-2011, 06:33 PM   #1
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Rep: Reputation: Disabled
Question Hot Backup KVM machine


Hi everybody,
I have a web server; It's working like kvm machine under Proxmox.
I would like to perform a hot backup, but i don't know how to do it. I have been using vzdump command to create backups, but always the machine is shutting down, and that it's not possible.. :s
I was looking for information about that, but I didn't found anything useful.


Also, I would like to know if I can convert that kvm virtual machine to open-vz. If it's yes, how i have to do it.

I hope you could help me; Thank you for your time.

Regards, Jesus
 
Old 10-15-2011, 03:22 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Do you have lvm?

"
stop: Stop the VE during backup (very long downtime)
suspend: Use suspend/resume (minimal downtime with OpenVZ, long downtime with KVM VMs)
snapshot: Use LVM2 (no downtime, online) "

http://pve.proxmox.com/wiki/Backup_-...Live_Migration
 
Old 10-15-2011, 03:50 PM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
backup is not only about copying the data on the disk aside, it's also about quiescing the VM, before you back up the disk image, otherwise the in-flight data will be lost, and you migh even get image corruption on the restored VM. If you use caching at the qemu level, this might be even more severe.

So to be on the safe side, use the guest Os for backups, treat the VM as if it is a physical machine
 
Old 10-16-2011, 05:23 AM   #4
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Do you have lvm?
Yes, I do.
In fact, I was trying to do a snapshot using vzdump http://pve.proxmox.com/wiki/LVM2, but the machine was suspended itself again...


server-proxmox:/var/lib/vz# vzdump --snapshot 106
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "es_ES.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
INFO: starting new backup job: vzdump --snapshot 106
INFO: Starting Backup of VM 106 (qemu)
INFO: running
INFO: status = running
INFO: mode failure - unable to dump into snapshot (use option --dumpdir)
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend

INFO: ionice priority: 7
INFO: suspend vm
INFO: creating archive '/var/lib/vz/dump/vzdump-qemu-106-2011_10_16-12_03_38.tar'
INFO: adding '/var/lib/vz/dump/vzdump-qemu-106-2011_10_16-12_03_38.tmp/qemu-server.conf' to archive ('qemu-server.conf')
INFO: adding '/var/lib/vz/images/106/vm-106-disk-1.raw' to archive ('vm-disk-scsi0.raw')


What do I wrong?
Is there another way to do a backup/snapshot using lvm2?
 
Old 10-16-2011, 03:50 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
http://wiki.openvz.org/Backup_of_a_r...er_with_vzdump
 
Old 10-16-2011, 04:33 PM   #6
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I have read already that link, but i keep having the same problem.
If i use vzdump, the machine is suspend itself like i explained above..
 
Old 10-17-2011, 07:13 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Then maybe some other deal like acpi or maybe temps or not enough ram?
 
Old 10-18-2011, 05:53 AM   #8
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Then maybe some other deal like acpi or maybe temps or not enough ram?
I'm not sure why it's happening.
How could i check if there is any problem with acpi or temps? About ram...umm I think that is not my real problem, the proxmox server have 8Gb installed and I just use 3Gb to my kvm guest
 
Old 10-18-2011, 02:52 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Maybe /var logs to start.

run top when you attempt this.
 
Old 10-19-2011, 03:59 AM   #10
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Maybe /var logs to start.

run top when you attempt this.
I would like do that but I can't, because is a production mail server.. so each time I try to create a KVM backup, that server suspend itself. Service off=BIG PROBLEM
May be I could try it one time, but not any more...
:s

I'm thinking to restore a old backup and try it, but I don't know how to change ip address, ram value and so on (using command line) before turning on to avoid conflict with the other one.
I got it, I deleted NIC device from proxmox interface. Hence i have a copy running which one i will be able to test whatever you talked.

i will keep notifying my progress

Last edited by yeayu; 10-19-2011 at 04:19 AM. Reason: add content
 
Old 10-20-2011, 02:36 PM   #11
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
I need to know how i have to configure my restore backup guest to startup with a different ip address, because if I just turn it on, there will be a conflict ip problem (it's a copy). Few days ago, I deleted NIC card from proxmox control panel and turned it on. I can add other NIC card but i need to configure through command line.
I found some commands:
qemu-ifup but i don't understand very well how i have to do it... :s

I keep looking for more information

Thanks for your time
 
  


Reply

Tags
backups, kvm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Storage and backup considerations using kvm on Cent OS 6.0 ThomasRonshof Linux - Virtualization and Cloud 6 10-06-2011 01:24 PM
[SOLVED] Can I backup & restore without KVM? johny9 Linux - Software 1 10-04-2011 11:54 AM
Hot backup of root with cpio..is it safe? Mikoman Linux - Newbie 4 02-23-2011 02:19 AM
KVM Relocation and Backup arunkeerthan Linux - Virtualization and Cloud 1 05-28-2010 01:58 PM
Why does my machine run so hot when idle? cisengineer Linux - Hardware 3 06-03-2005 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration