Score:0

LVM not recognised at startup, system does not boot (PROXMOX VM)

vi flag

I'm facing a problem I don't know how to fix. I was trying to reduce size of a qcow2 file and I made a backup copy of the original file. After some problems with the reduced qcow2 file I decided to roll back to the backup I made and I discovered the backup doesn't work.

Here is a screen shot of the problem:

system hangs here

After some time, I got a shell to try to recover the system

ls /dev shows no disks attached to the system which is the root of the problem. The virtual machine is running under Proxmox 7.3

I Installed the same operating system in another VM and reassigned the same disk as an additional SCSI and on that VM I can see the volumes correctly defined! So, I assumed, the problem might not be on the disk itself but in the vm definition and I reassigned back the disk to the initial VM. The system does not boot and the problem is the same.

I'm posting this here to see if anyone can help me fix this. I'll continue exploring solutions and reporting back here to help others with a similar problem.

Score:0
vi flag

After some tests:

  1. I changed the boot order in the second VM and the computer boot OK from the backup!
  2. Reassigning the disk back to the initial VM the computer didn't boot

So I explored the differences and noticed the new VM had a different SCSI controller. In the initial computer had an LSI 53C895A (default) controller, but the new VM had a VirtIO SCSI single

Solution: In the old VM, change the controller to VirtIO SCSI single and the system now boots.

During my process to shrink the surrounding qcow2 file, the scsi controller has been never changed so I don't know that could be the reason for this problem.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.