remove old VM's from 2nd volume after PVE wipe/reload

danno91

New Member
Nov 12, 2022
1
0
1
Hello,

I am new to the Proxmox world and have setup a Proxmox server. I had made good headway but broke something along the way so I chose to reload.
The Proxmox VE is on the first partition (RAID 1 array). The VM I had created lives on the 2nd partition (2nd array - RAID10). This was becuase my Dell Perc RAID controller
does not support ZFS from what I read. So I have a 'thinpool' on the 2nd array/volume.

I would like to either safely delete the VM disks and anything else taking up space on the 2nd volume, OR create a new VM and just point it to those VM disks.
I had created an OS disk and a 2nd disk for storage. See the picture here. The vm disks are highlighted in blue below. Any thoughts on what route to go would be appreciated! Thanks,

Proxmox-lsblk.PNG
 
Hi,
Here are my thoughts:
You can remove a vm with `qm destroy` (see `man qm destroy`) but that might leave some artefacts in config files, although, since you reset your proxmox probably not.

The better way is to remove a vm via the webinterface, which brings me to my next thought:
I am guessing since you reset your proxmox you can't access your thinpool, and with that your vms? You should be able to re-add the pool in the proxmox webinterface under `Datacenter` -> `Storage` -> `Add` and then re-add your lvm thin pool (it should be listed, hopefully)

Regarding how to mount a vm disk to a newly created vm:
If you decide to make a new vm, don't add a disk in the creation. Then, move the desired disks to the vm with `qm move-disk`. In the webinterface you can now attach those disks by klicking on the `vm` -> `hardware` -> the desired disk -> `edit` -> `add`.
In the `options` menu, change the boot order and add scsio. You should now be able to boot into the disks.

Hope this helps