Ask Your Question
1

Delete a volume very slow

asked 2015-04-10 09:44:59 -0600

Steve gravatar image

When I create a volume, it is quick. But when I deleted a volume, such as a 5 GB volume, it took about 25 minute to finish the task. A larger volume took more time to be deleted. It is cinder storage node, icehouse.

Is this normal? Why it is so slow?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-10 11:09:22 -0600

jdexter gravatar image

updated 2015-04-10 11:10:35 -0600

Within cinder.conf there is a setting for wiping the old volumes when they are deleted. The default is to overwrite the entire volume with zeros. This means the larger the volume, the longer it takes to delete it. This process can take far longer then creating the volume, as creating the volume, cinder only has to allocate the appropriate space, not actually put any data in to it.

# Method used to wipe old voumes (valid options are: none,
# zero, shred) (string value)
#volume_clear=zero

# Size in MiB to wipe at start of old volumes. 0 => all
# (integer value)
#volume_clear_size=0

Change the values to either none to remove the wipe, or change the volume_clear_size=50 to only overwrite the first 50mb of the volume, thus wiping the partiton table if there is one.

edit flag offensive delete link more

Comments

It worked. Thanks!

Steve gravatar imageSteve ( 2015-04-10 12:29:28 -0600 )edit

I tried with volume_clear=zero + volume_clear_size=0 and also volume_clear=none, restart cinder services and still takes for ever to delete volumes (90 minutes for 800GB)

sacha-m gravatar imagesacha-m ( 2016-02-22 09:21:57 -0600 )edit

In the cinder.conf make sure to have the volume_clear=none under your selected driver section i.e.

[lvm] volume_clear=none

babak gravatar imagebabak ( 2016-10-24 13:11:45 -0600 )edit

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-04-10 09:44:59 -0600

Seen: 4,351 times

Last updated: Apr 10 '15