免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4006 | 回复: 2

Iscsi连接存储DELL-MD3000i for solaris 7/8/ 9/10 [复制链接]

论坛徽章:
0
发表于 2010-05-30 11:50 |显示全部楼层
Iscsi连接存储DELL——MD3000i for solaris 7/8/ 9/10

Solaris 9:
请下载
solaris-iscsi-3.3.6.tar (http://bbs.chinaunix.net/viewthr ... ice&tid=1711328)

解压缩安装正常的话,应该就可以用了。

但我在安装中遇到了问题:
安装solaris-iscsi-3.3.6的错误uid=60001.txt:


***************************************************

I did a truss on it and it looks like a bug in the installation script. What happened was the installation script tried to create a tmp file in /var/tmp directory owned by user noaccess (UID:60002) and the subsequential installation checked the UID of the file. Here is your workaround:

1. Edit the request file in CSCOiscsi/install directory to comment out exit 1 entry (注释exit 1)

   if [ $userid -ne 0 ]

   then

        printf "You must be superuser to run this script!\n"

        printf "Your current effective uid is $userid!\n"

#        exit 1

   fi
复制代码

2. (optional) If you don't want to see an error message when you run pkgchk, then update the checksum of the request file in pkgmap.


# cksum request
3842952723      2597    request

You will get two numbers. copy the second number

vi /CSCOiscsi/pkgmap , find the request file and paste the new checksum to replace the old one.

3. run pkgadd -d . CSCOiscsi


发现用cksum request后的结果是
# cksum request
3842952723      2597    request


#vi CSCOiscsi/pkgmap查到


1 i request 2596 10179 1086153032

按照版主说的将2596改成2597,然后运行pkgadd -d .  CSCOiscsi 又出现错误如下:

pkgadd: ERROR: packaging file </u03/CSCOiscsi/install/request> is corrupt
    file cksum <10179> expected <10214> actual


于是又将10179改成10214,最后成功

***************************************************
详见:
http://bbs.chinaunix.net/viewthr ... ;page=3#pid12240062
***************************************************



安装后在DELL MD3000i上设置主机映射到虚拟盘,找到solaris的主机名,进行映射设置。

再通过如下设置来找到目标:


/etc/init.d/iscsi start

# /usr/sbin/iscsi-ls
No target … …
但是我遇到了如下的错误,却始终也连不上:

May 30 10:26:30 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Error 0
May 30 10:26:31 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 10:27:01 shideerp last message repeated 30 times
May 30 10:27:02 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 10:33:41 shideerp last message repeated 399 times
May 30 10:33:42 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 10:40:21 shideerp last message repeated 399 times
May 30 10:40:22 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 10:47:01 shideerp last message repeated 399 times
May 30 10:47:02 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 10:53:41 shideerp last message repeated 399 times
May 30 10:53:42 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 11:00:21 shideerp last message repeated 399 times
May 30 11:00:22 shideerp iscsid[5741]: [ID 801593 daemon.error] cannot resolve [fe80:0000:0000:0000:a6ba:dbff:fe23:0fd3]: Interrupted system call
May 30 11:07:01 shideerp last message repeated 399 times

后来才发现是我在DELL MD3000i上的设置出了问题,我把IPV6设置上了,所以如上报的错误就是“IPV6的地址协议无法解决系统被中断”的问题,于是将DELL MD3000I的端口配置的中IPV6去掉,终于找到目标了。


********************************************************************************
TARGET NAME iqn.1984-05.com.dell:powervault.md3000i.6a4badb000230fd1000000004bf34ef6
TARGET ID 0:
  ADDRESS = 191.168.198.101:3260, 1
  ADDRESS =  191.168.198.101:3260, 1
  STATUS  = Connected  191.168.198.103:62644<-> 191.168.198.101:3260  5/30/2010 11:07:03
  SESSION = ISID 00023d000001  TSID 67  PID 7405
********************************************************************************



Solaris 10的iscsi连接:(详见:)
ISCSI for solaris10安装

1、        查看pkginfo 验证是否已安装 iSCSI 软件包。

# pkginfo SUNWiscsiu SUNWiscsir
system SUNWiscsiu Sun iSCSI Device Driver (root)
system SUNWiscsir Sun iSCSI Management Utilities (usr)

2、        下补丁
119090-14.zip
运行iscsiadm add discovery-address 10.10.8.101:3260配置动态搜索的设备 (SendTargets)。
3、        iscsiadm modify discovery --sendtargets enable
4、        devfsadm -i iscsi

例如:
# iscsiadm add discovery-address 10.0.0.1:3260
启用搜索方法之前,不会启动 iSCSI 连接。请参见下一步。
o 配置动态搜索的设备 (iSNS)。
例如:
# iscsiadm add iSNS-server 10.0.0.1:3205
启用搜索方法之前,不会启动 iSCSI 连接。请参见下一步。
o 配置静态搜索的设备。
例如:
# iscsiadm add static-config eui.5000ABCD78945E2B,10.0.0.1
启用搜索方法之前,不会启动 iSCSI 连接。请参见下一步。
3. 使用以下命令之一启用 iSCSI 目标搜索方法:
o 如果已配置动态搜索 (SendTargets) 设备,请启用 SendTargets 搜索方法。
# iscsiadm modify discovery --sendtargets enable
o 如果已配置动态搜索 (iSNS) 设备,请启用 iSNS 搜索方法。
# iscsiadm modify discovery --isns enable
o 如果已配置静态目标,请启用静态目标搜索方法。
# iscsiadm modify discovery --static enable
4. 为本地系统创建 iSCSI 设备链接。
# devfsadm -i iscsi


*****************************************************************************
详见:http://tagche.blog.51cto.com/649757/278320
*****************************************************************************

论坛徽章:
0
发表于 2010-05-30 13:24 |显示全部楼层
好东西,收藏

论坛徽章:
0
发表于 2010-05-31 12:51 |显示全部楼层
收藏
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP