加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

openfiler与multipath多路径功能支持

发布时间:2016-10-31 01:10:47 所属栏目:Linux 来源:网络整理
导读:说明: 对于有两个或多个控制器的iscsi存储设备,或采用openfiler有两块网卡提供服务器的系统。需要配置多路径功能提高可用性。 本文采用openfiler来实现iscsi设
副标题[/!--empirenews.page--]

说明: 对于有两个或多个控制器的iscsi存储设备,或采用openfiler有两块网卡提供服务器的系统。需要配置多路径功能提高可用性。

本文采用openfiler来实现iscsi设备的安装与测试。

本文NAS采用openfiler 2.99.1 X64做为实验环境,为近期的一个备份环境部署做准备。

1. 并安装iSCSI启动器软件包

rpm -ivh iscsi-initiator-utils-6.2.0.871-0.10.el5.i386.rpm

chkconfig --level 2345 iscsi on

chkconfig --level 2345 iscsid on

service iscsi start

service iscsid start

2. 多路径软件安装准备

# rpm -qa |grep mapper

device-mapper-event-1.02.55-2.el5

device-mapper-1.02.55-2.el5

device-mapper-multipath-0.4.7-42.el5

#

设置成开机自启动multipathd

# chkconfig --level 2345 multipathd on

来检查安装是否正常

# lsmod |grep dm_multipath

dm_multipath           25421  0

scsi_dh                12097  1 dm_multipath

dm_mod                 63097  11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log

3. 发现存储设备

# iscsiadm -m discovery -t st -p 192.168.100.238

192.168.100.238:3260,1 iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c

192.168.100.239:3260,1 iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c

4. 连接两个节点,通过两个IP分别进行连接

(1) 连接登陆第一个IP

# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c -p 192.168.100.238 -l

Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal: 192.168.100.238,3260]

Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal: 192.168.100.238,3260] successful.

(2) 连接登录第二个IP

# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c -p 192.168.100.239 -l

Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal: 192.168.100.239,3260]

Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.f9d59aaffe9c, portal: 192.168.100.239,3260] successful.

5. 查看连接状态

(1) 查看连接状态1

# iscsiadm -m session

tcp: [1] 192.168.14.180:3260,1 iqn.2006-01.com.openfiler:tsn.355d1613342d

tcp: [2] 192.168.14.181:3260,1 iqn.2006-01.com.openfiler:tsn.355d1613342d

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读