V
V
vlarkanov2018-01-23 13:19:57
linux
vlarkanov, 2018-01-23 13:19:57

How to make a "hot" backup of a KVM virtual machine?

Hello! There is a physical Debian server with two KVM virtual machines on lvm volumes, you need to backup virtual2 without stopping it. I'm trying to do this:


# virsh list
Id Name State
---------------------------------------------------- --------
4 virtual1 running
5 virtual2 running
# vzdump --dumpdir /data/transfer --compress --snapshot --bwlimit 7000 5
ERROR: got reserved VM ID '5'

Google says that vzdump doesn't understand VMID < 100. What to do? Backup needs to be done exactly "for profit", without stopping the service

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2018-01-23
@leahch

Have you tried it with virsh snapshot-XXXX ? True, I have qcow2 or ceph everywhere :-)

snapshot-create Create a snapshot based on XML
snapshot-create-as Create a snapshot based on arguments
snapshot-current View and modify the current snapshot
snapshot-delete Delete a domain
snapshot snapshot-dumpxml Domain Snapshot Dump XML
snapshot-edit Edit Snapshot XML
snapshot-info snapshot data
snapshot-list Show snapshots of a domain
snapshot-parent Get the name of the parent of a snapshot
snapshot-revert Restore a domain from a snapshot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question