Jump to: navigation, search

Difference between revisions of "Mellanox-Cinder"

(References)
(Installation)
Line 1: Line 1:
 
= Overview =  
 
= Overview =  
 
iSER (iSCSI over RDMA) Mellanox OpenStack support to Cinder
 
iSER (iSCSI over RDMA) Mellanox OpenStack support to Cinder
 +
 +
= Benefits =
 +
This can allow 5x faster bandwidth compared to using iSCSI TCP.
 +
For example, over RAM device LUN I got ~1.3GBps Vs. ~5.5GBps (TCP Vs. iSER), and much lower CPU overhead.
  
 
= Installation =
 
= Installation =
In order to add iSER support to Cinder perform the following operations:
 
  
1. Update the two flags in /etc/cinder/cinder.conf.
+
== Configuration ==
  transport = iser (by default will be iscsi)
+
In order to enable iSER, need to adjust these values at '''/etc/cinder/cinder.conf''':
  iser_ip_address = 192.168.20.140 (by default will be "iscsi_ip_address")
+
 
+
iser_ip_address = <ipoib/roce_address>
2. Replace the files under cinder/volume.
+
volume_driver = cinder.volume.drivers.lvm.LVMISERDriver
   
+
 
* driver.py
+
'''iser_ip_address''' is required to do a "discovery" over the IB/RoCE interface from the initiator side.
* iscsi.py
+
 
+
'''volume_driver''' points cinder to use the ISERDriver, instead the LVMISCSIDriver.
 +
 
 +
 
 +
On nova-compute side change the following in '''/etc/nova/nova.conf''':
 +
 
 +
  libvirt_volume_drivers = iser=nova.virt.libvirt.volume.LibvirtISERVolumeDriver
  
3. Replace the file under nova/virt/libvirt.
+
== Getting the code ==
+
wget https://github.com/mellanox-openstack/cinder-iser/archive/stable/grizzly.zip
* volume.py
+
  cd cinder-iser-stable-grizzly
   
 
  
 +
== Applying the patches ==
 +
You have two choices:
 +
# To apply this support, replace the files under "cinder/cinder/" And "nova/nova/" Respectively.
 +
# Apply the patches under "cinder/" And "nova/", don't forget to copy "cinder/cinder/volume/iser.py" if you choose this way.
  
For additional details refer to "*.patch" files.
+
== Restarting the services ==
 +
Restart Cinder and Nova compute services
  
 
= References =
 
= References =

Revision as of 07:08, 1 September 2013

Overview

iSER (iSCSI over RDMA) Mellanox OpenStack support to Cinder

Benefits

This can allow 5x faster bandwidth compared to using iSCSI TCP. For example, over RAM device LUN I got ~1.3GBps Vs. ~5.5GBps (TCP Vs. iSER), and much lower CPU overhead.

Installation

Configuration

In order to enable iSER, need to adjust these values at /etc/cinder/cinder.conf:

iser_ip_address = <ipoib/roce_address>
volume_driver = cinder.volume.drivers.lvm.LVMISERDriver

iser_ip_address is required to do a "discovery" over the IB/RoCE interface from the initiator side.

volume_driver points cinder to use the ISERDriver, instead the LVMISCSIDriver.


On nova-compute side change the following in /etc/nova/nova.conf:

libvirt_volume_drivers = iser=nova.virt.libvirt.volume.LibvirtISERVolumeDriver

Getting the code

wget https://github.com/mellanox-openstack/cinder-iser/archive/stable/grizzly.zip
cd cinder-iser-stable-grizzly

Applying the patches

You have two choices:

  1. To apply this support, replace the files under "cinder/cinder/" And "nova/nova/" Respectively.
  2. Apply the patches under "cinder/" And "nova/", don't forget to copy "cinder/cinder/volume/iser.py" if you choose this way.

Restarting the services

Restart Cinder and Nova compute services

References

1. OpenStack solution page at Mellanox site

2. Source repository

3. Mellanox OFED web page

For more details, please refer any inquiries to openstack@mellanox.com.


Return to Mellanox-OpenStack wiki page.