openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #13009
ZFS/ZVol + iscsi for volume
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
Follow ups