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