1 .\" Copyright (c) 2012 The FreeBSD Foundation
3 .\" This software was developed by Edward Tomasz Napierala under sponsorship
4 .\" from the FreeBSD Foundation.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Nd CAM Target Layer / iSCSI target daemon
38 .Op Fl f Ar config-file
42 .Op Fl f Ar config-file
47 daemon is responsible for managing the CAM Target Layer configuration,
48 accepting incoming iSCSI connections, performing authentication and
49 passing connections to the kernel part of the native iSCSI target.
53 daemon parses the configuration file.
54 If it encounters any errors,
57 It then compares the configuration with the kernel list of LUNs managed
60 instances, removes LUNs no longer existing in the configuration file,
61 and creates new LUNs as necessary.
62 After that it listens for the incoming iSCSI connections, performs
63 authentication, and, if successful, passes the connections to the kernel part
66 which handles it from that point.
68 When it receives a SIGHUP signal, the
70 reloads its configuration and applies the changes to the kernel.
71 Changes are applied in a way that avoids unnecessary disruptions;
72 for example removing one LUN does not affect other LUNs.
74 When exiting gracefully, the
76 daemon removes LUNs it managed and forcibly disconnects all the clients.
77 Otherwise - for example, when killed with SIGKILL - LUNs stay configured
78 and clients remain connected.
80 To perform administrative actions that apply to already connected
81 sessions, such as forcing termination, use
84 The following options are available:
85 .Bl -tag -width ".Fl P Ar pidfile"
86 .It Fl f Ar config-file
87 Specifies the name of the configuration file.
92 The daemon sends verbose debug output to standard error, and does not
93 put itself in the background.
94 The daemon will also not fork and will exit after processing one connection.
95 This option is only intended for debugging the target.
97 Test the configuration file for validity and exit.
99 Use UCL configuration file format instead of the traditional non-UCL format.
102 .Bl -tag -width ".Pa /var/run/ctld.pid" -compact
104 The configuration file for
106 The file format and configuration options are described in
108 .It Pa /var/run/ctld.pid
109 The default location of the
116 utility exits 0 on success, and >0 if an error occurs.
132 .An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
133 under sponsorship from the FreeBSD Foundation.