ISCSI/Target

From Gentoo Wiki
< ISCSI
Jump to:navigation Jump to:search
Resources

An iSCSI Targets machines that offer storage via iSCSI to a network. An Initiator connects to a target to use the storage on the target.

Installation

Kernel

KERNEL
Device Drivers --->
  <M> Generic Target Core Mod (TCM) and ConfigFS Infrastructure --->
    <M> TCM/IBLOCK Subsystem Plugin for Linux/BLOCK
    <M> TCM/FILEIO Subsystem Plugin for Linux/VFS
    <M> Linux-iSCSI.org iSCSI Target Mode Stack

Emerge

The configuration tool is called targetcli and is included in two packages: sys-block/targetcli or sys-block/targetcli-fb (free-branch). The free-branch version is more up-to-date, so this page assumes that one.

root #emerge --ask sys-block/targetcli-fb

The targetcli command from sys-block/targetcli-fb package requires dbus to be running, so on OpenRC systems ensure it is added to the default run level and started:

root #rc-update add dbus default
root #rc-service dbus start