|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!Linux毗连iSCSI收集存储
操纵体系平台:CentOS6.5X86_64
存储办事器软件版本:openfileresa2.99.1
装置必要的包文件
[root@bogon/]#rpm-qabinutils
binutils-2.20.51.0.2-5.36.el6.x86_64
[root@bogon/]#rpm-qaxfsprogs
xfsprogs-3.1.1-14.el6.x86_64
[root@bogonyum.repos.d]#yuminstalliscsi-initiator-utils
Updated:
iscsi-initiator-utils.x86_640:6.2.0.873-13.el6
Complete!
[root@bogonyum.repos.d]#yuminstalliscsi-initiator-utils-devel
Installed:
iscsi-initiator-utils-devel.x86_640:6.2.0.873-13.el6
Complete!
查询iSCSItarget
[root@bogonyum.repos.d]#iscsiadm-mdiscovery-tsendtargets-p172.16.94.195存储办事器的IP地点,默许端口3260
Startingiscsid:[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@bogonyum.repos.d]#
上岸(即挂载):
挂载:iscsiadm-mnode-Ttarget称号-p存储IP–l
移除:iscsiadm-mnode-Ttarget称号-p存储IP–u
[root@bogon/]#iscsiadm-mnode-Tiqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1-p172.16.94.195-l
Logginginto[iface:default,target:iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1,portal:172.16.94.195,3260](multiple)
Loginto[iface:default,target:iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1,portal:172.16.94.195,3260]successful.
[root@bogon/]#
检察一切的iSCSI毗连:
[root@bogon/]#iscsiadm-msession
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.4GB,107374182400bytes
255heads,63sectors/track,13054cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Diskidentifier:0x000ec831
DeviceBootStartEndBlocksIdSystem
/dev/sda1*16451200083Linux
Partition1doesnotendoncylinderboundary.
/dev/sda264130551043445768eLinuxLVM
……………………
Disk/dev/sdb:4932MB,4932501504bytes
152heads,62sectors/track,1022cylinders
Units=cylindersof9424*512=4825088bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Diskidentifier:0x00000000
[root@bogon/]#
开机启动:
#Tomanuallystartupthesessionsetto"manual".Thedefaultisautomatic.
node.startup=automatic
#For"automatic"startupnodes,settingthisto"Yes"willtryloginsoneach
#availableifaceuntilonesucceeds,andthenstop.Thedefault"No"willtry
#loginsonallavailbleifacessimultaneously.
node.leading_login=No
硬盘主动挂载(mount):
编纂文件:vim/etc/fstab
欢迎大家来到仓酷云论坛! |
|