targetd (8) - Linux Man Pages
DESCRIPTIONtargetd is a service to allow the remote configuration of block device volumes and file systems within dedicated pools. Block devices can be exported to other hosts via iSCSI, and filesystems can be exported via NFS.
USAGERun targetd as root.
CONFIGURATIONtargetd uses /etc/target/targetd.yaml for configuration. It is in YAML format. targetd currently uses scalar values and collection values, see example for details.
CONFIGURATION FILE SETTINGSblock_pools
Sets the LVM Volume Group(s) that targetd will use to allocate volumes. Defaults to "vg-targetd".
Alternatively, targetd can allocate thinp (thin-provisioned) volumes out of a thinpool LV. These should be listed as "<vgname>/<poolname>", with the VG and thinpool LV names separated by a "/". These should already be created; targetd will not create VGs or thinpool LVs.
Sets the mount point(s) that targetd will use to export filesystems over NFS. Defaults to none.
Sets the username and password required to use the remote API. "user" defaults to admin, but password must be set prior to using targetd.
Sets the iSCSI target name that targetd will use. Default is iqn.2003-01.org.linux-iscsi.<hostname>:targetd.
Settings for enabling SSL/TLS encryption. ssl defaults to off. If enabled, it will default to looking for key and cert files named targetd_key.pem and targetd_cert.pem in /etc/target. These paths may also be specified, using the ssl_key and ssl_cert config settings.
Key and self-signed cert may be generated using openssl:
AUTHORWritten by Andy Grover <agrover [at] redhat.com>.
REPORTING BUGSReport bugs via <targetd-devel [at] lists.fedorahosted.org>
SEE ALSOThe remote API is defined at