public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Reiter <s.reiter@proxmox.com>
To: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>,
	"Radosław Korzeniewski" <radoslaw@korzeniewski.net>
Subject: Re: [pve-devel] VM Incremental backup for 3-party solution (Qemu)
Date: Thu, 19 Aug 2021 16:22:51 +0200	[thread overview]
Message-ID: <6bd6cbed-5519-cb7e-628c-13e934639652@proxmox.com> (raw)
In-Reply-To: <CAF_EmoDG+LnegDQcFLRu2xpSz+LQGxGSyESyGLOUFsnn9y3jvg@mail.gmail.com>

On 8/19/21 3:21 PM, Radosław Korzeniewski wrote:
> Hello,
> 
> I'm working on implementing VM incremental backup for a 3-party solution
> based on Qemu dirty bitmap which is available in Proxmox. Unfortunately I'm
> unable to make it working, so I decided to ask for some help.
> First I'm adding a dirty bitmap using the `block-dirty-bitmap-add` command
> and making a full backup with `drive-backup` command.
> Both are executed in transactions. The bitmap is successfully added.
> But the external backup file is populated with ~193K of data and hung.
> The backup job is added and QMP returns 3 events:
> `"status": "created"`, `"status": "running"`, `"status": "paused"`.
> I'm not sure why.
> As finally the job is "paused", I try to resume it with `block-job-resume`
> command
> the `query-block-jobs` returns `"status": "paused"` i `"paused": true`.
> All I can do is to cancel the job with the `block-job-cancel` command.
> No commands return any error.
> 
> Do you have any idea why the job fell into a paused state and how I
> should proceed?
> 

Hi,

as a shot in the dark I would say you specified the bitmap in your initial
backup command, and it only backed up what had been written between the
time you did 'bitmap-add' and 'drive-backup'..

But more importantly, 'drive-backup' and the bitmap support around that
are not based on our code, they are from upstream QEMU. We implement the
'backup' and 'query-backup' QMP calls.

There's nothing against using the native calls if they fit your use case,
but for support it would make more sense to contact upstream and read
through their documentation :)

~ Stefan




  reply	other threads:[~2021-08-19 14:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19 13:21 Radosław Korzeniewski
2021-08-19 14:22 ` Stefan Reiter [this message]
2021-08-24 10:58   ` Radosław Korzeniewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6bd6cbed-5519-cb7e-628c-13e934639652@proxmox.com \
    --to=s.reiter@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=radoslaw@korzeniewski.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal