Ask Your Question
3

Changing deletion block size in Cinder

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

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:

[DEFAULT]
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 #
sql_connection=mysql://cinder:111p455w0rd@10.1.2.3/cinder

# RabbitMQ #
rabbit_password=111p455w0rd

# iSCSI and Volume Management #
iscsi_helper = tgtadm
iscsi_ip_address = 10.90.18.152
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
2

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

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
1

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

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

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: 2013-05-07 16:51:30 -0500

Seen: 340 times

Last updated: Aug 19 '13