2013-04-02 09:42:42 +00:00
|
|
|
.\" Copyright (c) 2013 Edward Tomasz Napierala
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
2015-08-09 10:11:04 +00:00
|
|
|
.Dd August 9, 2015
|
2013-04-02 09:42:42 +00:00
|
|
|
.Dt CTL 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ctl
|
2015-07-03 16:55:08 +00:00
|
|
|
.Nd CAM Target Layer / iSCSI target
|
2013-04-02 09:42:42 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
To compile this driver into the kernel,
|
|
|
|
place the following line in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
2015-04-08 11:59:00 +00:00
|
|
|
.Cd "device iscsi"
|
2013-04-02 09:42:42 +00:00
|
|
|
.Cd "device ctl"
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Alternatively, to load the driver as a
|
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
ctl_load="YES"
|
|
|
|
.Ed
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
subsystem provides SCSI disk and processor emulation.
|
|
|
|
It supports features such as:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
|
|
|
Disk and processor device emulation
|
|
|
|
.It
|
|
|
|
Tagged queueing
|
|
|
|
.It
|
|
|
|
SCSI task attribute support (ordered, head of queue, simple tags)
|
|
|
|
.It
|
2014-10-26 13:30:53 +00:00
|
|
|
SCSI implicit command ordering support
|
2013-04-02 09:42:42 +00:00
|
|
|
.It
|
|
|
|
Full task management support (abort, LUN reset, target reset, etc.)
|
|
|
|
.It
|
|
|
|
Support for multiple ports
|
|
|
|
.It
|
|
|
|
Support for multiple simultaneous initiators
|
|
|
|
.It
|
|
|
|
Support for multiple simultaneous backing stores
|
|
|
|
.It
|
2014-10-26 13:30:53 +00:00
|
|
|
Support for VMWare VAAI: COMPARE AND WRITE, XCOPY, WRITE SAME,
|
|
|
|
and UNMAP commands
|
|
|
|
.It
|
|
|
|
Support for Microsoft ODX: POPULATE TOKEN/WRITE USING TOKEN,
|
|
|
|
WRITE SAME, and UNMAP commands
|
|
|
|
.It
|
2013-04-02 09:42:42 +00:00
|
|
|
Persistent reservation support
|
|
|
|
.It
|
|
|
|
Mode sense/select support
|
|
|
|
.It
|
|
|
|
Error injection support
|
|
|
|
.It
|
|
|
|
All I/O handled in-kernel, no userland context switch overhead
|
|
|
|
.El
|
2013-09-14 15:29:06 +00:00
|
|
|
.Pp
|
|
|
|
It also serves as a kernel component of the native iSCSI target.
|
2015-05-22 12:01:29 +00:00
|
|
|
.Sh SYSCTL VARIABLES
|
|
|
|
The following variables are available as both
|
|
|
|
.Xr sysctl 8
|
|
|
|
variables and
|
|
|
|
.Xr loader 8
|
|
|
|
tunables:
|
|
|
|
.Bl -tag -width indent
|
2015-08-09 10:11:04 +00:00
|
|
|
.It Va kern.cam.ctl.debug
|
|
|
|
Bit mask of enabled CTL log levels:
|
|
|
|
.Bl -tag -offset indent -compact
|
|
|
|
.It 1
|
|
|
|
log commands with errors;
|
|
|
|
.It 2
|
|
|
|
log all commands;
|
|
|
|
.It 4
|
|
|
|
log received data for commands except READ/WRITE.
|
|
|
|
.El
|
|
|
|
Defaults to 0.
|
2015-06-21 14:21:38 +00:00
|
|
|
.It Va kern.cam.ctl.iscsi.debug
|
|
|
|
Verbosity level for log messages from the kernel part of iSCSI target.
|
|
|
|
Set to 0 to disable logging or 1 to warn about potential problems.
|
|
|
|
Larger values enable debugging output.
|
|
|
|
Defaults to 1.
|
2015-05-22 12:01:29 +00:00
|
|
|
.It Va kern.cam.ctl.iscsi.maxcmdsn_delta
|
2015-06-21 14:21:38 +00:00
|
|
|
The number of outstanding commands to advertise to the iSCSI initiator.
|
|
|
|
Technically, it is the difference between ExpCmdSN and MaxCmdSN fields
|
2015-05-22 12:01:29 +00:00
|
|
|
in the iSCSI PDU.
|
2015-07-18 15:27:12 +00:00
|
|
|
Defaults to 256.
|
2015-05-22 12:01:29 +00:00
|
|
|
.It Va kern.cam.ctl.iscsi.ping_timeout
|
2015-06-21 14:21:38 +00:00
|
|
|
The number of seconds to wait for the iSCSI initiator to respond to a NOP-In
|
2015-05-22 12:01:29 +00:00
|
|
|
PDU.
|
|
|
|
In the event that there is no response within that time the session gets
|
|
|
|
forcibly terminated.
|
2015-07-18 15:27:12 +00:00
|
|
|
Set to 0 to disable sending NOP-In PDUs.
|
|
|
|
Defaults to 5.
|
2013-04-02 09:42:42 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ctladm 8 ,
|
2013-09-14 15:29:06 +00:00
|
|
|
.Xr ctld 8 ,
|
2013-04-02 09:42:42 +00:00
|
|
|
.Xr ctlstat 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
subsystem first appeared in
|
|
|
|
.Fx 9.1 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
subsystem was written by
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Kenneth Merry Aq Mt ken@FreeBSD.org .
|