From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 18A2D1FF16B for ; Tue, 12 Aug 2025 18:45:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 87BAB1241A; Tue, 12 Aug 2025 18:47:06 +0200 (CEST) From: "Max R. Carrara" To: pve-devel@lists.proxmox.com Date: Tue, 12 Aug 2025 18:46:28 +0200 Message-ID: <20250812164631.428424-1-m.carrara@proxmox.com> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1755017161349 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.083 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, osd.pm] Subject: [pve-devel] [PATCH pve-manager master v1 0/2] Fix #6652: LVM Autoactivation Missing for Ceph OSD LVs 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" Fix #6652: LVM Autoactivation Missing for Ceph OSD LVs - v1 =========================================================== When creating an OSD via the API, the logical volumes backing the OSD's DB and WAL do not have autoactivation enabled. Ceph requires autoactivation on LVs, as it otherwise never activates them directly itself. Fix this by setting autoactivation when creating those LVs as well as providing a helper script that enables autoactivation for LVs used by OSDs. The script also activates any inactive OSD LVs and then also attempts to bring the OSDs back online via ceph-volume. This regression is caused by a recent change in pve-storage [0] --unfortunately, the helpers for the LVM storage plugin are used in pve-manager directly for configuring OSDs, which isn't something one considers when working on a completely different package. I'm in the process of cleaning up those helpers anyway, so expect a another series soon-ish that removes their usage from pve-manager and attempts to confine them to pve-storage as much as possible. References ---------- [0]: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=f296ffc4e4d64b574c3001dc7cc6af3da1406441 Summary of Changes ------------------ Max R. Carrara (2): fix #6652: ceph: osd: enable autoactivation for OSD LVs on creation fix #6652: d/postinst: enable autoactivation for Ceph OSD LVs PVE/API2/Ceph/OSD.pm | 20 ++- bin/Makefile | 3 +- bin/pve-osd-lvm-enable-autoactivation | 195 ++++++++++++++++++++++++++ debian/postinst | 16 +++ 4 files changed, 232 insertions(+), 2 deletions(-) create mode 100644 bin/pve-osd-lvm-enable-autoactivation -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel