[GH-ISSUE #1905] Proxmox Clean Orphaned LVM wants to delete ceph osd #415

Closed
opened 2026-02-26 12:45:25 +03:00 by kerem · 4 comments
Owner

Originally created by @gforke97 on GitHub (Jan 31, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/1905

Originally assigned to: @MickLesk on GitHub.

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Proxmox Clean Orphaned LVM

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/clean-orphaned-lvm.sh)"

📝 Provide a clear and concise description of the issue.

The Script wants to delete ceph osd's which are in use.

Example Output:
The following orphaned LVM volumes were found:

LV Name VG Size


osd-block-0db0895a-929a-4a19-99e8-aca14b6d478c ceph-1e12886a-7d5d-4d7e-bd9d-5ffa96cb5be5 931.51g
osd-block-c5337677-f472-4c83-98b1-eb6061362ff6 ceph-1ff4e200-4fe0-4f3d-aad4-af64007a4a14 931.51g
osd-block-36f98036-fdeb-4228-a7ca-47e681e18c10 ceph-44fe0199-4d44-48a8-b1e4-4753de6b1da9 931.51g
osd-block-1404721e-210f-4c4d-95e6-208f7b86c706 ceph-c98545e4-c230-4466-bb6e-79f9c66378cc 931.51g
osd-block-015c169a-55b4-4fd3-95a7-aa78f785adff ceph-e5afac5d-6a23-4193-b17e-a1359cfcc2fb 931.51g
osd-block-0446bb8c-ec86-4240-973a-1c14324c80a4 ceph-fd5fa584-0c01-4807-a0e5-4d54a61eb5bd 931.51g

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Setup Ceph with multiple osd's and run the script

Paste the full error output (if available).

The following orphaned LVM volumes were found:

LV Name VG Size


osd-block-0db0895a-929a-4a19-99e8-aca14b6d478c ceph-1e12886a-7d5d-4d7e-bd9d-5ffa96cb5be5 931.51g
osd-block-c5337677-f472-4c83-98b1-eb6061362ff6 ceph-1ff4e200-4fe0-4f3d-aad4-af64007a4a14 931.51g
osd-block-36f98036-fdeb-4228-a7ca-47e681e18c10 ceph-44fe0199-4d44-48a8-b1e4-4753de6b1da9 931.51g
osd-block-1404721e-210f-4c4d-95e6-208f7b86c706 ceph-c98545e4-c230-4466-bb6e-79f9c66378cc 931.51g
osd-block-015c169a-55b4-4fd3-95a7-aa78f785adff ceph-e5afac5d-6a23-4193-b17e-a1359cfcc2fb 931.51g
osd-block-0446bb8c-ec86-4240-973a-1c14324c80a4 ceph-fd5fa584-0c01-4807-a0e5-4d54a61eb5bd 931.51g

🖼️ Additional context (optional).

No response

Originally created by @gforke97 on GitHub (Jan 31, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/1905 Originally assigned to: @MickLesk on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Proxmox Clean Orphaned LVM ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/clean-orphaned-lvm.sh)" ### 📝 Provide a clear and concise description of the issue. The Script wants to delete ceph osd's which are in use. Example Output: ❗ The following orphaned LVM volumes were found: LV Name VG Size ------------------------- ---------- ---------- osd-block-0db0895a-929a-4a19-99e8-aca14b6d478c ceph-1e12886a-7d5d-4d7e-bd9d-5ffa96cb5be5 931.51g osd-block-c5337677-f472-4c83-98b1-eb6061362ff6 ceph-1ff4e200-4fe0-4f3d-aad4-af64007a4a14 931.51g osd-block-36f98036-fdeb-4228-a7ca-47e681e18c10 ceph-44fe0199-4d44-48a8-b1e4-4753de6b1da9 931.51g osd-block-1404721e-210f-4c4d-95e6-208f7b86c706 ceph-c98545e4-c230-4466-bb6e-79f9c66378cc 931.51g osd-block-015c169a-55b4-4fd3-95a7-aa78f785adff ceph-e5afac5d-6a23-4193-b17e-a1359cfcc2fb 931.51g osd-block-0446bb8c-ec86-4240-973a-1c14324c80a4 ceph-fd5fa584-0c01-4807-a0e5-4d54a61eb5bd 931.51g ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Setup Ceph with multiple osd's and run the script ### ❌ Paste the full error output (if available). ❗ The following orphaned LVM volumes were found: LV Name VG Size ------------------------- ---------- ---------- osd-block-0db0895a-929a-4a19-99e8-aca14b6d478c ceph-1e12886a-7d5d-4d7e-bd9d-5ffa96cb5be5 931.51g osd-block-c5337677-f472-4c83-98b1-eb6061362ff6 ceph-1ff4e200-4fe0-4f3d-aad4-af64007a4a14 931.51g osd-block-36f98036-fdeb-4228-a7ca-47e681e18c10 ceph-44fe0199-4d44-48a8-b1e4-4753de6b1da9 931.51g osd-block-1404721e-210f-4c4d-95e6-208f7b86c706 ceph-c98545e4-c230-4466-bb6e-79f9c66378cc 931.51g osd-block-015c169a-55b4-4fd3-95a7-aa78f785adff ceph-e5afac5d-6a23-4193-b17e-a1359cfcc2fb 931.51g osd-block-0446bb8c-ec86-4240-973a-1c14324c80a4 ceph-fd5fa584-0c01-4807-a0e5-4d54a61eb5bd 931.51g ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:45:25 +03:00
Author
Owner

@MickLesk commented on GitHub (Jan 31, 2025):

Never Used this, but i can check later

<!-- gh-comment-id:2627473729 --> @MickLesk commented on GitHub (Jan 31, 2025): Never Used this, but i can check later
Author
Owner

@MickLesk commented on GitHub (Feb 3, 2025):

Hi,

can you check it against another branch? Because i dont use ceph or something else.

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/orphan_lxcs/misc/clean-orphaned-lvm.sh)"
<!-- gh-comment-id:2630148105 --> @MickLesk commented on GitHub (Feb 3, 2025): Hi, can you check it against another branch? Because i dont use ceph or something else. ```bash bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/orphan_lxcs/misc/clean-orphaned-lvm.sh)"
Author
Owner

@gforke97 commented on GitHub (Feb 3, 2025):

That one works or atleast it doesnt list the ceph volumes anymore 👍

<!-- gh-comment-id:2630530129 --> @gforke97 commented on GitHub (Feb 3, 2025): That one works or atleast it doesnt list the ceph volumes anymore 👍
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 3, 2025):

merged

<!-- gh-comment-id:2630617659 --> @michelroegl-brunner commented on GitHub (Feb 3, 2025): merged
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#415
No description provided.