error snapshot already exists

Vcelak

Active Member
Nov 27, 2017
7
0
41
69
I have a problem with create snapshot:

1. verification of some snapshot 'qm listsnapshot'

# qm listsnapshot 402
cuuent no-parent You are here!

2. check snapshot in file qcow2
# qemu-img snapshot -l /data_SOSC/images/402/vm-402-disk-1.qcow2
(nothing)

3. command for create snapshot ends with error
# qm snapshot 402 KLON
VM 402 qmp command 'snapshot-drive' failed - snapshot 'KLON' already exists

My question, how delete snapshot 'KLON'? Thank you.
 
can you post your vm config? (qm config ID)
 
# qm config 402
agent: 1
balloon: 32768
bootdisk: scsi0
cores: 4
ide0: local:iso/openSUSE-Leap-15.0-DVD-x86_64.iso,media=cdrom
memory: 65536
name: sosc-HSS
net0: virtio=32:60:A2:0E:D1:ED,bridge=vmbr0
numa: 0
ostype: l26
scsi0: D_SOSC:402/vm-402-disk-1.qcow2,size=150G
scsi1: D_SOSC:1000/disk-sosc-conf.qcow2,size=100M
scsihw: virtio-scsi-pci
smbios1: uuid=23d61bcd-ef5e-44c3-8737-2f35fc0f3057
sockets: 2

# qemu-img snapshot -l /data_SOSC/images/1000/disk-sosc-conf.qcow2
(nothing)
 
and the other disk? scsi0: D_SOSC:402/vm-402-disk-1.qcow2,size=150G
 
Yes,
root@sosc:~/repo/util# pvesm path D_SOSC:401/vm-401-disk-1.qcow2
/data_SOSC/images/401/vm-401-disk-1.qcow2
root@sosc:~/repo/util# qemu-img snapshot -l /data_SOSC/images/401/vm-401-disk-1.qcow2
root@sosc:~/repo/util# pvesm path D_SOSC:1000/disk-sosc-conf.qcow2
/data_SOSC/images/1000/disk-sosc-conf.qcow2
root@sosc:~/repo/util# qemu-img snapshot -l /data_SOSC/images/1000/disk-sosc-conf.qcow2
 
I am sorry

root@sosc:~/repo/util# pvesm path D_SOSC:402/vm-402-disk-1.qcow2
/data_SOSC/images/402/vm-402-disk-1.qcow2
root@sosc:~/repo/util# qemu-img snapshot -l /data_SOSC/images/402/vm-402-disk-1.qcow2
root@sosc:~/repo/util# (nothing)
 
can you post the complete config (/etc/pve/qemu-server/402.conf)?
 
root@sosc:~/repo/util# cat /etc/pve/qemu-server/402.conf
agent: 1
balloon: 32768
bootdisk: scsi0
cores: 4
ide0: local:iso/openSUSE-Leap-15.0-DVD-x86_64.iso,media=cdrom
memory: 65536
name: sosc-HSS
net0: virtio=32:60:A2:0E:D1:ED,bridge=vmbr0
numa: 0
ostype: l26
scsi0: D_SOSC:402/vm-402-disk-1.qcow2,size=150G
scsi1: D_SOSC:1000/disk-sosc-conf.qcow2,size=100M
scsihw: virtio-scsi-pci
smbios1: uuid=23d61bcd-ef5e-44c3-8737-2f35fc0f3057
sockets: 2
 
ok it seems there are snapshots on the disk image which are not (yet) readable by qemu-img
does the vm still run? if yes, shut it down and try the 'qemu-img' command again
 
Thank you, shutdown helped

# qm stop 402
# qemu-img snapshot -l /data_SOSC/images/402/vm-402-disk-1.qcow2
# qemu-img snapshot -l /data_SOSC/images/1000/disk-sosc-conf.qcow2
# qm snapshot 402 KLON
# qm listsnapshot 402
KLON no-parent no-description
current KLON You are here!
# qm delsnapshot 402 KLON
# qm listsnapshot 402
current no-parent You are here!
# qm start 402
# qm snapshot 402 KLON
# qm listsnapshot 402
KLON no-parent no-description
current KLON You are here!
# qemu-img snapshot -l /data_SOSC/images/402/vm-402-disk-1.qcow2
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 KLON 0 2018-08-23 06:29:24 00:00:44.263
# qemu-img snapshot -l /data_SOSC/images/1000/disk-sosc-conf.qcow2
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 KLON 0 2018-08-23 06:29:28 00:00:44.263
# qm delsnapshot 402 KLON
# qm listsnapshot 402
current no-parent You are here!
 

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!