Owner's Manual
Dell EqualLogic PS 系列存储系统的 iSCSI 群集设置 101
4
获取用于
iSCSI
通信的主机上每个网络接口的硬件地址。
grep -i hwaddr /etc/sysconfig/network-
scripts/ifcfg-eth
n
,
其中
n
是网络接口编号。
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
此时将添加新接口
eth0-iface
。
# 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