xref: /freebsd/share/man/man4/cfiscsi.4 (revision 4b2a6604fc31972417a933c3186ea8d25a8f14b1)
1653e7d63SEnji Cooper.\" Copyright (c) 2013 Edward Tomasz Napierala
2653e7d63SEnji Cooper.\" Copyright (c) 2015-2017 Alexander Motin <mav@FreeBSD.org>
3653e7d63SEnji Cooper.\" Copyright (c) 2017 Ngie Cooper <ngie@FreeBSD.org>
4653e7d63SEnji Cooper.\" All rights reserved.
5653e7d63SEnji Cooper.\"
6653e7d63SEnji Cooper.\" Redistribution and use in source and binary forms, with or without
7653e7d63SEnji Cooper.\" modification, are permitted provided that the following conditions
8653e7d63SEnji Cooper.\" are met:
9653e7d63SEnji Cooper.\" 1. Redistributions of source code must retain the above copyright
10653e7d63SEnji Cooper.\"    notice, this list of conditions and the following disclaimer.
11653e7d63SEnji Cooper.\" 2. Redistributions in binary form must reproduce the above copyright
12653e7d63SEnji Cooper.\"    notice, this list of conditions and the following disclaimer in the
13653e7d63SEnji Cooper.\"    documentation and/or other materials provided with the distribution.
14653e7d63SEnji Cooper.\"
15653e7d63SEnji Cooper.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16653e7d63SEnji Cooper.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17653e7d63SEnji Cooper.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18653e7d63SEnji Cooper.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19653e7d63SEnji Cooper.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20653e7d63SEnji Cooper.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21653e7d63SEnji Cooper.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22653e7d63SEnji Cooper.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23653e7d63SEnji Cooper.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24653e7d63SEnji Cooper.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25653e7d63SEnji Cooper.\" SUCH DAMAGE.
26653e7d63SEnji Cooper.\"
27653e7d63SEnji Cooper.\" $FreeBSD$
28*4b2a6604SEdward Tomasz Napierala.Dd May 28, 2017
29653e7d63SEnji Cooper.Dt CFISCSI 4
30653e7d63SEnji Cooper.Os
31653e7d63SEnji Cooper.Sh NAME
32653e7d63SEnji Cooper.Nm cfiscsi
33653e7d63SEnji Cooper.Nd CAM Target Layer iSCSI target frontend
34653e7d63SEnji Cooper.Sh SYNOPSIS
35653e7d63SEnji CooperTo compile this driver into the kernel,
36653e7d63SEnji Cooperplace the following lines in your
37653e7d63SEnji Cooperkernel configuration file:
38653e7d63SEnji Cooper.Bd -ragged -offset indent
39653e7d63SEnji Cooper.Cd "device cfiscsi"
40653e7d63SEnji Cooper.Cd "device ctl"
41653e7d63SEnji Cooper.Cd "device iscsi"
42653e7d63SEnji Cooper.Ed
43653e7d63SEnji Cooper.Pp
44653e7d63SEnji CooperAlternatively, to load the driver as a
45653e7d63SEnji Coopermodule at boot time, place the following line in
46653e7d63SEnji Cooper.Xr loader.conf 5 :
47653e7d63SEnji Cooper.Bd -literal -offset indent
48653e7d63SEnji Coopercfiscsi_load="YES"
49653e7d63SEnji Cooper.Ed
50653e7d63SEnji Cooper.Sh DESCRIPTION
51653e7d63SEnji CooperThe
52653e7d63SEnji Cooper.Nm
53*4b2a6604SEdward Tomasz Napieralasubsystem provides the kernel component of an iSCSI target.
54*4b2a6604SEdward Tomasz NapieralaThe target is the iSCSI server, providing LUNs backed by local files
55*4b2a6604SEdward Tomasz Napieralaand volumes to remote initiators.
56*4b2a6604SEdward Tomasz NapieralaThe userspace component is provided by
57*4b2a6604SEdward Tomasz Napierala.Xr ctld 8 .
58*4b2a6604SEdward Tomasz Napierala.Nm
59*4b2a6604SEdward Tomasz Napieralais implemented as a
60653e7d63SEnji Cooper.Xr ctl 4
61*4b2a6604SEdward Tomasz Napieralafrontend and uses infrastructure provided by
62653e7d63SEnji Cooper.Xr iscsi 4 .
63653e7d63SEnji Cooper.Sh SYSCTL VARIABLES
64653e7d63SEnji CooperThe following variables are available as both
65653e7d63SEnji Cooper.Xr sysctl 8
66653e7d63SEnji Coopervariables and
67653e7d63SEnji Cooper.Xr loader 8
68653e7d63SEnji Coopertunables:
69653e7d63SEnji Cooper.Bl -tag -width indent
70653e7d63SEnji Cooper.It Va kern.cam.ctl.iscsi.debug
71653e7d63SEnji CooperVerbosity level for log messages from the kernel part of iSCSI target.
72653e7d63SEnji CooperSet to 0 to disable logging or 1 to warn about potential problems.
73653e7d63SEnji CooperLarger values enable debugging output.
74653e7d63SEnji CooperDefaults to 1.
75653e7d63SEnji Cooper.It Va kern.cam.ctl.iscsi.maxtags
76653e7d63SEnji CooperThe number of outstanding commands to advertise to each iSCSI initiator.
77653e7d63SEnji CooperCurrent implementation is not very accurate, so do not set this below 2.
78653e7d63SEnji CooperDefaults to 256.
79653e7d63SEnji Cooper.It Va kern.cam.ctl.iscsi.ping_timeout
80653e7d63SEnji CooperThe number of seconds to wait for the iSCSI initiator to respond to a NOP-In
81653e7d63SEnji CooperPDU.
82653e7d63SEnji CooperIn the event that there is no response within that time the session gets
83653e7d63SEnji Cooperforcibly terminated.
84653e7d63SEnji CooperSet to 0 to disable sending NOP-In PDUs.
85653e7d63SEnji CooperDefaults to 5.
86653e7d63SEnji Cooper.El
87653e7d63SEnji Cooper.Sh SEE ALSO
88653e7d63SEnji Cooper.Xr ctl 4 ,
89*4b2a6604SEdward Tomasz Napierala.Xr iscsi 4 ,
90*4b2a6604SEdward Tomasz Napierala.Xr ctl.conf 5 ,
91*4b2a6604SEdward Tomasz Napierala.Xr ctld 8
92653e7d63SEnji Cooper.Sh HISTORY
93653e7d63SEnji CooperThe
94653e7d63SEnji Cooper.Nm
95653e7d63SEnji Coopersubsystem first appeared in
96653e7d63SEnji Cooper.Fx 10.0
97653e7d63SEnji Cooperas part of the
98653e7d63SEnji Cooper.Xr ctl 4
99653e7d63SEnji Cooperdriver.
100653e7d63SEnji CooperIt was split off of
101653e7d63SEnji Cooper.Xr ctl 4
102653e7d63SEnji Cooperin
103653e7d63SEnji Cooper.Fx 12.0 .
104653e7d63SEnji Cooper.Sh AUTHORS
105653e7d63SEnji Cooper.An -nosplit
106653e7d63SEnji CooperThe
107653e7d63SEnji Cooper.Nm
108653e7d63SEnji Coopersubsystem was developed by
109653e7d63SEnji Cooper.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
110653e7d63SEnji Cooperunder sponsorship from the FreeBSD Foundation.
111653e7d63SEnji CooperThis manual page was written by
112653e7d63SEnji Cooper.An Ngie Cooper Aq Mt ngie@FreeBSD.org .
113