Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ctld(8) [freebsd man page]

CTLD(8) 						    BSD System Manager's Manual 						   CTLD(8)

NAME
ctld -- CAM Target Layer / iSCSI target daemon SYNOPSIS
ctld [-d] [-f config-file] DESCRIPTION
The ctld daemon is responsible for managing the CAM Target Layer configuration, accepting incoming iSCSI connections, performing authentica- tion and passing connections to the kernel part of the native iSCSI target. Upon startup, the ctld daemon parses the configuration file and exits, if it encounters any errors. Then it 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, 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 Specifies the name of the configuration file. The default is /etc/ctl.conf. -d Debug mode. The server sends verbose debug output to standard error, and does not put itself in the background. The server will also not fork and will exit after processing one connection. This option is only intended for debugging the target. FILES
/etc/ctl.conf The configuration file for ctld. The file format and configuration options are described in ctl.conf(5). /var/run/ctld.pid The default location of the ctld PID file. EXIT STATUS
The ctld utility exits 0 on success, and >0 if an error occurs. SEE ALSO
ctl(4), ctl.conf(5), ctladm(8) HISTORY
The ctld command appeared in FreeBSD 10.0. AUTHORS
The ctld was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation. BSD
November 9, 2014 BSD

Check Out this Related Man Page

iscsitgtd(1M)						  System Administration Commands					     iscsitgtd(1M)

NAME
iscsitgtd - iSCSI Target daemon SYNOPSIS
iscsitgtd [-d door_file] DESCRIPTION
The iscsitgtd daemon process implements the iSCSI configuration, control, and data paths, providing iSCSI Target Mode support in the Solaris operating system. The configuration and control path is by means of the Solaris Doors subsystem (see door_create(3C)), and provides the interface between the iSCSI Target administration utility, iscsitadm(1M), persistence configuration data stored in the Service Configuration Facility (SCF) of the service management facility (SMF). See smf(5). The data path managed by the daemon exists between TPC/IP port 3260, and the files, block devices, or raw SCSI devices configured as iSCSI target LUNs. OPTIONS
The following options is supported: -d door_file Override the location of the Solaris Door used for configuration from /var/run/iscsi_tgt_door to a door of one's choosing. Solaris Configuration Facility (SCF) The following options are supported: PGR-basedir SCSI-3 PGR base directory for ZVOL failover. Set to /. daemonize Run as Solaris daemon process. Either true or false. dbg-lvl Runtime debug level to console. qlog-lvl Runtime logging to /tmp/target_log. The following are the logging values, in hexadecimal. 0x00001 - Connection errors 0x00002 - Connection login errors 0x00004 - Connection Non-I/O errors 0x00008 - Connection I/O errors 0x00010 - Session errors 0x00020 - Session login errors 0x00040 - Session Non-I/O errors 0x00080 - Session I/O errors 0x00100 - Emulation errors 0x00200 - Emulation Non-I/O errors 0x00400 - Emulation I/O errors 0x01000 - General errors 0x02000 - General details 0x04000 - iSNS details 0x10000 - SCSI-3 PGR errors 0x20000 - SCSI-3 PGR Non-I/O errors 0x40000 - SCSI-3 PGR I/O errors EXAMPLES
Example 1 Listing All iscsitgt Values The following commands lists all iscsitgt values. # svccfg -s iscsitgt listprop iscsitgt Example 2 Setting SCF Options The following command sets the PGR-basedir option. # svccfg -s iscsitgt setprop iscsitgt/PGR-basedir = astring: "/" The following command sets the dbg-lvl option. # svccfg -s iscsitgt setprop iscsitgt/dbg-lvl = integer: 0x80ffffff ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWiscsitgtu | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
iscsitadm(1M), door_create(3C), attributes(5), smf(5) NOTES
The iSCSI Target daemon, iscsitgtd, is managed by the service management facility, smf(5), under the fault management resource identifier: svc:/system/iscsitgt:default SunOS 5.11 16 Mar 2009 iscsitgtd(1M)
Man Page