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