<div dir="ltr"><div>Thanks so much your answers.<br></div>I will try gluster-block.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-13 18:34 GMT+07:00 Prasanna Kalever <span dir="ltr"><<a href="mailto:pkalever@redhat.com" target="_blank">pkalever@redhat.com</a>></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 <<a href="mailto:ltrgiang86@gmail.com">ltrgiang86@gmail.com</a>> wrote:<br>
> Hi all<br>
><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't tested gluster-block on centos, but<br>
just source compile should work IMO.<br>
<span class=""><br>
> I want to configure glusterfs to expose iSCSI target. I followed this<br>
> artical<br>
> <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>
> but when I install tcmu-runner. It doesn'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>
><br>
> I setup on CentOS7 and installed tcmu-runner by rpm. When I run targetcli,<br>
> it not show user:glfs and user:gcow<br>
><br>
> /> ls<br>
> o- / ..............................<wbr>........................ [...]<br>
> o- backstores ..............................<wbr>............. [...]<br>
> | o- block ..............................<wbr>. [Storage Objects: 0]<br>
> | o- fileio .............................. [Storage Objects: 0]<br>
> | o- pscsi ..............................<wbr>. [Storage Objects: 0]<br>
> | o- ramdisk ............................. [Storage Objects: 0]<br>
> o- iscsi ..............................<wbr>........... [Targets: 0]<br>
> o- loopback ..............................<wbr>........ [Targets: 0]<br>
><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 'targetcli ls' 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/ &<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>
> 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>
><br>
> Regards,<br>
><br>
> Giang<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Gluster-users mailing list<br>
> <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
> <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>