How to delete snapshots not visible in UI

Sharky04

Active Member
Oct 30, 2018
11
0
41
44
I've tried to delete a snapshot of a container in Proxmox 6.1-8 web ui.
It was the first one of 13 snapshots. Got a message that the snapshot
doesn't exist. The container was now locked. I've unlocked it in the shell.

pct unlock 103

After that tried to delete the snapshot again, with the same result.
Unlocked again. This time I've decided to restore the local backup of the
container from the day before.
The restore process failed with an error and the container disappeared altogether from the UI.
Restored backup to a new ID (100), started, works fine.

My problem is now that all the snapshots of the old ID 103 container are present in the LVM.

lvscan

ACTIVE '/dev/pve/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve/root' [111.50 GiB] inherit
ACTIVE '/dev/pve/data' [<305.15 GiB] inherit
ACTIVE '/dev/pve/vm-103-disk-0' [40.00 GiB] inherit
inactive '/dev/pve/snap_vm-103-disk-0_created_nextcloud_db' [40.00 GiB] inherit
inactive '/dev/pve/snap_vm-103-disk-0_configured_nextcloud_db' [40.00 GiB] inherit
inactive '/dev/pve/snap_vm-103-disk-0_root_external_login' [40.00 GiB] inherit
inactive '/dev/pve/snap_vm-103-disk-0_production' [40.00 GiB] inherit


How to delete the snapshots without causing any further harm?
 
hi,

make a dummy CT with the ID 103, then run pct rescan

edit: correction
 
pct rescan
rescan volumes...
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2002.
 
Since pct rescan crashes I've deleted the snapshots with lvremove. I still don't have an idea why the problem surfaced in the first place. Deleting a snapshot should not cause a lockdown.
 

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!