local_lvm has status unknown after reboot

Contrean

Member
Sep 5, 2019
6
0
21
22
What happened before the error:
It all started when I was trying to copy a lxc-container. The statuspage just said "Creating virtual disc" (Or something like that, I can't fully remember)
After multiple tries and trying to create a new container, I thought "maybe I should update my environment".
While executing apt upgrade -y i noticed, that after "reading database (80%)" nothing happened. I waited 2 hours, but it still just said "reading database (80%)".
I couldn't find something online for that specific problem so I terminated the process and rebooted my Server.

After the reboot:
In the webgui I noticed, that local_lvm had the status unknown and no vms or containers where running.
Using the shell I started one of my vms qm start 178201
I got the error: activating LV 'pve/data' failed: Activation of logical volume pve/data is prohibited while logical volume pve/data_tmeta is active.

I found this thread: https://forum.proxmox.com/threads/t...gical-volume-pve-data_tdata-is-active.106225/
and tried these commands:
Code:
lvchange -an pve/data_tdata
lvchange -an pve/data_tmeta
lvchange -ay pve/data

but was unable to execute lvchange -an pve/data_tmeta.
I got this error:
Remove ioctl on (some id that is this: pve-data_tmeta) failed. Device or resource busy

After that I went through this thread: https://forum.proxmox.com/threads/l...rnel-update-on-pve-7.97406/page-2#post-430860

But nothing changed.
After that I went back to the first thread and read through it again. I thought, maybe I should try, what the creator of the thread tried, before opening the thread.
Code:
lvchange -an pve/data
lvconvert --repair pve/data
lvchange -ay pve/data
qm unlock 100
reboot

Now my server is executing lvconvert --repair pve/data for two and a half hours and I don't know, how long it is going to take or if what I am doing even helps. Also the webgui states "Status: unknown" for every vm, container, storage and the node I am on (I don't have other nodes).

I have backups for every vm/container, except one 3.5tb vm, for which I was just working on a backup solution.
 
By the way, I still have the browserwindow with the proxmoxconsole open, in which I executed lvconvert --repair pve/data, because it still seems to be executing (for 2 days now)
 
hi, is this your solution already work after waiting more than 2 days?
Hey, after waiting for (i think) 6 days I accidentaly closed the shell, that had the command running. After that I asked ChatGPT for help. While it did answer me a lot of Questions and explained most commands, I, to this day, haven't managed to get local_lvm active again. At some Point I just gave up out of frustration and haven't touched my server since.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!