all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Max R. Carrara" <m.carrara@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-manager master v1 0/2] Fix #6652: LVM Autoactivation Missing for Ceph OSD LVs
Date: Tue, 12 Aug 2025 18:46:28 +0200	[thread overview]
Message-ID: <20250812164631.428424-1-m.carrara@proxmox.com> (raw)

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


             reply	other threads:[~2025-08-12 16:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-12 16:46 Max R. Carrara [this message]
2025-08-12 16:46 ` [pve-devel] [PATCH pve-manager master v1 1/2] fix #6652: ceph: osd: enable autoactivation for OSD LVs on creation Max R. Carrara
2025-08-13  7:48   ` Fabian Grünbichler
2025-08-13  8:28     ` Max R. Carrara
2025-08-12 16:46 ` [pve-devel] [PATCH pve-manager master v1 2/2] fix #6652: d/postinst: enable autoactivation for Ceph OSD LVs Max R. Carrara
2025-08-13  7:52   ` Fabian Grünbichler
2025-08-13  8:50     ` Max R. Carrara
2025-08-13  9:01       ` Friedrich Weber
2025-08-13  9:02       ` Fabian Grünbichler
2025-08-13  9:40         ` Max R. Carrara
2025-08-13 10:05           ` Fabian Grünbichler
2025-08-13 13:43 ` [pve-devel] superseded: [PATCH pve-manager master v1 0/2] Fix #6652: LVM Autoactivation Missing " Max R. Carrara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250812164631.428424-1-m.carrara@proxmox.com \
    --to=m.carrara@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal