Changing deletion block size in Cinder

asked 2013-05-07 16:51:30 -0600

briancline gravatar image

I've got Cinder running atop an LVM volume group as described in the install guide. Everything works -- creating, attaching, detaching, deleting, etc.

However, upon deleting a 100GB Cinder volume, I noticed it took quite a long time due to zeroing out the bits on disk to prevent data leak once an overlapping volume gets created. The first test took about ~11 minutes for this step to complete.

I'd definitely like to speed this up a bit, if possible. I've tried adjusting the volume_dd_blocksize option in /etc/cinder/cinder.conf from the default 1M to 4M, and restarted all Cinder services. However, creating then deleting a volume still yields the same block size being used when it gets wiped (dd ... bs=1M).

Is there some other place this option needs to go? My configuration currently consists of:

rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
debug = True
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder

# MySQL Connection #

# RabbitMQ #

# iSCSI and Volume Management #
iscsi_helper = tgtadm
iscsi_ip_address =
volume_name_template = volume-%s
volume_group = cinder-volumes
volume_dd_blocksize = 4M
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-05-09 22:25:22 -0600

briancline gravatar image

D'oh. Apologies. I didn't realize that the new volume_dd_blocksize option didn't make it into Grizzly and is currently only available in trunk. I'm using Grizzly packages.

Nothing to see here...

edit flag offensive delete link more

answered 2013-08-19 18:31:38 -0600

Arminder S Girgla gravatar image

You can disable that if you wish. For that, in cinder.conf, add the following line: secure_delete = False

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-05-07 16:51:30 -0600

Seen: 409 times

Last updated: Aug 19 '13