From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9CBC968D48 for ; Mon, 3 Aug 2020 09:16:00 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 920252AFDE for ; Mon, 3 Aug 2020 09:16:00 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 73B602AFD2 for ; Mon, 3 Aug 2020 09:15:59 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 386F742F98 for ; Mon, 3 Aug 2020 09:15:59 +0200 (CEST) Date: Mon, 03 Aug 2020 09:15:51 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE user list References: In-Reply-To: MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1596438669.ta6wgocjkh.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.048 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [PVE-User] move virtual disk with snapshots X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2020 07:16:00 -0000 On July 31, 2020 8:46 am, Roland wrote: > hello, >=20 > 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=20 even then requires custom code for each storage type for a rarely used=20 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=20 are running), then poweroff and send the delta since the baseline, sed=20 the storage name inside the config including all snapshots, start the VM=20 again. with a bit of careful checking of involved VM configs before=20 starting, the whole process can be automated if you want. similar procedures, possibly with more downtime if no incremental=20 sync option exists, apply to other storage types as well. as always, test with a test VM/setup first, and do backups before just=20 in case. =