How to create a snapshot volume to a remote server using kvm?

Posted by Purres on Server Fault See other posts from Server Fault or by Purres
Published on 2014-08-20T22:17:33Z Indexed on 2014/08/21 4:22 UTC
Read the original article Hit count: 504

I want to backup a few virtual machines to a backup server. Here're the backup steps.

suspend a virtual machine
create a snapshot of the virtual machine using lvcreate -s
resume a virtual machine
dd if=/virtual_machine_path | lzop > /temp/backup.lzo
rsync /temp/backup.lzo -e "ssh " 1.2.3.4:/backup_path/

However, the hypervisor server doesn't have enough hard disk space to create a snapshot in step 2. Is there a way to create a logical volume snapshot to a remote server?

© Server Fault or respective owner

Related posts about centos

Related posts about backup