can't run VM and disk file not found

elalem

New Member
Jan 9, 2024
2
0
1
Out of nowhere, the virtual machine refuses to run, prompting me to investigate further. To my surprise, the virtual machine's location has inexplicably vanished.
 
Hi,
what do you use for the underlying file system, LVM or ZFS? What exactly do you mean by the virtual machines' location? Is there no entry in the hardware tab, or is there an entry, but the disk doesn't exist?
 
using LVM

when i run vm shows the following message


()

Task viewer: VM 102 - Start

OutputStatus

Stop
kvm: -drive file=/dev/pve/vm-102-disk-0,if=none,id=drive-ide0,format=raw,cache=none,aio=io_uring,detect-zeroes=on: Could not open '/dev/pve/vm-102-disk-0': No such file or directory
TASK ERROR: start failed: QEMU exited with code 1
 
What's the output of lvs, is there any mention of the missing volume?
I would also check dmesg for warnings about corrupted lvm volumes and alike.
This could also be a hint of a failing disk. You can use S.M.A.R.T. to check the disk's self reported health [0].

Has anything been done to the system before the drive went missing, i.e. system updates, reboots, etc.?

[0] https://linuxconfig.org/how-to-check-an-hard-drive-health-from-the-command-line-using-smartctl
[1] https://www.suse.com/c/recovering-lost-lvm-volume-disk/#DiskBelongingtoaVolumeGroupRemoved
 

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!