LinuxQuestions.org
Help answer threads with 0 replies.
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 03-13-2013, 05:15 AM   #1
jackieserver
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Rep: Reputation: Disabled
hot backup KVM


hello

We run a several KVM who can't be turned off. But i need to take a back-up of it. The images of virtual machines are stored on a NAS. There is no LVM installed so LVM snapshots are not possible. Do you know any other possibility to achieve this without pause or shutdown the machines.

Thank you
 
Old 03-13-2013, 07:58 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 837

Rep: Reputation: 91
1. backup agents in the VM
2. sync the disk image with a side image and back that up
3. pause VM, copy disk, unpause. should be fast and might be fast enough for nobody to notice the downtime
4. use qcow2, make a qcow snapshot, back up the chain before snapshot
 
Old 03-13-2013, 08:03 AM   #3
jackieserver
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yes I found that possibility to
But the VM's are in use al the time so pause or shutdown is not acceptable
I found something named QEMU livebackup but i haven't try something like this
do you have some experience with this feature of QEMU?
 
Old 03-13-2013, 02:41 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,590

Rep: Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418
There is also live state backup software available in linux in commercial form.
 
Old 03-14-2013, 02:25 AM   #5
jackieserver
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
What software do you suggest?
Whe prefer a open-source and free solution for this
 
Old 03-14-2013, 07:23 AM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 837

Rep: Reputation: 91
Quote:
Originally Posted by jackieserver View Post
Yes I found that possibility to
But the VM's are in use al the time so pause or shutdown is not acceptable
I found something named QEMU livebackup but i haven't try something like this
do you have some experience with this feature of QEMU?
That's just one option, I provided 4
 
Old 03-14-2013, 07:28 AM   #7
jackieserver
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
What option do you prefer if we don't want any down time
We need an option that don't touch the performance of the machines
And how can you realise that option.
Is that with a program or script?

thanks
 
Old 03-14-2013, 04:27 PM   #8
jefro
Guru
 
Registered: Mar 2008
Posts: 11,590

Rep: Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418Reputation: 1418
You'd have to look up what might suit your needs. I have only seen a couple of companies that offer a live state. You would either need to use kvm/qcow type tools that use virtual support or install some software that would act on the virtual hard drive just as if it were a stand alone computer.

This is one of them but you'd need lvm. http://www.storix.com/ It may be that you would have to re-create the systems and use lvm or btrfs or zfs. Otherwise the tools for kvm/qemu would have to do.

The only other way is to use some rsync sort of deal. This nas box also may have some features that could be used. Some of the advanced nas boxes have all sorts of options.
 
Old 03-26-2013, 03:17 AM   #9
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 224

Rep: Reputation: 8
Unless things have changed, you can not(*should not rather) use LVM to create snapshots containing Virtual Guests because the LVM can not guarantee a consistent state of the Guest's filesystem.

Last edited by dman777; 03-26-2013 at 03:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hot Backup KVM machine yeayu Linux - Virtualization and Cloud 10 10-20-2011 02:36 PM
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


All times are GMT -5. The time now is 08:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration