免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: sunowy
打印 上一主题 下一主题

[RAID与磁盘阵列] EMC CX4-240 ISCSI问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-11-06 11:28 |只看该作者
你网络不通啊,你干嘛不把配成192.168.0.*的IP也配置成192.168.10.*呢?也没啥影响
你禁掉那个网卡后ping过么?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-02-18 06:20:00
12 [报告]
发表于 2009-11-06 11:30 |只看该作者

管理口接到了业务网上面吗?

接到了就从管理口走咯,类似于 outbound的方式,走iscsi接口类似于inbound的方式,除非你把iscsi口启允许管理的模式。。。。。。

论坛徽章:
0
13 [报告]
发表于 2009-11-06 11:37 |只看该作者
原帖由 deadwind 于 2009-11-6 11:28 发表
你网络不通啊,你干嘛不把配成192.168.0.*的IP也配置成192.168.10.*呢?也没啥影响
你禁掉那个网卡后ping过么?



禁掉10网段那个网卡之后,是能ping通的存储的iscsi端口的

论坛徽章:
0
14 [报告]
发表于 2009-11-06 11:44 |只看该作者
原帖由 spook 于 2009-11-6 11:30 发表
接到了就从管理口走咯,类似于 outbound的方式,走iscsi接口类似于inbound的方式,除非你把iscsi口启允许管理的模式。。。。。。



我又查了一些资料,觉得下面这样显示是正常的

  1. # ./naviserverutilcli
  2. Welcome to Navisphere Server Utility - version : 6.28.10.3.11

  3. Select from one of the following options: or Select '0' to exit the application.

  4. 1. Update Server Information - Select this option to send information about the server to all connected storage systems.

  5. 2. Snapshot Tasks (Navisphere Express only) - Select this option to perform Snapshot tasks on the source server or the secondary server.

  6. 3. Generate high availability report.

  7. 4. Display help for the application.

  8. > 1

  9. Scanning ...  

  10. Connected Storage Systems:

  11. HBA/NIC Port  Storage System  SP  Port  SP IP Address  
  12. -------------------------------------------------------
  13. 0             CKM00034700077  A   2     192.168.10.229
复制代码


这个naviserverutilcli 是负责扫描存储系统,并向存储系统注册当前主机的,他就应该和存储的管理端口通信,而不是和数据端口通信
所以扫描结果显示的是管理IP,

另:我用这个server3连接我自己架设的iscsi server时就可以正确连接到目标,可以正常使用,但是连接这个emc存储时就出现了这样的问题,
这样看来应该就是存储的iscsi配置有问题

论坛徽章:
0
15 [报告]
发表于 2009-11-06 17:24 |只看该作者
搞定了,谢谢各位帮助,先把分给了,一会再整理一下解决过程,然后发上来

论坛徽章:
0
16 [报告]
发表于 2009-11-06 18:50 |只看该作者
写一下我的大致配置过程吧:

1,设置服务器和存储的网络参数
       我的服务器两张网卡,一个连接内网,ip为192.168.10.190,另一个网卡连接存储:172.16.10.10
       修改服务器的/etc/hosts,增加一行:
        192.168.10.190     hostname  (这个192.168.10.190是存储的管理IP可以连接的,如果这项设置不好,后面在存储中会出现“host agent  not reachable",这个不影响正常的数据链路)
       存储的SPB的那个与服务器连接的iscsi端口ip设置为172.16.10.4(我没有用交换机连接,只是将网线直接连接到存储,这是测试,后面实际应用中肯定要用交换机实行多路。)

2,安装软件:
       在服务器上安装下列软件:
              iscsi-initiator-utils
              naviagent
              naviserverutilcli
              后面两个软件在emc的core server support 光盘里有
3,discovery target &向存储注册主机
       a,启动iscsi服务:/etc/init.d/iscsi start
       b,iscsiadm -m discovery -t st -p 172.16.10.4
             此时会列出存储上所有的target,根据自己的情况选择连接哪一个
       c,向存储注册主机
             先停止 host agent :/etc/init.d/naviagent stop
             ./naviserverutilcli
              先选择“1”,可以列出发现在的存储,例如我这里输出如下:

  1.                       # ./naviserverutilcli
  2. Welcome to Navisphere Server Utility - version : 6.28.10.3.11

  3. Select from one of the following options: or Select '0' to exit the application.

  4. 1. Update Server Information - Select this option to send information about the server to all connected storage systems.

  5. 2. Snapshot Tasks (Navisphere Express only) - Select this option to perform Snapshot tasks on the source server or the secondary server.

  6. 3. Generate high availability report.

  7. 4. Display help for the application.

  8. > 1

  9. Scanning ...  

  10. Connected Storage Systems:

  11. HBA/NIC Port  Storage System  SP  Port  SP IP Address  
  12. -------------------------------------------------------
  13. 0             CKM00034700077  A   2     192.168.10.229   
复制代码


如果你确认“Connected Storage Systems:“中列出的是你所要连接的存储,然后按“u",稍后在Navisphere Manager 中,右键你的存储,
选择:“Connectivity Status“,如果正常的话,在打开的窗口中就能看到"Initiator Name" 为你的服务器的Initiator Name(在/etc/iscsi/initiatorname.iscsi中的那个以iqn开头的)的
主机存在,确认此主机的“Logged In"和“Registered"都为“YES”,如果“Registered"为No,则可再次运行naviserverutilcli进行注册。

5,为主机分配LUN,这个不细说了
6,在服务器上启动host agent ,并重新启动iscsi服务:
 /etc/init.d/naviagent start
 /etc/init.d/iscsi restart

7,这时候应该就可以看到分配给这个服务器的磁盘了:
fdisk -l

我这里看到的是:

  1. # fdisk -l

  2. Disk /dev/sda: 146.1 GB, 146163105792 bytes
  3. 255 heads, 63 sectors/track, 17769 cylinders
  4. Units = cylinders of 16065 * 512 = 8225280 bytes

  5.    Device Boot      Start         End      Blocks   Id  System
  6. /dev/sda1   *           1          19      152586   83  Linux
  7. /dev/sda2           11873       17769    47367652+  8e  Linux LVM
  8. /dev/sda3              20        3970    31736407+  8e  Linux LVM
  9. /dev/sda4            3971       11872    63472815    5  Extended
  10. /dev/sda5            3971        7921    31736376   8e  Linux LVM
  11. /dev/sda6            7922       11872    31736376   8e  Linux LVM

  12. Partition table entries are not in disk order

  13. Disk /dev/sdb: 1288.4 GB, 1288490188800 bytes
  14. 255 heads, 63 sectors/track, 156650 cylinders
  15. Units = cylinders of 16065 * 512 = 8225280 bytes

  16.    Device Boot      Start         End      Blocks   Id  System


  17.       
复制代码




正常情况就是上面那样,经过反复尝试,找出了我这次出问题的原因:
分配给server3的这个lun,我把这个lun的Ownership设置是这样:
默认属于SPB,“Auto Assignment Enabled"这个没有选上,但是我把从服务器来的网线连接到SPA的ISCSI端口上,所以出现这样的问题
我把见到插到SPB的ISCSI端口上,就正常了,搞了半天没想到是这里的问题

论坛徽章:
0
17 [报告]
发表于 2009-11-06 18:52 |只看该作者
另外请版主帮个忙,帮忙把我这个贴子的标题修改一下吧,
修改成: EMC CX4-240 ISCSI 问题

现在这个标题跟内容联系不大,不利于后面别人搜索,谢谢!

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
18 [报告]
发表于 2009-11-06 21:55 |只看该作者
弄好了!

论坛徽章:
2
2015年迎新春徽章
日期:2015-03-04 09:49:45IT运维版块每日发帖之星
日期:2016-07-29 06:20:00
19 [报告]
发表于 2009-11-07 09:12 |只看该作者
搞了半天是分配的控制器不对。。。。。

论坛徽章:
0
20 [报告]
发表于 2009-11-07 12:38 |只看该作者
原帖由 无牙 于 2009-11-6 21:55 发表
弄好了!


多谢版主
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP