<div dir="ltr"><div><div>Hi Prasanna.<br><br></div>I follow this instruction <a href="https://github.com/gluster/gluster-block">https://github.com/gluster/gluster-block</a>, I use 2 gluster01,02 and create one gluster volume. when I user Window Server 2012 (iSCSI Initiator) to connect to iSCSI target over, it&#39;s connected but in Window don&#39;t recognize storage.<br><img src="cid:ii_j7j5ve2t0_15e7bc9c872b7f5a" width="561" height="200"><br><br></div>Size of gluster volume is 40GB. How to fix it?<br><div>​<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-13 18:34 GMT+07:00 Prasanna Kalever <span dir="ltr">&lt;<a href="mailto:pkalever@redhat.com" target="_blank">pkalever@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 13, 2017 at 1:03 PM, GiangCoi Mr &lt;<a href="mailto:ltrgiang86@gmail.com">ltrgiang86@gmail.com</a>&gt; wrote:<br>
&gt; Hi all<br>
&gt;<br>
<br>
Hi GiangCoi,<br>
<br>
The Good news is that now we have gluster-block [1] which will help<br>
you configure block storage using gluster very easy.<br>
gluster-block will take care of all the targetcli and tcmu-runner<br>
configuration for you, all you need as a pre-requisite is a gluster<br>
volume.<br>
<br>
And the sad part is we haven&#39;t tested gluster-block on centos, but<br>
just source compile should work IMO.<br>
<span class=""><br>
&gt; I want to configure glusterfs to expose iSCSI target. I followed this<br>
&gt; artical<br>
&gt; <a href="https://pkalever.wordpress.com/2016/06/23/gluster-solution-for-non-shared-persistent-storage-in-docker-container/" rel="noreferrer" target="_blank">https://pkalever.wordpress.<wbr>com/2016/06/23/gluster-<wbr>solution-for-non-shared-<wbr>persistent-storage-in-docker-<wbr>container/</a><br>
&gt; but when I install tcmu-runner. It doesn&#39;t work.<br>
<br>
</span>What is your environment, do you want to setup guster block storage in<br>
a container environment or is it just in a non-container centos<br>
environment ?<br>
<span class=""><br>
&gt;<br>
&gt; I setup on CentOS7 and installed tcmu-runner by rpm. When I run targetcli,<br>
&gt; it not show user:glfs and user:gcow<br>
&gt;<br>
&gt; /&gt; ls<br>
&gt; o- / ..............................<wbr>........................ [...]<br>
&gt;   o- backstores ..............................<wbr>............. [...]<br>
&gt;   | o- block ..............................<wbr>. [Storage Objects: 0]<br>
&gt;   | o- fileio .............................. [Storage Objects: 0]<br>
&gt;   | o- pscsi ..............................<wbr>. [Storage Objects: 0]<br>
&gt;   | o- ramdisk ............................. [Storage Objects: 0]<br>
&gt;   o- iscsi ..............................<wbr>........... [Targets: 0]<br>
&gt;   o- loopback ..............................<wbr>........ [Targets: 0]<br>
&gt;<br>
<br>
</span>BTW - have you started your tcmu-runner.service ?<br>
If your tcmu-runner service is running but you still cannot see them<br>
listed in the &#39;targetcli ls&#39; output, then it looks like your handlers<br>
were not loaded properly.<br>
<br>
In fedora, the default handler location will be at /usr/lib64/tcmu-runner<br>
<br>
[0] ॐ 04:55:22@~ $ ls /usr/lib64/tcmu-runner/<br>
handler_glfs.so<br>
<br>
Just try using --handler-path option<br>
[0] ॐ 04:56:05@~ $ tcmu-runner --handler-path /usr/lib64/tcmu-runner/ &amp;<br>
<br>
[0] ॐ 05:00:54@~ $ targetcli ls | grep glfs<br>
  | o- user:glfs<br>
..............................<wbr>..............................<wbr>..............................<wbr>....<br>
[Storage Objects: 0]<br>
<br>
If it works, then may be you can tweak the systemd unit, in case if<br>
you want to run it as a service<br>
<span class=""><br>
&gt; How I configure glusterfs to expose iSCSI. Please help me.<br>
<br>
</span>Feel free to parse gluster-block ReadMe [2]<br>
<br>
<br>
[1] <a href="https://github.com/gluster/gluster-block" rel="noreferrer" target="_blank">https://github.com/gluster/<wbr>gluster-block</a><br>
[2] <a href="https://github.com/gluster/gluster-block/blob/master/README.md" rel="noreferrer" target="_blank">https://github.com/gluster/<wbr>gluster-block/blob/master/<wbr>README.md</a><br>
<br>
Cheers!<br>
--<br>
Prasanna<br>
<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Giang<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
</blockquote></div><br></div>