[SOLVED] How to get rid of phantom snapshots

muekno

Member
Dec 15, 2023
103
4
18
One of my VMs does not show any snapshot in GUI
qm list <VID> snaphot shows no snapshot, just you are here
zfs list -t snapshot does only list one of another VM
But looking at the VM store show me 3 snapshots, 2 for the VM that shows none not in GUI not in qm list, and the one of teh other VM shown in GUI too
trying to delete the phantom snapshot by remove from the VM store, don't let me to, as there still exists a VM with that VID.

Tried to clone the VM (12G in size), stops after 3.7G but but continues with message 3.7G fom 12G copied in x seconds and so one, but 3.7G stays for ever.
Triying a snapshot fails,
Triying a back up fail, does not finish

The VM iz self runs fine, but holds a central configuration for a lot of server, so it is important

Ned help
 
Code:
Linux pverh 6.8.4-3-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-3 (2024-05-02T11:55Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun  7 13:51:11 CEST 2024 from 172.16.1.200 on pts/0
root@pverh:~# qm config 502
agent: 1
balloon: 1024
boot: order=scsi0
cores: 2
hotplug: disk,network
memory: 2048
name: isp-master-172-16-1-240
net0: virtio=BC:24:11:99:71:A2,bridge=vmbr0
onboot: 1
ostype: l26
scsi0: VM_Space:vm-502-disk-0,discard=on,size=12G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=53d86eae-5ab2-41e1-8ffa-a2ce8ddca241
startup: order=1,up=30
vmgenid: 6755d7ed-feb2-4adf-a724-f49cfbe98760
vmstatestorage: VM_Space
root@pverh:~#

I can see 2 snapshot for that VM if I look at VM Disk on VM_Spcae, but I can not see them if I look at the VM under spapshots- I I try to remove them nder V_Space i get a message ist not possible asthere ist still an active VM

Regards

Rainer
 
Thank you for the output!

What Proxmox VE version are you running `pveversion -v` if you're sure to remove the snapshot, you can edit the VM config file in the `/etc/pve/qemu-server/VMID.conf` and delete the section of the snapshot you want to remove
 
Version 8.2.2 latest patches.

Thanks for quick answer and help, the snaps are old, not needed any more

Best Regards

Rainer
 
Code:
oot@pverh:~# cat /etc/pve/qemu-server/502.conf
agent: 1
balloon: 1024
boot: order=scsi0
cores: 2
hotplug: disk,network
memory: 2048
name: isp-master-172-16-1-240
net0: virtio=BC:24:11:99:71:A2,bridge=vmbr0
onboot: 1
ostype: l26
scsi0: VM_Space:vm-502-disk-0,discard=on,size=12G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=53d86eae-5ab2-41e1-8ffa-a2ce8ddca241
startup: order=1,up=30
vmgenid: 6755d7ed-feb2-4adf-a724-f49cfbe98760
vmstatestorage: VM_Space

[last]
agent: 1
balloon: 1024
boot: order=scsi0
cores: 2
hotplug: disk,network
memory: 2048
name: isp-master
net0: virtio=BC:24:11:99:71:A2,bridge=vmbr0
onboot: 1
ostype: l26
runningcpu: kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep
runningmachine: pc-i440fx-8.1+pve0
scsi0: VM_Space:vm-502-disk-0,discard=on,size=12G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=53d86eae-5ab2-41e1-8ffa-a2ce8ddca241
snapstate: delete
snaptime: 1716643266
startup: order=1,up=30
vmgenid: 6755d7ed-feb2-4adf-a724-f49cfbe98760
vmstatestorage: VM_Space
root@pverh:~#


so you mean these 2 lines
snapstate: delete
snaptime: 1716643266
 
Yes, edit the VM config and delete the following section from it:

Code:
[last]
agent: 1
balloon: 1024
boot: order=scsi0
cores: 2
hotplug: disk,network
memory: 2048
name: isp-master
net0: virtio=BC:24:11:99:71:A2,bridge=vmbr0
onboot: 1
ostype: l26
runningcpu: kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep
runningmachine: pc-i440fx-8.1+pve0
scsi0: VM_Space:vm-502-disk-0,discard=on,size=12G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=53d86eae-5ab2-41e1-8ffa-a2ce8ddca241
snapstate: delete
snaptime: 1716643266
startup: order=1,up=30
vmgenid: 6755d7ed-feb2-4adf-a724-f49cfbe98760
vmstatestorage: VM_Space

Make sure that you have a backup of the VM config in order if you did any mistake.
 
  • Like
Reactions: muekno
Hello,

removed the lines you noted, yesterday. Did restarted the VM, VM works still fine, but in VM_Space I can still see the Snapshots, but still not in the VM. Waited till this morning hopeing they will dissapear, but they did not and are still not deletable.

Kind Regards

Rainer
 
Code:
inux pverh 6.8.4-3-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-3 (2024-05-02T11:55Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun 12 16:05:27 CEST 2024 on pts/0
root@pverh:~# zfs list
NAME                                   USED  AVAIL  REFER  MOUNTPOINT
VMs                                    559G   341G    24K  /VMs
VMs/vm-500-disk-0                     6.99G   341G  6.99G  -
VMs/vm-501-disk-0                     1.46G   341G  1.46G  -
VMs/vm-502-disk-0                     5.20G   341G  5.20G  -
VMs/vm-502-state-before-local-backup    12K   341G    12K  -
VMs/vm-502-state-before-update          12K   341G    12K  -
VMs/vm-503-disk-0                     3.44G   341G  3.44G  -
VMs/vm-504-disk-0                     9.17G   341G  9.17G  -
VMs/vm-505-disk-0                     6.15G   341G  6.15G  -
VMs/vm-506-disk-0                     1.64G   341G  1.64G  -
VMs/vm-506-disk-1                     1.65G   341G  1.65G  -
VMs/vm-506-disk-2                     2.36G   341G  2.36G  -
VMs/vm-507-disk-0                      493G   341G   493G  -
VMs/vm-508-disk-0                     24.9G   341G  24.9G  -
VMs/vm-510-disk-0                       12K   341G    12K  -
VMs/vm-510-disk-1                     2.66G   341G  2.66G  -
root@pverh:~#

the two 502 snapshots are the problem

Kind Regards
Rainer
 
If you are sure that you really not need those snapshots, you can delete them using the following command:
Code:
zfs destroy VMs/vm-502-state-before-local-backup
zfs destroy VMs/vm-502-state-before-update

Make sure that you have a valid backup for the VM before you remove them.
 
  • Like
Reactions: muekno

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!