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 DA79277EBF for ; Mon, 25 Oct 2021 15:48:32 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C3DB823652 for ; Mon, 25 Oct 2021 15:48:02 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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 4456C23617 for ; Mon, 25 Oct 2021 15:47: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 1B845465C0 for ; Mon, 25 Oct 2021 15:47:59 +0200 (CEST) From: Fabian Ebner To: pve-devel@lists.proxmox.com Date: Mon, 25 Oct 2021 15:47:43 +0200 Message-Id: <20211025134755.169491-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.266 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% 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: [pve-devel] [PATCH-SERIES storage/manager] disk-level storage removal for directory, LVM, LVM-thin, ZFS 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, 25 Oct 2021 13:48:32 -0000 So that disks can easily be repurposed when a storage is no longer needed. Dependency bump pve-manager -> pve-storage is needed. pve-storage: Fabian Ebner (6): LVM: add lvm_destroy_volume_group api: disks: add DELETE endpoint for directory, lvm, lvmthin, zfs api: list thin pools: add volume group to properties diskmanage: add helper for udev workaround api: disks: delete: add flag for wiping disks api: disks: delete: add flag for cleaning up storage config PVE/API2/Disks.pm | 7 +-- PVE/API2/Disks/Directory.pm | 96 +++++++++++++++++++++++++++++-- PVE/API2/Disks/LVM.pm | 84 +++++++++++++++++++++++++-- PVE/API2/Disks/LVMThin.pm | 98 ++++++++++++++++++++++++++++++-- PVE/API2/Disks/ZFS.pm | 107 +++++++++++++++++++++++++++++++++-- PVE/API2/Storage/Config.pm | 27 +++++++++ PVE/Diskmanage.pm | 11 ++++ PVE/Storage/LVMPlugin.pm | 11 ++++ PVE/Storage/LvmThinPlugin.pm | 1 + 9 files changed, 416 insertions(+), 26 deletions(-) pve-manager: Fabian Ebner (6): ui: node: directory: use gettext for 'Directory' ui: node: lvmthin: add volume group to columns ui: utils: add task descriptions for disk removal ui: node: add destroy menu for directory, lvm, lvmthin, zfs ui: node: storage removal: add checkbox for cleaning up disks ui: node: storage removal: add checkbox for cleaning up storage config www/manager6/Makefile | 1 + www/manager6/Utils.js | 3 + www/manager6/node/Directory.js | 83 ++++++++++++++++++- www/manager6/node/LVM.js | 82 +++++++++++++++++++ www/manager6/node/LVMThin.js | 97 +++++++++++++++++++++++ www/manager6/node/ZFS.js | 80 ++++++++++++++++++- www/manager6/window/SafeDestroyStorage.js | 39 +++++++++ 7 files changed, 382 insertions(+), 3 deletions(-) create mode 100644 www/manager6/window/SafeDestroyStorage.js -- 2.30.2