Discussion:
[PVE-User] VZDump and Ceph Snapshots
Mark Schouten
2018-08-28 14:27:42 UTC
Permalink
Hi,

I'm currently using vzdump with the snapshot method to periodically
generate vma-files for disasterrecovery. vzdump in snapshot mode
instructs Qemu to start backing up the disk to a specific location, and
while doing so, VM users can suffer poor performance.

We run practically all VMs on Ceph storage, which has snapshot
functionality.

Would it be feasable to alter VZDump to use the following flow:

* Start
* guest-fs-freeze
* rbd snap $***@vzdump_$timstamp
* guest-fs-thaw
* qemu-img convert -O raw rbd:$***@vzdump_$timstamp $tmpdir
* vma create
* rbd snap rm $***@vzdump_$timstamp
* Done

Regards,
--
Kerio Operator in de Cloud? https://www.kerioindecloud.nl/
Mark Schouten | Tuxis Internet Engineering
KvK: 61527076 | http://www.tuxis.nl/
T: 0318 200208 | ***@tuxis.nl
Alexandre DERUMIER
2018-08-29 06:11:08 UTC
Permalink
Hi,

vma backup only work on running vm (attached disk),
so no, it's not possible currently.

Currently, I'm doing ceph backup to another remote ceph backup cluster
with custom script


* Start
* guest-fs-freeze
* rbd snap $***@vzdump_$timstamp
* guest-fs-thaw
* rbd export $***@vzdump_$timstamp | rbd import ....
....

works very fine. (with incremental backup)


I'll try to put my code on github soon.

(I have a nice gui/cli too, to restore a full vm, or some files inside the backup)





----- Mail original -----
De: "Mark Schouten" <***@tuxis.nl>
À: "proxmoxve" <pve-***@pve.proxmox.com>
Envoyé: Mardi 28 Août 2018 16:27:42
Objet: [PVE-User] VZDump and Ceph Snapshots

Hi,

I'm currently using vzdump with the snapshot method to periodically
generate vma-files for disasterrecovery. vzdump in snapshot mode
instructs Qemu to start backing up the disk to a specific location, and
while doing so, VM users can suffer poor performance.

We run practically all VMs on Ceph storage, which has snapshot
functionality.

Would it be feasable to alter VZDump to use the following flow:

* Start
* guest-fs-freeze
* rbd snap $***@vzdump_$timstamp
* guest-fs-thaw
* qemu-img convert -O raw rbd:$***@vzdump_$timstamp $tmpdir
* vma create
* rbd snap rm $***@vzdump_$timstamp
* Done

Regards,
--
Kerio Operator in de Cloud? https://www.kerioindecloud.nl/
Mark Schouten | Tuxis Internet Engineering
KvK: 61527076 | http://www.tuxis.nl/
T: 0318 200208 | ***@tuxis.nl


_______________________________________________
pve-user mailing list
pve-***@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Mark Schouten
2018-08-29 06:54:38 UTC
Permalink
Post by Alexandre DERUMIER
vma backup only work on running vm (attached disk),
so no, it's not possible currently.
Doesn't vma just create an archive of configfiles and raw images in a
directory?
Post by Alexandre DERUMIER
Currently, I'm doing ceph backup to another remote ceph backup
cluster
with custom script
I want my customers to be able to restore easily without Ceph-hassle.
So I want to put the functionality in vzdump..
Post by Alexandre DERUMIER
* Start
* guest-fs-freeze
* guest-fs-thaw
I think we are allow to do rbd export to STDOUT and into vma? Proxmox
developers?
--
Kerio Operator in de Cloud? https://www.kerioindecloud.nl/
Mark Schouten | Tuxis Internet Engineering
KvK: 61527076 | http://www.tuxis.nl/
T: 0318 200208 | ***@tuxis.nl
Loading...