public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: Proxmox VE user list <pve-user@lists.proxmox.com>
Subject: Re: [PVE-User] move virtual disk with snapshots
Date: Mon, 03 Aug 2020 09:15:51 +0200	[thread overview]
Message-ID: <1596438669.ta6wgocjkh.astroid@nora.none> (raw)
In-Reply-To: <e8191e82-2d2e-f93a-ef70-6be4a053d9d7@web.de>

On July 31, 2020 8:46 am, Roland wrote:
> hello,
> 
> can someone explain, why it's not possible in proxmox to move a VMs
> virtual disk with snapshots to a different datastore/dir - not even when
> offline?

because it only works from one storage type to the same storage type and 
even then requires custom code for each storage type for a rarely used 
operation.

> we need to fix some zfs dataset/dir naming/structure and can't as we
> would loose all our snapshots when moving VMs around...

if it's all ZFS, simply zfs send/recv a baseline (can be done while VMs 
are running), then poweroff and send the delta since the baseline, sed 
the storage name inside the config including all snapshots, start the VM 
again. with a bit of careful checking of involved VM configs before 
starting, the whole process can be automated if you want.

similar procedures, possibly with more downtime if no incremental 
sync option exists, apply to other storage types as well.

as always, test with a test VM/setup first, and do backups before just 
in case.




  reply	other threads:[~2020-08-03  7:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31  6:46 Roland
2020-08-03  7:15 ` Fabian Grünbichler [this message]
2020-08-03  7:45   ` Roland

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=1596438669.ta6wgocjkh.astroid@nora.none \
    --to=f.gruenbichler@proxmox.com \
    --cc=pve-user@lists.proxmox.com \
    /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