SSD for VMs Failed & was replaced how to best reconfigure and restore the VMs

danleeper80

New Member
Nov 14, 2025
1
0
1
Got a situation I have an existing PVE installation in which I experienced a failure of my NVMe SSD and lost the VMs. Thankfully I have backups and now have a replacement drive after waiting for months to have SanDisk replace it under warranty. Now I have my replacement drive I need to do a restore of the VMs however, the LVM PV & LV's were lost both Linux and PVE are still looking for the old drive. I know of one way to handle recovery which is just blow away, reinstall PVE and start over that way or can/should I delete and start over the LVM configuration. Pros/Cons? What is the best way to restore my VMs and have everything in a happy state in the end.

Thanks for the input in advance!
 
https://github.com/kneutron/ansitest/blob/master/proxmox/proxmox-create-lvm-thin.sh

https://github.com/kneutron/ansitest/blob/master/proxmox/proxmox-create-additional-lvm-thin.sh

Check out the scripts, EDIT before running. If you name the storage the same way it's currently defined in Datacenter / Storage, shouldn't have to do much. Otherwise might have to delete the lvm-thin in the GUI and redefine it after recreating on-disk.

You could also format the disk as a single-disk ZFS pool and get away from lvm-thin.

Also check out the bkpcrit script, point it to external disk / NAS, run it nightly in cron
 
Last edited: