linux iscsi 自动挂载挂载iSCSI失败,求帮助

新手园地& & & 硬件问题Linux系统管理Linux网络问题Linux环境编程Linux桌面系统国产LinuxBSD& & & BSD文档中心AIX& & & 新手入门& & & AIX文档中心& & & 资源下载& & & Power高级应用& & & IBM存储AS400Solaris& & & Solaris文档中心HP-UX& & & HP文档中心SCO UNIX& & & SCO文档中心互操作专区IRIXTru64 UNIXMac OS X门户网站运维集群和高可用服务器应用监控和防护虚拟化技术架构设计行业应用和管理服务器及硬件技术& & & 服务器资源下载云计算& & & 云计算文档中心& & & 云计算业界& & & 云计算资源下载存储备份& & & 存储文档中心& & & 存储业界& & & 存储资源下载& & & Symantec技术交流区安全技术网络技术& & & 网络技术文档中心C/C++& & & GUI编程& & & Functional编程内核源码& & & 内核问题移动开发& & & 移动开发技术资料ShellPerlJava& & & Java文档中心PHP& & & php文档中心Python& & & Python文档中心RubyCPU与编译器嵌入式开发驱动开发Web开发VoIP开发技术MySQL& & & MySQL文档中心SybaseOraclePostgreSQLDB2Informix数据仓库与数据挖掘NoSQL技术IT业界新闻与评论IT职业生涯& & & 猎头招聘IT图书与评论& & & CU技术图书大系& & & Linux书友会二手交易下载共享Linux文档专区IT培训与认证& & & 培训交流& & & 认证培训清茶斋投资理财运动地带快乐数码摄影& & & 摄影器材& & & 摄影比赛专区IT爱车族旅游天下站务交流版主会议室博客SNS站务交流区CU活动专区& & & Power活动专区& & & 拍卖交流区频道交流区
白手起家, 积分 1, 距离下一级还需 199 积分
论坛徽章:0
iSCSI服务器启动正常,尝试获取时出现如下错误,请问是什么原因导致的(网络是通的,iscsi没有做限制,允许这个IP地址的连接)
[root@oracleserver ~]# service iscsid start
[root@oracleserver ~]# chkconfig iscsid on
[root@oracleserver ~]# chkconfig iscsi on
[root@oracleserver ~]# iscsiadm -m discovery -t sendtargets -p 192.168.0.23
iscsiadm: Login negotiation failed, couldn't recognize text InitiatorAlias=NotUnderstood
iscsiadm: discovery login to 192.168.0.23 failed, giving up 4
iscsiadm: Could not perform SendTargets discovery: encountered non-retryable iSCSI login failure
[root@oracleserver ~]#
&&nbsp|&&nbsp&&nbsp|&&nbsp&&nbsp|&&nbsp&&nbsp|&&nbsp
白手起家, 积分 44, 距离下一级还需 156 积分
论坛徽章:0
是不是iqn不符合标准
小富即安, 积分 4972, 距离下一级还需 28 积分
论坛徽章:41
有没有允许该IP连接?
富足长乐, 积分 7203, 距离下一级还需 797 积分
论坛徽章:45
/etc/iscsi/initiatorname.iscsi
文件中的内容修改过了没温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
有时天真,喜欢自由自在!!塌实走好每一步!
《比石头更坚硬的是水滴,比水滴更坚硬的是时间》
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(16714)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_095071',
blogTitle:'linux下挂载ISCSI存储设备',
blogAbstract:'安装\r\n首先要在存储设备上做好RAID,设置好iSCSI 目标方(target)。\r\n这里主要说明iSCSI initiator的安装。\r\n不同的操作系统对应各自的iSCSI initiator,以Redhat enterprise5为例。到网上下载iscsi-initiator-utils-6.2.0.742-0.5.el5.i386.rpm\r\n# rpm –ivh iscsi-initiator-utils-6.2.0.742-0.5.el5.i386.rpm\r\n在服务器上安装了iSCSI initiator以及iscsiadm\r\n',
blogTag:'',
blogUrl:'blog/static/3',
isPublished:1,
istop:false,
modifyTime:7,
publishTime:3,
permalink:'blog/static/3',
commentCount:1,
mainCommentCount:1,
recommendCount:1,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'有时天真,喜欢自由自在!!塌实走好每一步!\r\n《比石头更坚硬的是水滴,比水滴更坚硬的是时间》',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}Linux 挂载iscsi存储磁盘设备 - wgwyanfs - 博客园
&1,check网络[root@localhost ~]# ping -I eth0 11.110.10.138PING 11.110.10.138 (11.110.10.138) from 11.110.10.138eth0: 56(84) bytes of data.64 bytes from 11.110.10.138: icmp_seq=1ttl=64 time=0.023 ms64 bytes from 11.110.10.138: icmp_seq=2ttl=64 time=0.016 ms64 bytes from 11.110.10.138: icmp_seq=3ttl=64 time=0.018 ms^C--- 11.110.10.138 ping statistics ---3 packets transmitted, 3 received, 0%packet loss, time 2186msrtt min/avg/max/mdev =0.016/0.019/0.023/0.003 ms[root@localhost ~]# &&&[root@localhost ~]# ping -I eth.138PING 192.168.180.138 (192.168.180.138) from11.110.10.138 eth0: 56(84) bytes of data.From 11.110.10.138 icmp_seq=2 DestinationHost UnreachableFrom 11.110.10.138 icmp_seq=3 DestinationHost UnreachableFrom 11.110.10.138 icmp_seq=4 DestinationHost Unreachable^C--- 192.168.180.138 ping statistics ---4 packets transmitted, 0 received, +3errors, 100% packet loss, time 3729mspipe 3[root@localhost ~]# &&2,检測软件是否已经安装[root@localhost ~]# rpm -qa |grep iscsiiscsi-initiator-utils-6.2.0.873-2.0.2.el6.x86_64[root@localhost ~]# &&&版权全部。文章同意转载,但必须以链接方式注明源地址。否则追究法律责任!&&原博客地址: &原作者:黄杉 (mchdba)3,检查ISCSI服务是否启动了和当前级别下的执行情况[root@localhost ~]# service iscsi status......&&&&&4。要建立2个文件[root@localhost ~]# iscsiadm -m iface -Iiscsi_eth0 --op=newNew interface iscsi_eth0 added[root@localhost ~]# iscsiadm -m iface -Iiscsi_eth1 --op=newNew interface iscsi_eth1 added[root@localhost ~]# &&5.建立iscsi_eth0和eht0的映射关系。同一时候建立iscsi_eth1和eth1的映射关系.也能够直接编辑iscsi_eth0和iscsi_eth1文件,把里面的iface.net_ifacename=default改成iface.net_ifacename=eth0和iface.net_ifacename=eth1就可以。[root@localhost ~]# ls/var/lib/iscsi/ifaces/iscsi_eth0&iscsi_eth1& iscsi_the0& iscsi_the1[root@localhost ~]# cd/var/lib/iscsi/ifaces/[root@localhost ifaces]# ll总用量 16-rw------- 1 root root 197 6月& 10 16:05 iscsi_eth0-rw------- 1 root root 197 6月& 10 16:06 iscsi_eth1-rw------- 1 root root 197 4月&& 3 19:14 iscsi_the0-rw------- 1 root root 197 4月&& 3 19:14 iscsi_the1[root@localhost ifaces]# cat iscsi_eth0# BEGIN RECORD 6.2.0-873.2.el6iface.iscsi_ifacename = iscsi_eth0iface.transport_name = tcpiface.vlan_id = 0iface.vlan_priority = 0iface.iface_num = 0iface.mtu = 0iface.port = 0# END RECORD[root@localhost ifaces]# [root@localhost ifaces]# iscsiadm -m iface-I iscsi_eth0 --op=update -n iface.net_ifacename -v eth0iscsi_eth0 updated.[root@localhost ifaces]# iscsiadm -m iface-I iscsi_eth0 --op=update -n iface.net_ifacename -v eth0iscsi_eth0 updated.[root@localhost ifaces]# &&&6,重新启动iscsi服务[root@localhost ifaces]# service iscsi restart停止 iscsi:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]正在启动 iscsi:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& [确定][root@localhost ifaces]# &Equallogic配置部分&7.配置Equallogic,映射一个Lun名字为redhat,大小3G的空间在存储訪问站点上,去分配新的磁盘块,这个比較简单。就不截图了,存储设备都会自带一个网址让我们訪问的。&&Redhat配置部分8.做discover。能够发现已经看到了redhat的lun。由于有两条路径。全部显示了两行。&[root@localhost ifaces]# iscsiadm -mdiscovery -t sendtargets -p 11.110.10.138:3260iscsiadm: cannot make connection to 11.110.10.138:Connection refused&iscsiadm: cannot make connection to 11.110.10.138:Connection refusediscsiadm: cannot make connection to 11.110.10.138:Connection refusediscsiadm: cannot make connection to 11.110.10.138:Connection refused^Ciscsiadm: caught SIGINT, exiting...[root@localhost ifaces]# &ip地址是存储的ip地址[root@localhost ifaces]# iscsiadm -mdiscovery -t sendtargets -p 11.110.10.22 :3260iscsiadm: This command will remove therecord [iface: default, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260],but a session is using it. Logout session then rerun command to remove record.iscsiadm: This command will remove therecord [iface: default, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260], but a session is using it. Logout session then reruncommand to remove record.11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata211.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata311.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata211.110.10.22:3260,1 iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata311.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata211.110.10.22:3260,1 iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata311.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata211.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3[root@localhost ifaces]# &&9.Log on全部的iscsi session,能够看到最后两个successful的redhat lun,已经log on成功了。[root@localhost ifaces]# iscsiadm -m node-lLogging in to [iface: iscsi_eth1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)Logging in to [iface: iscsi_eth0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)Logging in to [iface: iscsi_the1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)Logging in to [iface: iscsi_the0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)Logging in to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)Logging in to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)Login to [iface: iscsi_eth1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.Login to [iface: iscsi_eth0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.Login to [iface: iscsi_the1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.Login to [iface: iscsi_the0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.Login to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.Login to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.[root@localhost ifaces]# &&&10:输入iscsiadm -m session能够看到当前正在连接的session.[root@localhost ifaces]# iscsiadm -msessiontcp: [10] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2 tcp: [11] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2 tcp: [12] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2 tcp: [13] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3 tcp: [14] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3 tcp: [15] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3 tcp: [16] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3 tcp: [3] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata tcp: [4] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2 tcp: [5] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata tcp: [6] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata tcp: [7] 11.110.10.22:3260,1 iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddatatcp: [8] 11.110.10.22:3260,1iqn.2001-0查看:701|回复:3
根据资料在挂载的时候,出现如下错误,请问是什么原因导致的。谢谢!
[root@oracleserver ~]# service iscsid start
[root@oracleserver ~]# chkconfig iscsid on
[root@oracleserver ~]# chkconfig iscsi on
[root@oracleserver ~]# iscsiadm -m discovery -t sendtargets -p 192.168.0.23
iscsiadm: Login negotiation failed, couldn't recognize text InitiatorAlias=NotUnderstood
iscsiadm: discovery login to 192.168.0.23 failed, giving up 4
iscsiadm: Could not perform SendTargets discovery: encountered non-retryable iSCSI login failure
[root@oracleserver ~]#
首先看网络是否能正常通讯
在Server端是否做了限制
Good Good study,Day Day up!!!
引用:原帖由 yfshare 于
23:49 发表
首先看网络是否能正常通讯
在Server端是否做了限制 网络是通的&&iscsi也没有做限制
server端输入iscsiadm -s查看服务端配置,记得看看log
Good Good study,Day Day up!!!}

我要回帖

更多关于 linux iscsi 挂载 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信