Owner's Manual

EqualLogic 存储系统的 iSCSI 群集设置 123
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
中获取的接口硬件地址。
例如,以下命令为
eth0
接口 (其硬件地址为
00:18:8B:4E:E6:CC
)创
建一个名为
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.authmethod = CHAP
node.session.auth.username = username
node.session.auth.password = password
discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.username = username
discovery.sendtargets.auth.password = password
其中,
username
EqualLogic
存储设备中定义的
CHAP
用户名,
password
EqualLogic
存储设备中定义的
CHAP
码。
8
将位于
/etc/iscsi/iscsid.conf
文件中的替换
120
修改
30
node.session.timeo.replacement_timeout = 30
9
启动
iSCSI
服务,以使新配置生效
service iscsi stop
service iscsi start