CTLD(8) | MidnightBSD System Manager's Manual | CTLD(8) |
ctld
— CAM Target
Layer / iSCSI target daemon
ctld |
[-d ] [-f
config-file] [-u ] |
The ctld
daemon is responsible for
managing the CAM Target Layer configuration, accepting incoming iSCSI
connections, performing authentication and passing connections to the kernel
part of the native iSCSI target.
Upon startup, the ctld
daemon parses the
configuration file. If it encounters any errors,
ctld
exits. It then compares the configuration with
the kernel list of LUNs managed by previously running
ctld
instances, removes LUNs no longer existing in
the configuration file, and creates new LUNs as necessary. After that it
listens for the incoming iSCSI connections, performs authentication, and, if
successful, passes the connections to the kernel part of CTL iSCSI target,
cfiscsi(4), which
handles it from that point.
When it receives a SIGHUP signal, the ctld
reloads its configuration and applies the changes to the kernel. Changes are
applied in a way that avoids unnecessary disruptions; for example removing
one LUN does not affect other LUNs.
When exiting gracefully, the ctld
daemon
removes LUNs it managed and forcibly disconnects all the clients. Otherwise
- for example, when killed with SIGKILL - LUNs stay configured and clients
remain connected.
To perform administrative actions that apply to already connected sessions, such as forcing termination, use ctladm(8).
The following options are available:
-f
config-file-d
-u
ctld
. The file format
and configuration options are described in
ctl.conf(5).ctld
PID file.The ctld
utility exits 0 on success, and
>0 if an error occurs.
The ctld
command appeared in
FreeBSD 10.0.
The ctld
was developed by
Edward Tomasz Napierala
<trasz@FreeBSD.org>
under sponsorship from the FreeBSD Foundation.
March 23, 2018 | midnightbsd-3.1 |