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 UTF8SMTPS id B910074681 for ; Mon, 19 Apr 2021 08:55:06 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with UTF8SMTP id ABEB511127 for ; Mon, 19 Apr 2021 08:55:06 +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 UTF8SMTPS id DCA9611117 for ; Mon, 19 Apr 2021 08:55:02 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with UTF8SMTP id 98882421FF; Mon, 19 Apr 2021 08:55:02 +0200 (CEST) Message-ID: Date: Mon, 19 Apr 2021 08:55:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Thunderbird/88.0 Content-Language: en-US To: Proxmox VE development discussion , Bruce Wainer References: From: Dominik Csapak In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.161 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -0.001 Looks like a legit reply (A) 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-devel] [pve-manager] Adding real disk usage information (discussion) 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: , X-List-Received-Date: Mon, 19 Apr 2021 06:55:06 -0000 On 4/16/21 22:18, Bruce Wainer wrote: > Hello, > Hi, > I am interested in seeing real disk usage information for VM Disks and CT > Volumes, on storage types that have thin provisioning and/or snapshots. > Specifically I would like to see "Current Disk Usage (Thin)" and either > "Snapshot Usage" or "Total Disk Usage". I only use local ZFS on servers at > this time, but I'm sure the GUI side would be best made flexible. while this sounds sensible, this will get hard very fast. For example, take a LVM-Thin storage. I have a template which has an LV which uses some space. This can have X linked clones, where each clone can have Y snapshots. since lvmthin lvs/snapshots/etc. are only very loosely coupled. It is very hard to attribute the correct number to any of those vms/templates. (e.g. do you want to calculate the template storage again for each vm? only once? what if you cloned a vm from a snapshot?) It gets even harder on storage that can deduplicate (e.g. ZFS) or where the 'real' usage is dynamically inflated by some form of replica (e.g. Ceph). So, while this sounds nice, and we would probably not oppose a clean solution, this is not a trivial problem to solve. > > Is someone interested in helping with this? Where would I start, especially > on the GUI part, if I were to develop this myself? anyway, to answer this question, the storage plugins in the backend can be found in the pve-storage git repo[0] the point where the status api calls of the vms/cts are called live in qemu-server[1] and pve-container[2] respectively (the api part is in PVE/API2/) you can find the gui part in pve-manger[3] in www/manager6 also if you want to send patches, please read the developer documentation [4] especially the bit about the CLA if you have any more question, please ask :) hope this helps kind regards 0: https://git.proxmox.com/?p=pve-storage.git;a=tree;f=PVE/Storage;h=fd53af5e74407deda65785b164fb61a4f644a6e0;hb=refs/heads/master 1: https://git.proxmox.com/?p=qemu-server.git;a=summary 2: https://git.proxmox.com/?p=pve-container.git;a=summary 3: https://git.proxmox.com/?p=pve-manager.git;a=tree;f=www/manager6;hb=refs/heads/master 4: https://pve.proxmox.com/wiki/Developer_Documentation > > Thank you, > Bruce Wainer > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel > >