xref: /freebsd/share/man/man4/iscsi.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
14f9ec027SAllan Jude.\" Copyright (c) 2014 Edward Tomasz Napierala
24f9ec027SAllan Jude.\"
34f9ec027SAllan Jude.\" Redistribution and use in source and binary forms, with or without
44f9ec027SAllan Jude.\" modification, are permitted provided that the following conditions
54f9ec027SAllan Jude.\" are met:
64f9ec027SAllan Jude.\" 1. Redistributions of source code must retain the above copyright
74f9ec027SAllan Jude.\"    notice, this list of conditions and the following disclaimer.
84f9ec027SAllan Jude.\" 2. Redistributions in binary form must reproduce the above copyright
94f9ec027SAllan Jude.\"    notice, this list of conditions and the following disclaimer in the
104f9ec027SAllan Jude.\"    documentation and/or other materials provided with the distribution.
114f9ec027SAllan Jude.\"
124f9ec027SAllan Jude.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
134f9ec027SAllan Jude.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
144f9ec027SAllan Jude.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
154f9ec027SAllan Jude.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
164f9ec027SAllan Jude.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
174f9ec027SAllan Jude.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
184f9ec027SAllan Jude.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
194f9ec027SAllan Jude.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
204f9ec027SAllan Jude.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
214f9ec027SAllan Jude.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
224f9ec027SAllan Jude.\" SUCH DAMAGE.
23*aa212185SEdward Tomasz Napierala.Dd May 28, 2017
244f9ec027SAllan Jude.Dt ISCSI 4
254f9ec027SAllan Jude.Os
264f9ec027SAllan Jude.Sh NAME
274f9ec027SAllan Jude.Nm iscsi
284f9ec027SAllan Jude.Nd iSCSI initiator
294f9ec027SAllan Jude.Sh SYNOPSIS
304f9ec027SAllan JudeTo compile this driver into the kernel,
314f9ec027SAllan Judeplace the following line in the
324f9ec027SAllan Judekernel configuration file:
334f9ec027SAllan Jude.Bd -ragged -offset indent
344f9ec027SAllan Jude.Cd "device iscsi"
354f9ec027SAllan Jude.Ed
364f9ec027SAllan Jude.Pp
374f9ec027SAllan JudeAlternatively, to load the driver as a
384f9ec027SAllan Judemodule at boot time, place the following line in
394f9ec027SAllan Jude.Xr loader.conf 5 :
404f9ec027SAllan Jude.Bd -literal -offset indent
414f9ec027SAllan Judeiscsi_load="YES"
424f9ec027SAllan Jude.Ed
434f9ec027SAllan Jude.Sh DESCRIPTION
444f9ec027SAllan JudeThe
454f9ec027SAllan Jude.Nm
46*aa212185SEdward Tomasz Napieralasubsystem provides the kernel component of an iSCSI initiator,
47*aa212185SEdward Tomasz Napieralaresponsible for implementing the Full Feature Phase of the iSCSI protocol.
484f9ec027SAllan JudeThe initiator is the iSCSI client, which connects to an iSCSI target,
494f9ec027SAllan Judeproviding local access to a remote block device.
504f9ec027SAllan JudeThe userland component is provided by
514f9ec027SAllan Jude.Xr iscsid 8
524f9ec027SAllan Judeand both the kernel and userland are configured using
534f9ec027SAllan Jude.Xr iscsictl 8 .
544f9ec027SAllan Jude.Sh SYSCTL VARIABLES
554f9ec027SAllan JudeThe following variables are available as both
564f9ec027SAllan Jude.Xr sysctl 8
574f9ec027SAllan Judevariables and
584f9ec027SAllan Jude.Xr loader 8
594f9ec027SAllan Judetunables:
604f9ec027SAllan Jude.Bl -tag -width indent
61c6ba0880SEdward Tomasz Napierala.It Va kern.iscsi.debug
62c6ba0880SEdward Tomasz NapieralaVerbosity level for log messages from the
63c6ba0880SEdward Tomasz Napierala.Nm
64c6ba0880SEdward Tomasz Napieraladriver.
65c6ba0880SEdward Tomasz NapieralaSet to 0 to disable logging or 1 to warn about potential problems.
66c6ba0880SEdward Tomasz NapieralaLarger values enable debugging output.
67c6ba0880SEdward Tomasz NapieralaDefaults to 1.
684f9ec027SAllan Jude.It Va kern.iscsi.ping_timeout
694f9ec027SAllan JudeThe number of seconds to wait for the target to respond to a NOP-Out
704f9ec027SAllan JudePDU.
714f9ec027SAllan JudeIn the event that there is no response within that time the session gets
724f9ec027SAllan Judeforcibly restarted.
73bd425507SEdward Tomasz NapieralaSet to 0 to disable sending NOP-Out PDUs.
74bd425507SEdward Tomasz NapieralaDefaults to 5.
754f9ec027SAllan Jude.It Va kern.iscsi.iscsid_timeout
764f9ec027SAllan JudeThe number of seconds to wait for
77bd425507SEdward Tomasz Napierala.Xr iscsid 8
784f9ec027SAllan Judeto establish a session.
794f9ec027SAllan JudeAfter that time
804f9ec027SAllan Jude.Nm
814f9ec027SAllan Judewill abort and retry.
82bd425507SEdward Tomasz NapieralaDefaults to 60.
834f9ec027SAllan Jude.It Va kern.iscsi.login_timeout
844f9ec027SAllan JudeThe number of seconds to wait for a login attempt to succeed.
854f9ec027SAllan JudeAfter that time
864f9ec027SAllan Jude.Nm
874f9ec027SAllan Judewill abort and retry.
88bd425507SEdward Tomasz NapieralaDefaults to 60.
894f9ec027SAllan Jude.It Va kern.iscsi.maxtags
904f9ec027SAllan JudeThe maximum number of outstanding IO requests.
91bd425507SEdward Tomasz NapieralaDefaults to 255.
924f9ec027SAllan Jude.It Va kern.iscsi.fail_on_disconnection
934f9ec027SAllan JudeControls the behavior after an iSCSI connection has been dropped due to
944f9ec027SAllan Judenetwork problems.
954f9ec027SAllan JudeWhen set to 1, a dropped connection causes the iSCSI device nodes
964f9ec027SAllan Judeto be destroyed.
974f9ec027SAllan JudeAfter reconnecting, they will be created again.
984f9ec027SAllan JudeBy default, the device nodes are left intact.
994f9ec027SAllan JudeWhile the connection is down all input/output operations are suspended, to be
1004f9ec027SAllan Juderetried after the connection is reestablished.
1014f9ec027SAllan Jude.El
1024f9ec027SAllan Jude.Sh SEE ALSO
1031072c68cSEdward Tomasz Napierala.Xr iser 4 ,
1044f9ec027SAllan Jude.Xr iscsi.conf 5 ,
1054f9ec027SAllan Jude.Xr iscsictl 8 ,
1064f9ec027SAllan Jude.Xr iscsid 8
1074f9ec027SAllan Jude.Sh HISTORY
1084f9ec027SAllan JudeThe
1094f9ec027SAllan Jude.Nm
1104f9ec027SAllan Judesubsystem first appeared in
1114f9ec027SAllan Jude.Fx 10.0 .
1124f9ec027SAllan Jude.Sh AUTHORS
1134f9ec027SAllan JudeThe
1144f9ec027SAllan Jude.Nm
1154f9ec027SAllan Judesubsystem was developed by
1164f9ec027SAllan Jude.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
1174f9ec027SAllan Judeunder sponsorship from the FreeBSD Foundation.
118