[Openstack] ZFS/ZVol + iscsi for volume

Nicolas de BONFILS openstack at nicolas2bonfils.com
Sun Jun 10 09:15:56 UTC 2012


 

Hi Stackers,

I got an idea/question about iscsi volume.

Actually
the workflow is :

 	* create an LVM pool
 	* create a volume in this
pool (with nova command or horizon UI)
 	* share it with an iscsi target
(the compute/volume node)
 	* attach it with an iscsi initiator (the
VM)

I use zfs for other project, and I'm very interested in using it
everywhere (when possible). One functionality zfs bring is zvol : it
allows to create a block device from a zfs pool (a zfs property allow to
share this device with iscsi).
With this, a new workflow will be : 

 	*
create a zfs pool (zpool create <name> <device>)
 	* create a zvol block
device (zfs create -V <size> <poolname>/<volumename>)
 	* set the zfs
property to share it with iscsi (zfs set shareiscsi=on
<poolname>/<volumename>)
 	* attach it with an iscsi initiator (the
VM)

>From what I read, the Nexenta guys do a lot of work around zfs, but
for volume use I only found code to plug a Nexenta san (I do not have
the hardware to build a san), but no solution to use zfs drive/pool
directly.
So my 2 questions are : 

 	* are some people interested in it
?
 	* does it seem possible to do it (maybe some one already try) ? Nova
volume driver [github.com [1]] got subclasses for specific cases, maybe
a new zfs one.

Please discuss, submit ideas ! 

--- Nicolas


Links:
------
[1]
https://github.com/openstack/nova/blob/master/nova/volume/driver.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120610/4d66594f/attachment.html>


More information about the Openstack mailing list