<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<pre>Hi Stackers,<br /><br />I got an idea/question about iscsi volume.<br /><br />Actually the workflow is :</pre>
<ol>
<li>create an LVM pool</li>
<li>create a volume in this pool (with nova command or horizon UI)</li>
<li>share it with an iscsi target (the compute/volume node)</li>
<li>attach it with an iscsi initiator (the VM)</li>
</ol>
<p>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).<br />With this, a new workflow will be :</p>
<ol>
<li>create a zfs pool (zpool create <name> <device>)</li>
<li>create a zvol block device (zfs create -V <size> <poolname>/<volumename>)</li>
<li>set the zfs property to share it with iscsi (zfs set shareiscsi=on <poolname>/<volumename>)</li>
<li>attach it with an iscsi initiator (the VM)</li>
</ol>
<p>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.<br />So my 2 questions are :</p>
<ol>
<li>are some people interested in it ?</li>
<li>does it seem possible to do it (maybe some one already try) ? Nova volume driver [<a href="https://github.com/openstack/nova/blob/master/nova/volume/driver.py">github.com</a>] got subclasses for specific cases, maybe a new zfs one.</li>
</ol>
<p> </p>
<p>Please discuss, submit ideas !</p>
<p>--- Nicolas</p>
</body></html>