Table of ContentsView in Frames

Configuring manual or automatic node login with iSCSI

When you are running Red Hat Enterprise Linux 7, 6, or 5 series or SUSE Linux Enterprise Server 12, 11, or 10 series, you can specify whether the system automatically logs in to an iSCSI node at startup or whether you must manually log it in to the node.

Before you begin

The iSCSI service must be running when the logins are supposed to occur.

About this task

If you set your login mode to manual, you must log in to the nodes manually the next time the system starts up. If you set your login mode to automatic, the system logs in to the nodes automatically when it starts up.
Note: When you are running Red Hat Enterprise Linux 4 series, all sessions are logged in automatically when you start the iSCSI service.

Setting the login mode affects only nodes that are discovered after the value is set.

Step

  1. Set the login mode for a specific portal on a target, for all the portals on a target, or for all targets and their ports:
    To set the login mode for... Do the following...
    A specific port on a target Enter the command with the applicable format for your system, including the targetname and whether the login will be manual or automatic:
    • iscsiadm --mode node -T targetname -p ip:port -o update -n node.startup -v manual|automatic
    • iscsiadm --mode node -T targetname -p ip:port -o update -n node.conn[0].startup -v manual|automatic

    For more information about the iscsiadm options, see the man page.

    All the ports on a target Enter the command with the applicable format for your system, including the targetname and whether the login will be manual or automatic:
    • iscsiadm --mode node -T targetname -o update -n node.startup -v manual|automatic
    • iscsiadm --mode node -T targetname -o update -n node.conn[0].startup -v manual|automatic

    For more information about the iscsiadm options, see the man page.

    All the targets
    1. Modify the following line of the /etc/iscsi/iscsid.conf file to specify either manual or automatic: node.startup = manual|automatic
    2. Rediscover the iSCSI target.
    3. Restart the iSCSI service.