[SOLVED] delete-drive-snapshot failed

jester

Renowned Member
Aug 17, 2014
23
1
68
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:
hi,
maybe the snapshot is only in the conf.
Why you know that the snapshot exists?
 
  • Like
Reactions: Romsch
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
 
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.
 
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.