Add support for running iscsid/iscsiadm in initrd if desired

This does not change the default behavior, which is to use iscsistart in initrd/initramfs. This also does not affect iscsid/iscsiadm outside initrd/initramfs.

Using an iscsi root in initrd is of significant importance in cloud computing, and ensuring robust and reliable boot capability while using iscsi is best done with iscsid/iscsiadm and not iscsistart.

To run iscsid/iscsiadm in initramfs, rather than iscsistart, users can specify the following in /etc/iscsi/iscsi.initramfs:

ISCSID_INITRD="true"

iscsiadm supports login with iBFT using 'fw' mode. This can be enabled with the following in /etc/iscsi/iscsi.initramfs:

ISCSI_AUTO="true"

A minimal iscsid.conf file is created in initramfs with parameters required for iscsid in initramfs. Namely 'iscsid.ipc_auth_uid = Yes'

This minimal default config does not affect iscsistart behavior.

If /etc/iscsi/iscsid_initrd.conf exists, this file will be included in initramfs rather than the minimal default config for iscsid. Both iscsistart and iscsid will use this config, if present in initramfs. This file is not created by default, and must be created by the user if desired.

Note: requires features in open-iscsi 2.1.8

Closes: #982842

Signed-off-by: Eric Mackay eric.mackay@oracle.com

Reviewed-by: Rajesh Harekal rajesh.harekal@oracle.com

Edited by Eric Mackay

Merge request reports

Loading