Problem with delete snapshot

darkcell

New Member
Aug 10, 2016
2
0
1
38
Hello,

probably my question is stupid, but i have to be 100% sure, i need your help.
I have one VM with two disk:

vm1.jpg


I create one snapshot, but when i change file on VM, the size of this file almost doubled.
I try to remove snapshot from WWW, but after 5 min a get timeout and have to reboot VM becouse it freeze.

Right now on WWW in status is information "delete":

vm2,.jpg

When i check information about vm image:

qemu-img info /home/images/102/vm-102-disk-1.qcow2
image: /home/images/102/vm-102-disk-1.qcow2
file format: qcow2
virtual size: 500G (536870912000 bytes)
disk size: 866G
cluster_size: 65536
backing file: ../100/base-100-disk-1.qcow2 (actual path: /home/images/102/../100/base-100-disk-1.qcow2)
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false


du -sh /home/images/102/vm-102-disk-1.qcow2
867G /home/images/102/vm-102-disk-1.qcow2


I need to reclaim 400 GB space from this image. Right now i copy this VM on external hdd ( it take almost 7h) so i can't afford for mistake in this case.. restore copy of image take too long. Please explain me what can i do in this situation.

pve-manager/4.1-4/ccba54b0 (running kernel: 4.2.6-1-pve)
 
I tried again but still the same result..

qemu-img: Could not delete snapshot 'dodanieinterf': (Can't find the snapshot)
TASK ERROR: command '/usr/bin/qemu-img snapshot -d dodanieinterf /home/images/102/vm-102-disk-1.qcow2' failed: exit code 1
 
Yes, no this problem. Think it is an PVE Bug, but not shure. This is when delete process take to long. In this is case, you must do it manualy.

First check if the snapshot exist. So you command looks like there is no snapshot, but check too:
Code:
qemu-img snapshot -l /var/lib/vz/images/<VMID>/<vmid.qcow2
Is there really no snapshot, delete the snapshotsentry from the vmconfig.
Maybe this is helping you too, when i you understanding right: https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files
 

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!