Ask Your Question
0

fastest way to delete an image in cinder

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

minimike gravatar image

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

Hi

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
0

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

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':

volume_clear=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

...in 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 124 times

Last updated: Mar 23 '15