Owner's Manual
EqualLogic PS 系列存储系统的 iSCSI 群集设置 111
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
接口创建了一个名为
eth0-iface
的接口,该接
口的硬件地址为
00:18:8B:4E:E6:CC
:
# 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
9
从步骤
5
中创建的所有
接口
搜索目标。
iscsiadm -m discovery -t st -p group_ip_address --
interface=iface_name1 --interface=iface_name2 --
interface=iface_name3 --interface=iface_name4
,
其中,
group_ip_address
是
EqualLogic
存储组中的
IP
地址,
iface_name1
、
iface_name2
、
iface_name3
、
iface_name4
等是用于
iSCSI
通信的主机上的网络接口(如步骤
5
中定义)。