ISCSI/Initiator

An iSCSI initiator is a machine that connects to a storage machine on the network. The opposite side of the connection, the storage machine itself, is referred to as the iSCSI Target. Multiple iSCSI initiators can be pointed to one iSCSI Target.

Kernel configuration
In-kernel support can be enabled by building the driver into the kernel (as suggested with the ). If building the driver as an external module (as suggested with the ) running the  command will install all the modules into the kernel, which is essentially the same as building in the modules initially. Anyway sys-block/open-iscsi says builtin doesn't work. Built-in modules for an active kernel are listened in the file. To check to see if if the iscsi_tcp.ko driver has been built-in, run:

Emerge
After USE flags have been set (or unset) the iSCSI package:

Loading the module
Before startup the  command can be used to confirm the module has been loaded:

If output is seen from the command above, then the following step is not needed:

OpenRC
Start the iSCSI daemon:

Target discovery
Discover the targetnames:

Adding targets
Add a target to the configuration:

Target persistence
And tell the service to start a target automatically on startup