Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Creating cinder volume from image is extremely slow

I'm running OpenStack Havana with Cinder and Neutron. I am trying to create volumes from images stored in Glance to attach to a new instance at boot time (i.e. i'm not trying to create a bootable volume, I'm trying to create additional volumes for an instance). Unfortunately, creating these volumes seems extremely slow. It takes well over a minute per GB to create these volumes. I'm wondering if this is expected behavior or if perhaps there is a problem with my configuration.

I have Cinder configured in a somewhat un-orthodox way:

  • I have an HP Proliant server running Ubuntu 12.04LTS that acts as a compute node as well as the Cinder node.
  • This server has 4 1TB disks configured using Raid 5 (so they look like on 3TB drive).
  • Ubuntu is configured to use LVM,
  • The whole 3TB drive is exposed as one single Volume Group -The physical host uses one logical volume for the Ubuntu OS
  • Cinder is configured to allocate volumes from the same Volume Group (i.e. there is no separate volume group dedicated to Cinder)

Everything seems to work fine, except for the performance aspect. Is anything wrong here?

I'm attaching my cinder.conf in case that helps:

[DEFAULT]

GENERAL CONFIG

verbose = True policy_file=policy.json rootwrap_config = /etc/cinder/rootwrap.conf

SQL OPTIONS

sql_connection = mysql://cinder:Ll6BbUvloSDSW836D1Z4@10.1.10.34/cinder

ISCSI OPTIONS

iscsi_helper = tgtadm iscsi_ip_address = 10.1.10.32

RPC OPTIONS

rpc_backend=cinder.openstack.common.rpc.impl_kombu rabbit_host = 10.1.10.34 rabbit_port = 5672 rabbit_ha_queues = True

notification_driver = cinder.openstack.common.notifier.no_op_notifier notification_topics = notifications

API OPTIONS

auth_strategy = keystone api_paste_confg = /etc/cinder/api-paste.ini notification_driver=cinder.openstack.common.notifier.rpc_notifier osapi_volume_listen = 10.1.10.32 osapi_volume_listen_port = 8776

STORAGE OPTIONS

state_path = /var/lib/cinder lock_path = /var/lock/cinder volumes_dir = /var/lib/cinder/volumes volume_name_template = volume-%s storage_availability_zone = nova max_gigabytes = 10000 glance_host = 10.1.10.34

STORAGE PROVIDER INFORMATION

volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver volume_group=ubctsrv1-vg volume_clear=zero volume_clear_size=0 volume_pool_size=None

KEYSTONE OPTIONS

[keystone_authtoken] signing_dirname = /tmp/keystone-signing-cinder service_protocol = http service_host = 10.1.10.34 service_port = 5000 auth_host = 10.1.10.34 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = cinder