Wiped proxmox 7 and installed 8 - can recover vmdata disk?

BlackCamel

New Member
Feb 4, 2024
2
0
1
Hi,
I had issues with boot loader and kernel upgrade with migrating from version 7 to 8.
Wiped and re-installed ProxMox 8. My vmdata LVM is still available but I cannot access or create a VM. Is there a way to recover, get access to the partition with VM data? Or wipe? Getting error 500 when trying to wipe because of LVM, of course. Here is the result:


Code:
root@pve-labs:~# lvs
  LV            VG     Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data          pve    twi-a-tz-- <348.82g             0.00   0.48
  root          pve    -wi-ao----   96.00g
  swap          pve    -wi-ao----    8.00g
  vm-100-disk-0 vmdata -wi-a-----  128.00g
  vm-100-disk-1 vmdata -wi-a-----  300.00g
  vm-101-disk-0 vmdata -wi-a-----  128.00g
  vm-123-disk-0 vmdata -wi-a-----  128.00g
  vm-540-disk-1 vmdata -wi-a-----  128.00g
root@pve-labs:~# vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  pve      1   3   0 wz--n- <475.94g   16.00g
  vmdata   1   5   0 wz--n- <953.87g <141.87g
root@pve-labs:~# pvs
  PV             VG     Fmt  Attr PSize    PFree
  /dev/nvme0n1p3 pve    lvm2 a--  <475.94g   16.00g
  /dev/nvme1n1   vmdata lvm2 a--  <953.87g <141.87g
root@pve-labs:~#
 
Ahhh I was able to remove the LV and the VG using lvm command. Then I could wipe the disk using the graphic interface or could have worked with dd /dev/zeros I guess. Anyway, it worked.
Next step was to initialize the disk with GPT and now I can finally create a new LVM-thin and re-create VMs!
 

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!