Discussion:
[Gluster-users] glusterfs expose iSCSI
GiangCoi Mr
2017-09-13 07:33:59 UTC
Permalink
Hi all

I want to configure glusterfs to expose iSCSI target. I followed this
artical
https://pkalever.wordpress.com/2016/06/23/gluster-solution-for-non-shared-persistent-storage-in-docker-container/
but when I install tcmu-runner. It doesn't work.

I setup on CentOS7 and installed tcmu-runner by rpm. When I run targetcli,
it not show *user:glfs* and *user:gcow*

*/>* ls
o- / ...................................................... [...]
o- backstores ........................................... [...]
| o- block ............................... [Storage Objects: 0]
| o- fileio .............................. [Storage Objects: 0]
| o- pscsi ............................... [Storage Objects: 0]
| o- ramdisk ............................. [Storage Objects: 0]
o- iscsi ......................................... [Targets: 0]
o- loopback ...................................... [Targets: 0]

How I configure glusterfs to expose iSCSI. Please help me.

Regards,

Giang
Prasanna Kalever
2017-09-13 11:34:33 UTC
Permalink
Post by GiangCoi Mr
Hi all
Hi GiangCoi,

The Good news is that now we have gluster-block [1] which will help
you configure block storage using gluster very easy.
gluster-block will take care of all the targetcli and tcmu-runner
configuration for you, all you need as a pre-requisite is a gluster
volume.

And the sad part is we haven't tested gluster-block on centos, but
just source compile should work IMO.
Post by GiangCoi Mr
I want to configure glusterfs to expose iSCSI target. I followed this
artical
https://pkalever.wordpress.com/2016/06/23/gluster-solution-for-non-shared-persistent-storage-in-docker-container/
but when I install tcmu-runner. It doesn't work.
What is your environment, do you want to setup guster block storage in
a container environment or is it just in a non-container centos
environment ?
Post by GiangCoi Mr
I setup on CentOS7 and installed tcmu-runner by rpm. When I run targetcli,
it not show user:glfs and user:gcow
/> ls
o- / ...................................................... [...]
o- backstores ........................................... [...]
| o- block ............................... [Storage Objects: 0]
| o- fileio .............................. [Storage Objects: 0]
| o- pscsi ............................... [Storage Objects: 0]
| o- ramdisk ............................. [Storage Objects: 0]
o- iscsi ......................................... [Targets: 0]
o- loopback ...................................... [Targets: 0]
BTW - have you started your tcmu-runner.service ?
If your tcmu-runner service is running but you still cannot see them
listed in the 'targetcli ls' output, then it looks like your handlers
were not loaded properly.

In fedora, the default handler location will be at /usr/lib64/tcmu-runner

[0] ॐ 04:55:22@~ $ ls /usr/lib64/tcmu-runner/
handler_glfs.so

Just try using --handler-path option
[0] ॐ 04:56:05@~ $ tcmu-runner --handler-path /usr/lib64/tcmu-runner/ &

[0] ॐ 05:00:54@~ $ targetcli ls | grep glfs
| o- user:glfs
..............................................................................................
[Storage Objects: 0]

If it works, then may be you can tweak the systemd unit, in case if
you want to run it as a service
Post by GiangCoi Mr
How I configure glusterfs to expose iSCSI. Please help me.
Feel free to parse gluster-block ReadMe [2]


[1] https://github.com/gluster/gluster-block
[2] https://github.com/gluster/gluster-block/blob/master/README.md

Cheers!
--
Prasanna
Post by GiangCoi Mr
Regards,
Giang
_______________________________________________
Gluster-users mailing list
http://lists.gluster.org/mailman/listinfo/gluster-users
GiangCoi Mr
2017-09-13 12:16:38 UTC
Permalink
Thanks so much your answers.
I will try gluster-block.
Post by Prasanna Kalever
Post by GiangCoi Mr
Hi all
Hi GiangCoi,
The Good news is that now we have gluster-block [1] which will help
you configure block storage using gluster very easy.
gluster-block will take care of all the targetcli and tcmu-runner
configuration for you, all you need as a pre-requisite is a gluster
volume.
And the sad part is we haven't tested gluster-block on centos, but
just source compile should work IMO.
Post by GiangCoi Mr
I want to configure glusterfs to expose iSCSI target. I followed this
artical
https://pkalever.wordpress.com/2016/06/23/gluster-
solution-for-non-shared-persistent-storage-in-docker-container/
Post by GiangCoi Mr
but when I install tcmu-runner. It doesn't work.
What is your environment, do you want to setup guster block storage in
a container environment or is it just in a non-container centos
environment ?
Post by GiangCoi Mr
I setup on CentOS7 and installed tcmu-runner by rpm. When I run
targetcli,
Post by GiangCoi Mr
it not show user:glfs and user:gcow
/> ls
o- / ...................................................... [...]
o- backstores ........................................... [...]
| o- block ............................... [Storage Objects: 0]
| o- fileio .............................. [Storage Objects: 0]
| o- pscsi ............................... [Storage Objects: 0]
| o- ramdisk ............................. [Storage Objects: 0]
o- iscsi ......................................... [Targets: 0]
o- loopback ...................................... [Targets: 0]
BTW - have you started your tcmu-runner.service ?
If your tcmu-runner service is running but you still cannot see them
listed in the 'targetcli ls' output, then it looks like your handlers
were not loaded properly.
In fedora, the default handler location will be at /usr/lib64/tcmu-runner
handler_glfs.so
Just try using --handler-path option
| o- user:glfs
............................................................
..................................
[Storage Objects: 0]
If it works, then may be you can tweak the systemd unit, in case if
you want to run it as a service
Post by GiangCoi Mr
How I configure glusterfs to expose iSCSI. Please help me.
Feel free to parse gluster-block ReadMe [2]
[1] https://github.com/gluster/gluster-block
[2] https://github.com/gluster/gluster-block/blob/master/README.md
Cheers!
--
Prasanna
Post by GiangCoi Mr
Regards,
Giang
_______________________________________________
Gluster-users mailing list
http://lists.gluster.org/mailman/listinfo/gluster-users
GiangCoi Mr
2017-09-13 15:10:10 UTC
Permalink
Hi Prasanna.

I follow this instruction https://github.com/gluster/gluster-block, 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's connected but in
Window don't recognize storage.


Size of gluster volume is 40GB. How to fix it?
​
Post by Prasanna Kalever
Post by GiangCoi Mr
Hi all
Hi GiangCoi,
The Good news is that now we have gluster-block [1] which will help
you configure block storage using gluster very easy.
gluster-block will take care of all the targetcli and tcmu-runner
configuration for you, all you need as a pre-requisite is a gluster
volume.
And the sad part is we haven't tested gluster-block on centos, but
just source compile should work IMO.
Post by GiangCoi Mr
I want to configure glusterfs to expose iSCSI target. I followed this
artical
https://pkalever.wordpress.com/2016/06/23/gluster-
solution-for-non-shared-persistent-storage-in-docker-container/
Post by GiangCoi Mr
but when I install tcmu-runner. It doesn't work.
What is your environment, do you want to setup guster block storage in
a container environment or is it just in a non-container centos
environment ?
Post by GiangCoi Mr
I setup on CentOS7 and installed tcmu-runner by rpm. When I run
targetcli,
Post by GiangCoi Mr
it not show user:glfs and user:gcow
/> ls
o- / ...................................................... [...]
o- backstores ........................................... [...]
| o- block ............................... [Storage Objects: 0]
| o- fileio .............................. [Storage Objects: 0]
| o- pscsi ............................... [Storage Objects: 0]
| o- ramdisk ............................. [Storage Objects: 0]
o- iscsi ......................................... [Targets: 0]
o- loopback ...................................... [Targets: 0]
BTW - have you started your tcmu-runner.service ?
If your tcmu-runner service is running but you still cannot see them
listed in the 'targetcli ls' output, then it looks like your handlers
were not loaded properly.
In fedora, the default handler location will be at /usr/lib64/tcmu-runner
handler_glfs.so
Just try using --handler-path option
| o- user:glfs
............................................................
..................................
[Storage Objects: 0]
If it works, then may be you can tweak the systemd unit, in case if
you want to run it as a service
Post by GiangCoi Mr
How I configure glusterfs to expose iSCSI. Please help me.
Feel free to parse gluster-block ReadMe [2]
[1] https://github.com/gluster/gluster-block
[2] https://github.com/gluster/gluster-block/blob/master/README.md
Cheers!
--
Prasanna
Post by GiangCoi Mr
Regards,
Giang
_______________________________________________
Gluster-users mailing list
http://lists.gluster.org/mailman/listinfo/gluster-users
Loading...