Configuring manual or automatic node login with iSCSI

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 targetEnter 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 targetEnter 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.

Parent topic: (iSCSI) How to configure iSCSI for Linux

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值