new comer questions on tgt,lio-utils and iscsitarget

211 views
Skip to first unread message

pilla...@gmail.com

unread,
Dec 2, 2014, 9:59:02 PM12/2/14
to open-...@googlegroups.com
hi
I am new to iscsi ,have some questions in learning,quite appreciate for your help and time

1 \ both lio-utils and tgt are pure user space program? Both of them are using the kernel iscsi module ? So ,what is the difference between them?
2 \ Are there any guide documents on how to setup a iscsi target using both tgt and lio-utils?

Thanks a lot for your help and time !

The Lee-Man

unread,
Dec 4, 2014, 4:13:35 PM12/4/14
to open-...@googlegroups.com
On Tuesday, December 2, 2014 6:59:02 PM UTC-8, pilla...@gmail.com wrote:
hi
I am new to iscsi ,have some questions in learning,quite appreciate for your help and time

This really isn't the place to ask about iSCSI targets, by the way. This list is for discussion of the open-iscsi iSCSI initiator package.

But I'll try to answer your questions.
 

1 \ both lio-utils and tgt are pure user space program? Both of them are using the kernel iscsi module ? So ,what is the difference between them?

No, I believe the "tgt" (or stgt) package uses a user-space daemon, but it only handles administration of connections. The transport is handled by the kernel. See http://stgt.sourceforge.net

The lio-utils package is being deprecated in favor of the targetcli package. Right now, targetcli works on top of lio-utils, but soon it will run standalone. See http://linux-iscsi.org/wiki/Lio-utils

The lio-utils/targetcli combo is configured in user space, but managed in kernel space. There is no user-space daemon running in this case.

Difference between them: plenty. Configured differently, different designs, and the Linux community has chosen targetcli moving forward. I have *not* benchmarked them, so I have no idea if one performs better than the other. Also, targetcli doesn't yet have every feature that tgt has, such as iSNS support, but targetcli is being actively developed/improved.

2 \ Are there any guide documents on how to setup a iscsi target using both tgt and lio-utils?

I have created some simple example documents, but they are SUSE-based. I haven't published them yet, but was thinking of setting up some place where I could do that. I could probably email them to you if you thought they might be useful.

Note: if you use targetcli, try the manual page, as it has enough information to set up a simple target.

pilla...@gmail.com

unread,
Dec 5, 2014, 1:40:48 AM12/5/14
to open-...@googlegroups.com
Hi,
Thanks for you  information ,that is great helpful!

在 2014年12月5日星期五UTC+8上午5时13分35秒,The Lee-Man写道:

Andy Grover

unread,
Dec 5, 2014, 2:42:12 PM12/5/14
to open-...@googlegroups.com, st...@vger.kernel.org
On 12/04/2014 01:13 PM, The Lee-Man wrote:
> On Tuesday, December 2, 2014 6:59:02 PM UTC-8, pilla...@gmail.com wrote:
> 1 \ both lio-utils and tgt are pure user space program? Both of them
> are using the kernel iscsi module ? So ,what is the difference
> between them?
>
> No, I believe the "tgt" (or stgt) package uses a user-space daemon, but
> it only handles administration of connections. The transport is handled
> by the kernel. See http://stgt.sourceforge.net

Actually the website is a little out of date. stgt moved to entirely
userspace, around 2011.

-- Andy

The Lee-Man

unread,
Dec 5, 2014, 3:20:50 PM12/5/14
to open-...@googlegroups.com, st...@vger.kernel.org
Interesting. The version on SUSE still uses tgtd. :-/

I suppose I could update it, but I spend most of my time on lio-utils/targetcli/targte-isns these days. 
Reply all
Reply to author
Forward
0 new messages