← Back to team overview

openstack team mailing list archive

Re: two problems about the volume service



About the volume services support in Xenserver, the iSCSI driver should work simply by starting the volume service with default flags.

You could take a look at the volumes.sh exercises script (https://github.com/openstack-dev/devstack/blob/master/exercises/volumes.sh) to check if you missed something.

If you would like to use the storage manager volume driver for Xen, (http://docs.openstack.org/trunk/openstack-compute/admin/content/xensm.html), here are the configuration details: http://docs.openstack.org/trunk/openstack-compute/admin/content/xensmconfig.html


From: "Lv, Hui" <hui.lv@xxxxxxxxx<mailto:hui.lv@xxxxxxxxx>>
Date: Mon, 12 Mar 2012 08:04:55 -0700
To: "openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>" <openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>>
Subject: [Openstack] two problems about the volume service

Hi openstack list,

I have two problems related to openstack volume service. I really appreciate your kind reply.

1)Recently, we have measured the volume service performance by selecting the “tgt” as the target management software.(We use Diablo Openstack and KVM as the underlying hypervisor)
We created 8 instances, each of which was assigned one iscsi disk from openstack volume service (RAID0 storage as the LVM volumes with up to 800 MB/s local sequential READ I/O badnwidth).
These 8 instances were distributed on 8 physical machines, each of which was assigned 1Gb network bandwidth.
We measured the sequential READ (aio-stress) simultaneously from these 8 instances and identified the total READ I/O bandwidth can only reach up to ~100 MB/s.
We observed the iscsi target was not created in “O_DIRECT” mode, (hard coded in */nova/volume/driver.py).
After changing to use “O_DIRECT” mode, by adding “--bsoflags=direct”, the sequential READ I/O bandwidth can reach to ~250 MB/s, greatly improved.

My question is that, why not use “O_DIRECT” mode for “tgt” iscsi target creation? Is there any special consideration? As I know, another target management software “iet” created the iscsi target as “O_DIRECT” mode by default.
Also, we observed that “iet” has better I/O performance than “tgt”. We measured this in 8 native system instead of instances, since our openstack (diablo) does not support iet.

We added the “O_DIRECT” mode in the following way:
self._execute('tgtadm', '--op', 'new',
                  '--lld=iscsi', '--mode=logicalunit',
                  "--tid=%s" % iscsi_target,
                  "--backing-store=%s,Type=fileio" % volume_path,

2)Does Xenserver support volume services? Is there any document to introduce how to enable volume for Xenserver?
Because, when I attached a volume target to an instance created on Xenserver by using euca tools, no such iscsi target appeared on the instance. Also there were no error messages from log files.

Best regards,