[SOLVED] Can´t boot due to changes in lvm.conf

uiketekaes

New Member
Jul 31, 2024
1
1
3
Hello,

Due to I was researching how to put HDDs to sleep when they are not used, I came to a post where it was indicated to change a line in the file /etc/lvm/lvm.conf.

That line was apparently incorrect and that has meant that when restarting, proxmox no longer starts. The specific error is a misuse of a regex expression. Then I get an alert that it can't load /dev/mapper/pve-root and throws me to an "initramfs" console

In this terminal I have modified "lvm.conf" to leave it as the original but when it restarts the same error appears since the file seems not to be saved permanently.

What possible solution do I have without having to reinstall proxmox?

Thank you so much!!


[EDIT]

I did some "repair":

1- With initramfs console repair file /etc/lvm/lvm.conf
2- Go to lvm console and activate pve volume group with vgchange -ay
3- exit command from lvm
4- exit command from initramfs


Now can access proxmox and all of VM or CT with GUI or console. If I access to /etc/lvm/lvm.conf now I see a good one file BUT if I reboot the system I get old file with bad format and cannot boot.

How is this posible?

Thanks

[SOLVED]

Execute this command before reboot

update-initramfs -u -k all
 
Last edited:
  • Like
Reactions: waltar

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!