Centos系统下载大全 | Redhat系统下载大全 | Windows2012系统下载大全 | Windows2008系统下载大全| CMS教程 | 网站地图 51运维网-专注Linux/Unix系统安全运维!
当前位置:51运维网 > 入门 > Linux入门 > 正文

CentOS6.5连接iSCSI网络存储

时间:2016-08-17 11:29 来源:网络整理 作者:linux系统 阅读:

 

CentOS6.5连接iSCSI网络存储

 

 

Linux连接iSCSI网络存储

操作系统平台:CentOS 6.5 X86_64

存储服务器软件版本:openfiler esa 2.99.1

 

安装需要的包文件

[root@bogon /]# rpm -qa binutils

binutils-2.20.51.0.2-5.36.el6.x86_64

[root@bogon /]# rpm -qa xfsprogs

xfsprogs-3.1.1-14.el6.x86_64

 

[root@bogon yum.repos.d]# yum install iscsi-initiator-utils

 

Updated:

 iscsi-initiator-utils.x86_64 0:6.2.0.873-13.el6                                                               

 

Complete!

[root@bogon yum.repos.d]# yum install iscsi-initiator-utils-devel

Installed:

 iscsi-initiator-utils-devel.x86_64 0:6.2.0.873-13.el6       

Complete!

 

查询iSCSI target

[root@bogon yum.repos.d]# iscsiadm -mdiscovery -t sendtargets -p 172.16.94.195 

Starting iscsid:                                           [  OK  ]

172.16.94.195:3260,1iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1

172.16.94.195:3260,1iqn.2006-01.com.openfiler:tsn.4efa19910943

[root@bogon yum.repos.d]#

登陆(即挂载):

 

[root@bogon /]# iscsiadm -m node -Tiqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1 -p 172.16.94.195 -l

Logging in to [iface: default, target:iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1, portal: 172.16.94.195,3260] (multiple)

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

[root@bogon /]#

[root@bogon /]# iscsiadm -m session

tcp: [1] 172.16.94.195:3260,1iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1 (non-flash)

[root@bogon /]#

 

结果验证:

[root@bogon /]# fdisk -l

 

Disk /dev/sda: 107.4 GB, 107374182400 bytes

255 heads, 63 sectors/track, 13054cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x000ec831

 

  Device Boot      Start         End      Blocks  Id  System

/dev/sda1  *           1          64      512000  83  Linux

Partition 1 does not end on cylinderboundary.

/dev/sda2              64       13055  104344576   8e  Linux LVM

……………………

Disk /dev/sdb: 4932 MB, 4932501504 bytes

152 heads, 62 sectors/track, 1022 cylinders

Units = cylinders of 9424 * 512 = 4825088bytes

Sector size (logical/physical): 512 bytes /512 bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier: 0x00000000

 

[root@bogon /]#

开机启动:

# To manually startup the session set to"manual". The default is automatic.

node.startup =automatic

 

# For "automatic" startup nodes,setting this to "Yes" will try logins on each

# available iface until one succeeds, andthen stop.  The default "No"will try

# logins on all availble ifacessimultaneously.

node.leading_login= No

硬盘自动挂载(mount):

编辑文件:vim /etc/fstab

 


 

感谢您对【51运维网 http://www.51ou.com/】的支持,我们为您免费提供《CentOS6.5连接iSCSI网络存储》技术文章,《CentOS6.5连接iSCSI网络存储》详细使用和说明,有时《CentOS6.5连接iSCSI网络存储》可能不完善、敬请谅解!如果《CentOS6.5连接iSCSI网络存储》有错误请给我们留言,我们将尽快修复文章错误,如果您觉得本站不错,请分享给周围的朋友!谢谢!

顶一下
(0)
0%
踩一下
(0)
0%
上一篇:centos下安装vpn客户端pptpclient
下一篇:没有了
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
验证码:点击我更换图片