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) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 03485C0A0 for ; Fri, 8 Apr 2022 13:13:22 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EBAB5E0E5 for ; Fri, 8 Apr 2022 13:13:21 +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) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 3CB51E0DA for ; Fri, 8 Apr 2022 13:13:20 +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 1150E41E8B for ; Fri, 8 Apr 2022 13:13:20 +0200 (CEST) Message-ID: Date: Fri, 8 Apr 2022 13:13:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: pve-devel@lists.proxmox.com References: <20220408101416.165312-1-a.lauterer@proxmox.com> From: Aaron Lauterer In-Reply-To: <20220408101416.165312-1-a.lauterer@proxmox.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 1.465 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 NICE_REPLY_A -2.873 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: Re: [pve-devel] [RFC manager 0/4] Ceph add basic erasure code pool mgmt support 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: Fri, 08 Apr 2022 11:13:22 -0000 One thing I forgot to mention is that due to quite a few $rados->mon_commands that are introduced here, there will be rebases needed when we apply the changes to librados2-perl. Similar to this patch [0] of that other series. [0] https://lists.proxmox.com/pipermail/pve-devel/2022-March/052290.html On 4/8/22 12:14, Aaron Lauterer wrote: > This RFC series adds basic support to create erasure coded (EC) pools > with the PVE tooling. > > We need to first manage EC profiles as they are the important part when > someone wants to use EC pools. They define how the data is split up and > how much coding/parity one wants. > > The actual creation of the EC pools follows the same approach we use for > cephfs pools. One metadata and one EC coded data pool. More details in > the actual patches. > > The first patch is one that we should have added when we added basic > support for ec pools [0]. > > I sent it as RFC mainly to get some feedback, especially regarding the > CLI interface for the profile management and if the approach on how to > create EC pools, by adding an optional 'ecprofile' parameter to > pool create, is one we are okay with from an interface POV. > > More details can be found in the individual patches. > > [0] https://git.proxmox.com/?p=pve-storage.git;a=commit;h=ef2afce74aba01f2ab698a5477f5e396fa4d3725 > > Aaron Lauterer (4): > api: ceph: $get_storages check if data-pool too > pveceph: add management for erasure code rules > ceph tools: add check if erasure code profile exists > ceph pools: allow to create erasure code pools > > PVE/API2/Ceph.pm | 6 + > PVE/API2/Ceph/ECProfiles.pm | 249 ++++++++++++++++++++++++++++++++++++ > PVE/API2/Ceph/Makefile | 1 + > PVE/API2/Ceph/Pools.pm | 55 +++++++- > PVE/CLI/pveceph.pm | 12 ++ > PVE/Ceph/Tools.pm | 21 ++- > 6 files changed, 335 insertions(+), 9 deletions(-) > create mode 100644 PVE/API2/Ceph/ECProfiles.pm >