From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 65CCB1FF163 for ; Thu, 24 Oct 2024 09:43:07 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B6B7D8FDD; Thu, 24 Oct 2024 09:43:47 +0200 (CEST) Date: Thu, 24 Oct 2024 09:43:44 +0200 (CEST) From: =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= To: "DERUMIER, Alexandre" , "pve-devel@lists.proxmox.com" Message-ID: <1141936572.1340.1729755824315@webmail.proxmox.com> In-Reply-To: References: <20240930113153.2896648-1-alexandre.derumier@groupe-cyllene.com> <390284700.719.1729678468232@webmail.proxmox.com> MIME-Version: 1.0 X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev69 X-Originating-Client: open-xchange-appsuite X-SPAM-LEVEL: Spam detection results: 0 AWL 0.049 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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-devel] [PATCH v2 qemu-server 1/1] implement external snapshot X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" > DERUMIER, Alexandre hat am 23.10.2024 16:31 CEST geschrieben: > > > >>if we want the current volume to keep its name, and the snapshot > >>volume to actually contain *that* snapshot's data, we need some sort > >>of rename dance here as well.. i.e., rename the current volume to > >>have the snapshot volume name, then snapshot it back into the > >>"current" name. not sure what the proper qmp runes would be to > >>achieve that? > > I really to check that, but I would like to keep it as most atomic than > possible (avoid stream, double snapshot, and all fancy stuff just to > take a snapshot. because shit happen ^_^ , and generally it'll happen > when you'll take a snapshot with multiple disk, you'll to manage > recovery and current state of differents volumes) > > Another stupid way is to use generic name for snapfile (maybe with > ctime inside the name), and create symlinks when snapshot is taken.( > qemu follow symlink and use realpaths for backing chain). > (and for lvm, it can be done with metadatas). > > I'll really try to find a way with renaming volume, I'll keep you in > touch. yes, that might work as well. it's a bit less "clean", since looking at the storage itself then requires this extra knowledge to know what's what, but it shouldn't be too bad hopefully? curious to see what you come up with :) _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel