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
 

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!