xref: /freebsd/share/man/man4/cfiscsi.4 (revision 8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64)
1.\" Copyright (c) 2013 Edward Tomasz Napierala
2.\" Copyright (c) 2015-2017 Alexander Motin <mav@FreeBSD.org>
3.\" Copyright (c) 2017 Enji Cooper <ngie@FreeBSD.org>
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD$
27.Dd May 28, 2017
28.Dt CFISCSI 4
29.Os
30.Sh NAME
31.Nm cfiscsi
32.Nd CAM Target Layer iSCSI target frontend
33.Sh SYNOPSIS
34To compile this driver into the kernel,
35place the following lines in your
36kernel configuration file:
37.Bd -ragged -offset indent
38.Cd "device cfiscsi"
39.Cd "device ctl"
40.Cd "device iscsi"
41.Ed
42.Pp
43Alternatively, to load the driver as a
44module at boot time, place the following line in
45.Xr loader.conf 5 :
46.Bd -literal -offset indent
47cfiscsi_load="YES"
48.Ed
49.Sh DESCRIPTION
50The
51.Nm
52subsystem provides the kernel component of an iSCSI target.
53The target is the iSCSI server, providing LUNs backed by local files
54and volumes to remote initiators.
55The userspace component is provided by
56.Xr ctld 8 .
57.Nm
58is implemented as a
59.Xr ctl 4
60frontend and uses infrastructure provided by
61.Xr iscsi 4 .
62.Sh SYSCTL VARIABLES
63The following variables are available as both
64.Xr sysctl 8
65variables and
66.Xr loader 8
67tunables:
68.Bl -tag -width indent
69.It Va kern.cam.ctl.iscsi.debug
70Verbosity level for log messages from the kernel part of iSCSI target.
71Set to 0 to disable logging or 1 to warn about potential problems.
72Larger values enable debugging output.
73Defaults to 1.
74.It Va kern.cam.ctl.iscsi.maxtags
75The number of outstanding commands to advertise to each iSCSI initiator.
76Current implementation is not very accurate, so do not set this below 2.
77Defaults to 256.
78.It Va kern.cam.ctl.iscsi.ping_timeout
79The number of seconds to wait for the iSCSI initiator to respond to a NOP-In
80PDU.
81In the event that there is no response within that time the session gets
82forcibly terminated.
83Set to 0 to disable sending NOP-In PDUs.
84Defaults to 5.
85.El
86.Sh SEE ALSO
87.Xr ctl 4 ,
88.Xr iscsi 4 ,
89.Xr ctl.conf 5 ,
90.Xr ctld 8
91.Sh HISTORY
92The
93.Nm
94subsystem first appeared in
95.Fx 10.0
96as part of the
97.Xr ctl 4
98driver.
99It was split off of
100.Xr ctl 4
101in
102.Fx 12.0 .
103.Sh AUTHORS
104.An -nosplit
105The
106.Nm
107subsystem was developed by
108.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
109under sponsorship from the FreeBSD Foundation.
110This manual page was written by
111.An Enji Cooper Aq Mt ngie@FreeBSD.org .
112