iSCSI options

You can use the /etc/storpool.conf configuration file to set options for the storpool_iscsi service. For more information on setting up iSCSI, see Setting iSCSI targets.

Cgroups configuration

Use the SP_ISCSI_CGROUPS option to configure the storpool_iscsi service:

SP_ISCSI_CGROUPS=-g cpuset:storpool.slice/iscsi -g memory:storpool.slice/alloc

Network interface to use

You can set the network interface names to be used for iSCSI using the SP_ISCSI_IFACE option. Default: (empty)

SP_ISCSI_IFACE=eth2:eth3
SP_ISCSI_IFACE=eth2,bond0:eth3,bond0
SP_ISCSI_IFACE=eth2,bond0:eth3,bond0:[lacp]

The format is: physical interface1, resolve interface1:physical interface 2, resolve interface2:[flags]

The only available flag is lacp, for when the iSCSI interfaces are part of a LACP bond.

Enabling routing

You can use the SP_ISCSI_ROUTED option to Enable routing for iSCSI. Default: (empty)

SP_ISCSI_ROUTED=1

If this option is not set, the iSCSI initiators must be in the same IP subnet as the iSCSI target. If the initiators are in a different net, then the option should be set to “1” (as shown above).

Configuring BGP speaker

Using the SP_ISCSI_BGP_CONFIG option you can configure BGP speaker for the iSCSI routed setup:

  • Requires the SP_ISCSI_ROUTED option to be enabled.

  • The value is in the ISCSI_BGP_IP:BGP_DAEMON_IP:AS_FOR_ISCSI:AS_FOR_THE_DAEMON format.

  • Default: (empty)

Here is an example:

SP_ISCSI_BGP_CONFIG=127.0.0.1:127.0.0.2:65514:65513

For more information about configuring BGP, see Setting iSCSI targets.