How to remove failed disk and associated VM's?

Sparkytech

Active Member
Jan 23, 2016
11
1
43
55
I recently had one of my drives ("Disk2", sdb) fail, which had 2 VM's on it. Not a big deal, as I was just getting started setting them up. I cant seem to remove these VM's (103 & 105) from Proxmox. I get a "Volume group "Data-Store2" not found. TASK ERROR: can't activate LV 'Data-Store2/vm-105-disk-1' to zero-out its data: Cannot process volume group Data-Store2" error.

I want to remove these and then install a new disk to sdb. When I attempt to install the new disk to sdb, and I run "pvcreate /dev/sdb1", I get a "Can't open /dev/sdb1 exclusively. Mounted Filesystem?" Any ideas how I can remove the old Disk and VM's, and get the new drive working? I am very new to Proxmox, so please keep it as simple as possible.

Capture.JPG
 
If you do not have any Backups and no desire to use the VM's ever again do the following:
Code:
nano /etc/pve/qemu-server/<vmID.conf>
or
nano /etc/pve/nodes/<NodeName>/qemu-server/<vmID.conf>

and remove the offending vDisk.
then ctrl+X, Y
Now you can remove the VM from your node(s)