---
name: "ietd"
section: "8"
platform: "linux"
package: "iscsitarget"
version: "1.4.20.3+svn502-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ietd"
---

# ietd(8)

iSCSI Enterprise Target Daemon

## NAME

ietd - iSCSI Enterprise Target Daemon

## SYNOPSIS

**ietd** \[**-c** *configfile*\] \[**-d** *debuglevel*\] \[**-f**\] \[**-g** *GID*\] \[**-h**\] \[**-a** *address*\] \[**-p** *port*\] \[**-u** *UID*\]

## DESCRIPTION

The **ietd** program implements the user level part of iSCSI Enterprise Target software for building an iSCSI storage system on Linux.

## OPTIONS

- **-c** *filename***, --config=***filename*

  Specify configuration file, default is */etc/ietd.conf*

- **-d** *debuglevel***, --debug=***debuglevel*

  Turns on debugging. Logging goes to */var/log/syslog* via [**syslog**(1)](/syslog/1.md).

- **-f,** *--foreground*

  Act as a normal application which uses a console.

- **-g** *GID***, --gid=***GID*

  Specify running group id, default is current gid.

- **-a** *address***, --address=***address*

  Specify on which local address the server should listen, default is any.

- **-p** *port***, --port=***port*

  Specify on which port the server should listen, default is 3260.

- **-h,** *--help*

  Display help message on command line options.

- **-u** *UID***, --uid=***UID*

  Specify running user id, default is current uid.

## FILES

*/etc/ietd.conf*

The system wide configuration file. See	 [**ietd.conf**(5)](/ietd.conf/5.md) for further details.

## DIAGNOSTICS

This may be logged to stderr:

**Warnings**

"Dropping key (%s=%s)"

Value(s): key, value

"unable to set fd flags (%s)!"

Value(s): strerror(errno)

"unable to get fd flags (%s)!"

Value(s): strerror(errno)

"unable to set SO\_REUSEADDR on server socket (%s)!"

Value(s): strerror(errno)

"iscsi\_ctrl: failed to scan '%s'"

Value(s): p

"target %u not found?"

Value(s): target\_id

"session %#Lx not found?"

Value(s): session\_id

"session\_remove: session %#Lx not found?"

Value(s): session-\>sid.id64

"need to shutdown target %s"

Value(s): target-\>name

**Errors**

"unable to create server socket (%s)!"

Value(s): strerror(errno)

"unable to bind server socket (%s)!"

Value(s): strerror(errno)

"unable to listen to server socket (%s)!"

Value(s): strerror(errno)

"error reading /proc/iscsi/iscsi (%d)"

Value(s): errno

"unable to create pid file"

"starting daemon failed"

"unable to lock pid file"

"unable to open %s! (%s)"

Value(s): PROC\_DEVICEDIR, strerror(errno)

"unable to open %s! (%s)"

Value(s): PROC\_TARGETDIR, strerror(errno)

**Debug Messages Level 0**

"unknown user %s"

Value(s): value

"login by %s failed"

Value(s): user-\>name

"succesfull login by %s"

Value(s): user-\>name

"connection request from %s"

Value(s): inet\_ntoa(name.sin\_addr)

"connection closed"

"lun %u:%u already configured"

Value(s): target-\>id, tlun-\>lun

**Debug Messages Level 1**

"conn\_take\_fd: %u %u %u %Lx %d"

Value(s): conn-\>cid, conn-\>stat\_sn, conn-\>exp\_stat\_sn, conn-\>sid.id64, fd

"exp\_cmd\_sn: %d,%d"

Value(s): conn-\>exp\_cmd\_sn, req-\>cmd\_sn

"Login request (security negotiation): %d"

Value(s): conn-\>state

"Login request (operational negotiation): %d"

Value(s): conn-\>state

"Text request: %d"

Value(s): conn-\>state

"close conn %u session %Lx target %u"

Value(s): conn\_id, session\_id, target\_id

"session\_find\_name: %s,%#Lx"

Value(s): iname, sid.id64

"session\_find\_id: %#Lx"

Value(s): sid

"session\_create: %#Lx"

Value(s): session-\>sid.id64

"session\_close: %#Lx"

Value(s): session-\>sid.id64

"session\_remove: %#Lx"

Value(s): session-\>sid.id64

"active target %d: %s"

Value(s): id, name

"removing target %d"

Value(s): id

"creaing target %u: %s"

Value(s): target\_next\_id, p

"attaching %u to %u:%u"

Value(s): tlun-\>device-\>id, target-\>id, tlun-\>lun

"target\_find\_name: %s"

Value(s): name

"target\_find\_id: %u"

Value(s): id

"target\_remove: %u,%s"

Value(s): target-\>id, target-\>name

**Debug Messages Level 2**

"%s %.16s"

Value(s): line, buf

"BHS: (%p)"

Value(s): buf

"AHS: (%p)"

Value(s): buf

"Data: (%p)"

Value(s): buf

## KNOWN ISSUES

Task attributes is incomplete (all tasks are treated as if they have the SIMPLE attribute.)

SCSI task management is incomplete.

NOP-In is incomplete.

The target never sends a NOP-In of its own accord.

Header and Data Digest in a discovery session are not implemented.

Out-of-memory situation leads to the system crash (There are still some out-of-memory bugs.)

## SEE ALSO

[**ietd.conf**(5)](/ietd.conf/5.md)
