Ask Your Question

fastest way to delete an image in cinder

asked 2015-03-19 21:08:05 -0500

minimike gravatar image

updated 2015-03-19 21:39:59 -0500


To remove on my test-environment an non-attached image with an size about 3 TB takes a couple of hoers. Is they a way to do this tasks in few minutes? Just remove the entry in the database and lvremove /dev/cinder-volumes/UUID-OF-IMAGE?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-23 10:26:49 -0500

Here's a couple of "clean" suggestions (ie: things you can do without resorting to force deletes). In your cinder.conf file, look for the 'volume_delete' setting - if it's not already, change it to 'none':


This allows Cinder to skip clearing the volume before deleting it. Also, look for 'lvm type' - if you can, consider setting this to 'thin':

lvm_type=thin other words, use thin provisioning. This will allow Cinder to only delete blocks that actually have data written to them, which provides a useful speedup. However, this only works if you're able to use thin provisioning in the first place. :)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-19 21:08:05 -0500

Seen: 151 times

Last updated: Mar 23 '15