Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2022 19:00:11 +0000
From:      Michael Jung <mikej@paymentallianceintl.com>
To:        mike tancsa <mike@sentex.net>, freebsd-fs <freebsd-fs@freebsd.org>
Subject:   RE: ctl.conf / iscsi docs and best practices
Message-ID:  <76fdc117f673476189d3fd7a2424c76e@MAIL-HUB.pai.local>
In-Reply-To: <108defea-700e-d1e0-e210-d32a8af5e8f0@sentex.net>
References:  <108defea-700e-d1e0-e210-d32a8af5e8f0@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--MCBoundary=_12203141500149031
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64

SSBqdXN0IHN0YXJ0ZWQgd29ya2luZyB3aXRoIHRoZSB0YXJnZXQgYWdhaW4gYWJvdXQgYSB3ZWVr
IGFnbywgaGVyZSBpcyBteSBzZXR1cC4NCg0KRm9yIHR3byByZW1vdGUgaW5pdGlhdG9ycyB0byBj
b25uZWN0IHRvIHRoZSBzYW1lIHRhcmdldCB5b3UgbmVlZA0Kb3B0aW9uICJoYSBzaGFyZWQiICJv
biINCg0KTWF5YmUgdGhpcyBoZWxwcyB5b3UgYSBsaXR0bGUuDQoNCi0tbWlrZWoNCg0KcG9ydGFs
LWdyb3VwICJwZzAiIHsNCiAgICAgICAgZGlzY292ZXJ5LWF1dGgtZ3JvdXAgIm5vLWF1dGhlbnRp
Y2F0aW9uIg0KICAgICAgICBsaXN0ZW4gIjE5Mi4xNjguNi4xMTozMjYwIg0KICAgICAgICBsaXN0
ZW4gIls6Ol06MzI2MCINCiAgICAgICAgb3B0aW9uICJoYV9zaGFyZWQiICJvbiINCn0NCg0KDQph
dXRoLWdyb3VwICJhZzAiIHsNCiAgICAgICAgaW5pdGlhdG9yLW5hbWUgImlxbi4xOTk4LTAxLmNv
bS52bXdhcmU6aHYxLTM5NzJlYWYzIg0KICAgICAgICBpbml0aWF0b3ItbmFtZSAiaXFuLjE5OTgt
MDEuY29tL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1pbWVjYXN0IGludGVncmF0
ZXMgZW1haWwgZGVmZW5zZXMgd2l0aCBicmFuZCBwcm90ZWN0aW9uLCBzZWN1cml0eSBhd2FyZW5l
c3MgdHJhaW5pbmcsIHdlYiBzZWN1cml0eSwgY29tcGxpYW5jZSBhbmQgb3RoZXIgZXNzZW50aWFs
IGNhcGFiaWxpdGllcy4gTWltZWNhc3QgaGVscHMgcHJvdGVjdCBsYXJnZSBhbmQgc21hbGwgb3Jn
YW5pemF0aW9ucyBmcm9tIG1hbGljaW91cyBhY3Rpdml0eSwgaHVtYW4gZXJyb3IgYW5kIHRlY2hu
b2xvZ3kgZmFpbHVyZTsgYW5kIHRvIGxlYWQgdGhlIG1vdmVtZW50IHRvd2FyZCBidWlsZGluZyBh
IG1vcmUgcmVzaWxpZW50IHdvcmxkLiBUbyBmaW5kIG91dCBtb3JlLCB2aXNpdCBvdXIgd2Vic2l0
ZS4NCg==
--MCBoundary=_12203141500149031
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><style type=3D"text/css">.style1 {font-family: "Times New Roman=
";}</style></head><body>I just started working with the target again about =
a week ago, here is my setup.<BR>
<BR>
For two remote initiators to connect to the same target you need<BR>
option &quot;ha shared&quot; &quot;on&quot;<BR>
<BR>
Maybe this helps you a little.<BR>
<BR>
--mikej<BR>
<BR>
portal-group &quot;pg0&quot; {<BR>
        discovery-auth-group &quot;no-authentication&quot;<BR>
        listen &quot;192.168.6.11:3260&quot;<BR>
        listen &quot;[::]:3260&quot;<BR>
        option &quot;ha_shared&quot; &quot;on&quot;<BR>
}<BR>
<BR>
<BR>
auth-group &quot;ag0&quot; {<BR>
        initiator-name &quot;iqn.1998-01.com.vmware:hv1-3972eaf3&quot;<BR>
        initiator-name &quot;iqn.1998-01.com.vmware:esxi2.mikej.local:98061=
3345:64&quot;<BR>
        initiator-name &quot;iqn.1998-01.com.vmware:esxi3.mikej.local.:1805=
690011:64&quot;<BR>
        initiator-portal &quot;192.168.6.8&quot;<BR>
        initiator-portal &quot;192.168.6.14&quot;<BR>
        initiator-portal &quot;192.168.6.5&quot;<BR>
        auth-type &quot;none&quot;<BR>
}<BR>
<BR>
<BR>
auth-group &quot;ag1&quot; {<BR>
        initiator-name &quot;iqn.1994-05.com.unitrends:60e2f1d15e57&quot;<B=
R>
        initiator-portal &quot;192.168.6.9&quot;<BR>
        auth-type &quot;none&quot;<BR>
}<BR>
<BR>
<BR>
lun &quot;esxi-store1&quot; {<BR>
        path &quot;/dev/zvol/raid-5400-1/esxi-store1&quot;<BR>
        blocksize &quot;512&quot;<BR>
        serial &quot;YEAH RIGHT&quot;<BR>
        device-id &quot;iSCSI Disk&quot;<BR>
        option &quot;vendor&quot; &quot;MikeJ&quot;<BR>
        option &quot;product&quot; &quot;iSCSI Disk&quot;<BR>
        option &quot;revision&quot; &quot;0123&quot;<BR>
        option &quot;naa&quot; &quot;0x6589cfc00000079e8a0d223e935440ab&quo=
t;<BR>
        option &quot;insecure_tpc&quot; &quot;on&quot;<BR>
        option &quot;rpm&quot; &quot;1&quot;<BR>
}<BR>
<BR>
lun &quot;unitrends1&quot; {<BR>
        path &quot;/dev/zvol/raid-5400-1/unitrends1&quot;<BR>
        blocksize &quot;512&quot;<BR>
        serial &quot;YEAH RIGHT&quot;<BR>
        device-id &quot;iSCSI Disk&quot;<BR>
        option &quot;vendor&quot; &quot;MikeJ&quot;<BR>
        option &quot;product&quot; &quot;iSCSI Disk&quot;<BR>
        option &quot;revision&quot; &quot;0123&quot;<BR>
        option &quot;naa&quot; &quot;0x6589cfc00000079e8a0d223e935440ac&quo=
t;<BR>
        option &quot;insecure_tpc&quot; &quot;on&quot;<BR>
        option &quot;rpm&quot; &quot;1&quot;<BR>
}<BR>
<BR>
<BR>
<BR>
target &quot;iqn.2005-10.org.mikej.ctl:esxi-store1&quot; {<BR>
        auth-group &quot;ag0&quot;<BR>
        portal-group &quot;pg0&quot;<BR>
        alias &quot;esxi-store1&quot;<BR>
        lun &quot;0&quot; &quot;esxi-store1&quot;<BR>
}<BR>
<BR>
target &quot;iqn.1994-05.com.unitrends:60e2f1d15e57&quot; {<BR>
        auth-group &quot;ag1&quot;<BR>
        portal-group &quot;pg0&quot;<BR>
        alias &quot;unitrens11&quot;<BR>
        lun &quot;1&quot; &quot;unitrends1&quot;<BR>
}<BR>
<BR>
-----Original Message-----<BR>
From: <a href=3D"mailto:owner-freebsd-fs@freebsd.org">owner-freebsd-fs@free=
bsd.org</a> [mailto:owner-freebsd-fs@freebsd.org] On Behalf Of mike tancsa<=
BR>
Sent: Monday, March 14, 2022 2:48 PM<BR>
To: freebsd-fs &lt;freebsd-fs@freebsd.org&gt;<BR>
Subject: ctl.conf / iscsi docs and best practices<BR>
<BR>
Looking at diving deeper into FreeBSD as an iscsi target and initiator, but=
 more so as a target server.  Looking at the handbook, there are not a lot =
of docs there and the sample ctl.conf entries dont really follow the style =
of the example ctl.conf file generated by something like TrueNAS.  Are ther=
e any better FreeBSD docs out there ? Anyone have any decent go to docs aro=
und iscsi in general that are good primers as well ? My goal is to serve up=
 storage for a bunch of Linux KVM initiators with the iscsi targets on Free=
BSD being zvols.<BR>
<BR>
e.g. in TrueNAS, I see it define a bunch of individual LUNs and then target=
s as so.<BR>
<BR>
lun &quot;freebsd2&quot; {<BR>
         ctl-lun &quot;1&quot;<BR>
         path &quot;/dev/zvol/tankstripe/freebsd2&quot;<BR>
         blocksize &quot;512&quot;<BR>
         serial &quot;000743299890001&quot;<BR>
         device-id &quot;iSCSI Disk      000743299890001 &quot;<BR>
         option &quot;vendor&quot; &quot;TrueNAS&quot;<BR>
         option &quot;product&quot; &quot;iSCSI Disk&quot;<BR>
         option &quot;revision&quot; &quot;0123&quot;<BR>
         option &quot;naa&quot; &quot;0x6589cfc000000c330e3ddde42a36408a&qu=
ot;<BR>
         option &quot;insecure_tpc&quot; &quot;on&quot;<BR>
         option &quot;rpm&quot; &quot;1&quot;<BR>
}<BR>
<BR>
lun &quot;freebsd3&quot; {<BR>
         ctl-lun &quot;2&quot;<BR>
         path &quot;/dev/zvol/tankstripe/freebsd3&quot;<BR>
         blocksize &quot;4096&quot;<BR>
         serial &quot;000743299890002&quot;<BR>
         device-id &quot;iSCSI Disk      000743299890002 &quot;<BR>
         option &quot;vendor&quot; &quot;TrueNAS&quot;<BR>
         option &quot;product&quot; &quot;iSCSI Disk&quot;<BR>
         option &quot;revision&quot; &quot;0123&quot;<BR>
         option &quot;naa&quot; &quot;0x6589cfc0000001cd46c021f21b31d0cc&qu=
ot;<BR>
         option &quot;insecure_tpc&quot; &quot;on&quot;<BR>
         option &quot;rpm&quot; &quot;1&quot;<BR>
}<BR>
<BR>
Then define more LUNs in the targets that reference the above LUNs<BR>
<BR>
target &quot;iqn.2005-10.org.freenas.ctl:freebsd2&quot; {<BR>
         alias &quot;freebsd2&quot;<BR>
         portal-group &quot;pg1&quot; &quot;ag4tg2_2&quot;<BR>
<BR>
         lun &quot;0&quot; &quot;freebsd2&quot;<BR>
}<BR>
<BR>
target &quot;iqn.2005-10.org.freenas.ctl:freebsd3&quot; {<BR>
         alias &quot;freebsd3&quot;<BR>
         portal-group &quot;pg1&quot; &quot;ag4tg3_3&quot;<BR>
<BR>
         lun &quot;0&quot; &quot;freebsd3&quot;<BR>
}<BR>
<BR>
<BR>
So the lun that refers to the block of storage also has a ctl-lun that seem=
s to be uniq. What is the purpose of that ? Same with serial #s and Device-=
IDs. Are these merely informational or are they a requirement for something=
 ?<BR>
<BR>
If multiple initiators are to have sessions to the target, with only one ac=
tively writing to it, are there any special options I need to set ?<BR>
<BR>
I also noticed in ctladm are several cache sync options.  My go - to zfs re=
plication software is zrepl which has hooks that can be fired before and af=
ter a snapshot.  Do I want to send some sort of cache flush command to the =
target ? Or is that the guest OS' responsibility to do a sync that that the=
 snapshot is coherent as possible.<BR>
<BR>
Thanks for any pointers.<BR>
<BR>
     ---Mike<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
CONFIDENTIALITY NOTE: This message is intended only for the use<BR>
of the individual or entity to whom it is addressed and may<BR>
contain information that is privileged, confidential, and<BR>
exempt from disclosure under applicable law. If the reader<BR>
of this message is not the intended recipient, you are hereby<BR>
notified that any dissemination, distribution or copying<BR>
of this communication is strictly prohibited. If you have<BR>
received this transmission in error, please notify us by<BR>
telephone at (502) 212-4000 or notify us at PAI, Dept. 99,<BR>
2101 High Wickham Place, Suite 101, Louisville, KY 40245<BR>

<br><br><p style=3D"font-family: Verdana; font-size:10pt; color:#666666;"><=
b>Disclaimer</b></p><p style=3D"font-family: Verdana; font-size:8pt; color:=
#666666;">The information contained in this communication from the sender i=
s confidential. It is intended solely for use by the recipient and others a=
uthorized to receive it. If you are not the recipient, you are hereby notif=
ied that any disclosure, copying, distribution or taking action in relation=
 of the contents of this information is strictly prohibited and may be unla=
wful.<br><br>This email has been scanned for viruses and malware, and may h=
ave been automatically archived by Mimecast, a leader in email security and=
 cyber resilience. Mimecast integrates email defenses with brand protection=
, security awareness training, web security, compliance and other essential=
 capabilities. Mimecast helps protect large and small organizations from ma=
licious activity, human error and technology failure; and to lead the movem=
ent toward building a more resilient world. To find out more, visit our web=
site.</p></body></html>

--MCBoundary=_12203141500149031--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76fdc117f673476189d3fd7a2424c76e>