[SOLVED] delete-drive-snapshot failed

Aug 17, 2014
20
0
1
Hi,

I'm trying to delete an old snapshot, but am getting this error:
Code:
[INDENT][COLOR=#000000][FONT=tahoma][COLOR=#000000][FONT=tahoma]TASK ERROR: VM 100 qmp command 'delete-drive-snapshot' failed - Device 'drive-ide0' not found[/FONT][/COLOR]
[/FONT][/COLOR][/INDENT]
The status of the snapshot says 'delete', but it's still there. The drive on this machine had been 'moved' from RAW to QCOW2 while this snapshot was present i guess.

Is there an other way to remove this snapshot?!


Thanx!
 
Last edited:

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
474
103
hi,
maybe the snapshot is only in the conf.
Why you know that the snapshot exists?
 
  • Like
Reactions: Romsch
Aug 17, 2014
20
0
1
Why you know that the snapshot exists?

Hi Wolfgang,

Not sure, it's still showing in the webgui. I'm not to familiar on the commandline and with the proxmox related files, so don't shoot me when i got this wrong:
Code:
# pwd
/var/lib/vz/images/100
# ll * | grep state
-rw-r--r-- 1 root root 1.2G Feb  5 09:15 vm-100-state-sme_upds_20150205.raw
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
474
103
So your vm has a raw format?
If it is so then it is not possible to have a snapshot on local filesystem.
snapshot are only provided with qcow2.
this means the snapshot is only in the config file.
you must erase it with an editor.

you should backup you conf file before you edit it.
nano /etc/pve/qemu-server/100.conf

the fist block is the current setting block do not edit it.

now you can erase all blocks what start like that

[snapname]
....

after you edit this file your snapshots are gone in the gui.
 
Aug 17, 2014
20
0
1
Hi Wolfgang,

Saw in that config file that the 'vm-100-state-sme_upds_20150205.raw'-file was from another snapshot, so whent ahead and removed the problematic snapshot-block from the config file. As far as i can tell it looks like it worked, thanks!


Kind regards.
 

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 your own in 60 seconds.

Buy now!