Owner's Manual
70
5
为要用于
iSCSI
通信的主机上的每个网络接口创建接口。
iscsiadm -m iface -I
iface_name
--op=new
iface_name
是指定给接口的名称
iscsiadm -m iface -I iface_name --op=update -n
iface.hwaddress -v
hardware_address
hardware_address
是步骤
4
中获取的接口硬件地址
例如,以下命令将为硬件地址为
00:18:8B:4E:E6:CC
的
eth0
接口创建名为
eth0-iface
的接口。
# iscsiadm -m iface -I eth0-iface --op=new
New interface eth0-iface added
# iscsiadm -m iface -I eth0-iface --op=update -n
iface.hwaddress -v 00:18:8B:4E:E6:CC
eth0-iface updated
6
验证是否已正确创建并关联接口。
iscsiadm -m iface
7
修改主机上
/etc/iscsi/iscsid.conf
中的
CHAP
信息。
node.session.auth.username =
username
node.session.auth.password =
password
discovery.sendtargets.auth.username =
username
discovery.sendtargets.auth.password = password
username
是
EqualLogic
存储设备中定义的
CHAP
用户名
password
是
EqualLogic
存储设备中定义的
CHAP
密码
8
重新启动
iSCSI
服务,以使新配置生效。
service iscsi stop
service iscsi start