Can I safely remove old 'state-suspend' VM Disks?

Feb 17, 2020
106
18
38
44
Hi proxmox-fellows,

I noticed that I have a lot of old 'state-suspend' VM Disks that are eating up space on my Proxmox server. Can I safely remove them without corrupting the VMs?

Thanks!

1707995887113.png
 
I've done it like this
Code:
# list disks/ blockdevices:
root@pve-werk:/dev/pve# ls -la
total 0
drwxr-xr-x 2 root root 320 Jul 25 00:41 .
drwxr-xr-x 19 root root 4400 Jul 25 00:34 ..
lrwxrwxrwx 1 root root 7 Jul 25 00:34 root -> ../dm-1
lrwxrwxrwx 1 root root 7 Jul 25 00:34 swap -> ../dm-0
lrwxrwxrwx 1 root root 7 Jul 25 00:41 vm-100-disk-0 -> ../dm-6
lrwxrwxrwx 1 root root 7 Jul 25 00:41 vm-100-disk-1 -> ../dm-7
lrwxrwxrwx 1 root root 7 Jul 25 00:41 vm-100-disk-2 -> ../dm-8
lrwxrwxrwx 1 root root 7 Jul 25 00:34 vm-100-state-suspend-2024-03-27 -> ../dm-9
lrwxrwxrwx 1 root root 8 Jul 25 00:34 vm-100-state-suspend-2024-03-28 -> ../dm-10
lrwxrwxrwx 1 root root 8 Jul 25 00:34 vm-100-state-suspend-2024-04-24 -> ../dm-11
lrwxrwxrwx 1 root root 8 Jul 25 00:34 vm-100-state-suspend-2024-04-29 -> ../dm-12
lrwxrwxrwx 1 root root 8 Jul 25 00:34 vm-100-state-suspend-2024-07-24 -> ../dm-17
lrwxrwxrwx 1 root root 8 Jul 25 00:41 vm-101-disk-0 -> ../dm-13
lrwxrwxrwx 1 root root 8 Jul 25 00:41 vm-101-disk-1 -> ../dm-14
lrwxrwxrwx 1 root root 8 Jul 25 00:41 vm-101-disk-2 -> ../dm-15
lrwxrwxrwx 1 root root 8 Jul 25 00:34 vm-101-state-suspend-2024-07-23 -> ../dm-16
root@pve-werk:/dev/pve# ls ../dm
dm-0 dm-10 dm-12 dm-14 dm-16 dm-2 dm-4 dm-6 dm-8 dma_heap/
dm-1 dm-11 dm-13 dm-15 dm-17 dm-3 dm-5 dm-7 dm-9
root@pve-werk:/dev/pve# ls ../dm
dm-0 dm-10 dm-12 dm-14 dm-16 dm-2 dm-4 dm-6 dm-8 dma_heap/
dm-1 dm-11 dm-13 dm-15 dm-17 dm-3 dm-5 dm-7 dm-9
I would like to remove the disks with state-suspend in them, so like this:
Code:
# list the disks through proxmox interface
lvs
# remove all the 100 disks:
lvremove /dev/pve/vm-100-state-suspend-2024-0*
Do you really want to remove active logical volume pve/vm-100-state-suspend-2024-03-28? [y/n]: y
Logical volume "vm-100-state-suspend-2024-03-28" successfully removed.
...
# remove the single 101 disk:
lvremove vm-101-state-suspend-2024-07-23
 

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!